53481
trabis
Re: Milliseconds in flashgames
  • 2009/1/27 19:29

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Mili is 1000 and ghia is correct but the module does not save miliseconds. I don´t know how to call it in english. Is a cent of a second.



53482
Anonymous
Re: Milliseconds in flashgames
  • 2009/1/27 19:27

  • Anonymous

  • Posts: 0

  • Since:


trabis .. 100 or 1000 ?



53483
Bezoops
Oledrion serach option case withot results
  • 2009/1/27 19:14

  • Bezoops

  • Friend of XOOPS

  • Posts: 38

  • Since: 2004/12/9


Hi,
I'm not an expert, but I detected that: in "Search" option, in case there is not text, is published, are stock, and don't select a manufacturer, you obtain a sql sentence like this:

Quote:
SELECT b.product_id, b.product_title, b.product_submitted, b.product_submitter
FROM sn54d_oledrion_products b, sn54d_oledrion_productsmanu a
WHERE (b.product_id = a.pm_product_id ) AND b.product_cid = 0 AND GROUP BY b.product_id ORDER BY product_submitted DESC

You can see there is a AND isolate and the result is not exist products.

I resolve it changing the line 136 adding a AND like this:
Quote:
$sql2 .= ' AND (a.pm_manu_id IN ( '.implode(',', $auteurs).'))';

Is this correct?

Thanks, and excuse my bad english.



53484
grams79
Re: Login / dropdown select with current members
  • 2009/1/27 18:58

  • grams79

  • Just popping in

  • Posts: 7

  • Since: 2009/1/26


Am I on the right track??

$xoopsid_select = new XoopsFormSelectUser(_PROFILE_AM_SELECTUSER'id');
$form->addElement($xoopsid_select);


I understand that I am missing many things... such as include once php files... but I know it has something to do with the XoopsFormSelectUser.

Been searching threw system/admin/users to find out how to duplicate the select field of members and add it to the login form.

Back to tinkering around I guess...



53485
trabis
Re: XoopsObject & XoopsObjectHandler setVars usage
  • 2009/1/27 18:42

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


Just look inside kernel/object.php and you will find out.
function setVar($key$value$not_gpc false)
    {
        if (!empty(
$key) && isset($value) && isset($this->vars[$key])) {
            
$this->vars[$key]['value'] =& $value;
            
$this->vars[$key]['not_gpc'] = $not_gpc;
            
$this->vars[$key]['changed'] = true;
            
$this->setDirty();
        }
    }


Whenever setVar() is used the object will become "dirty".

To know if changes were made to the current object just use
$object->isDirty();

It will return true or false.




53486
dnprossi
Re: help lost site...
  • 2009/1/27 17:03

  • dnprossi

  • Not too shy to talk

  • Posts: 107

  • Since: 2006/3/15


Thanks guys,

Found out..

Database busted on hosting provider... They will restore...

Thanks to all



53487
McDonald
Re: help lost site...
  • 2009/1/27 16:46

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


Did you overwrite your mainfile.php during the upgrade?

If so, try to restore the file mainfile.php from your backup (you made one, did you?).



53488
cadelite
Re: help lost site...
  • 2009/1/27 16:41

  • cadelite

  • Just popping in

  • Posts: 86

  • Since: 2008/1/15


What are the PHP versions supported in your hosting company? Both PHP 4 and 5? Please list the full configuration of your hosting machine.

Please also list the steps you performed your upgrade? What version of XOOPS did you upgrade from? 2.0.x or 2.2.x or others?



53489
dnprossi
help lost site...
  • 2009/1/27 16:26

  • dnprossi

  • Not too shy to talk

  • Posts: 107

  • Since: 2006/3/15


Help...

Xoops 2.3.2b upgraded. Working fine. and now cant get in anywhere.

I now get:

* @author Skalpa Keo  * @author Taiwen Jiang * @version $Idindex.php 1988 2008-08-30 10:34:38Z phppp $ */ /** * redirects to installation, if XOOPS is not installed yet **/ include "mainfile.php"//check if start page is defined if ( isset($xoopsConfig['startpage']) && $xoopsConfig['startpage'] != "" && $xoopsConfig['startpage'] != "--" ) { // Temporary solution for start page redirection define("XOOPS_STARTPAGE_REDIRECTED", 1); global $xoopsModuleConfig; $module_handler =& xoops_gethandler('module'); $xoopsModule =& $module_handler->getByDirname($xoopsConfig['startpage']); if (!$xoopsModule || !$xoopsModule->getVar('isactive')) { include_once XOOPS_ROOT_PATH . "/header.php"; echo " " . _MODULENOEXIST . " "; include_once XOOPS_ROOT_PATH . "/footer.php"; exit(); } $moduleperm_handler =& xoops_gethandler('groupperm'); if ($xoopsUser) { if (!$moduleperm_handler->checkRight('module_read', $xoopsModule->getVar('mid'), $xoopsUser->getGroups())) { redirect_header(XOOPS_URL, 1, _NOPERM, false); exit(); } $xoopsUserIsAdmin = $xoopsUser->isAdmin($xoopsModule->getVar('mid')); } else { if (!$moduleperm_handler->checkRight('module_read', $xoopsModule->getVar('mid'), XOOPS_GROUP_ANONYMOUS)) { redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM); exit(); } } if ($xoopsModule->getVar('hasconfig') == 1 || $xoopsModule->getVar('hascomments') == 1 || $xoopsModule->getVar( 'hasnotification' ) == 1) { $xoopsModuleConfig = $config_handler->getConfigsByCat(0, $xoopsModule->getVar('mid')); } chdir( 'modules/' . $xoopsConfig['startpage'] . '/' ); xoops_loadLanguage('main', $xoopsModule->getVar('dirname', 'n')); $parsed = parse_url(XOOPS_URL); $url = isset($parsed['scheme']) ? $parsed['scheme'].'://' : 'http://'; if ( isset( $parsed['host'] ) ) { $url .= $parsed['host']; if ( isset( $parsed['port'] ) ) { $url .= ':' . $parsed['port']; } } else { $url .= $_SERVER['HTTP_HOST']; } $_SERVER['REQUEST_URI'] = substr(XOOPS_URL, strlen($url)) . '/modules/' . $xoopsConfig['startpage'] . '/index.php'; include XOOPS_ROOT_PATH . '/modules/' . $xoopsConfig['startpage'] . '/index.php'; exit(); } else { $xoopsOption['show_cblock'] =1; include "header.php"; include "footer.php"; } ?>


and can't do anything...

The site is:
ARAL

Any Idea... Has it been hacked... Does not seem from logs but can be mistaken.

Please help.



53490
banesto
XoopsObject & XoopsObjectHandler setVars usage
  • 2009/1/27 16:05

  • banesto

  • Just popping in

  • Posts: 61

  • Since: 2005/1/24


Hello!

I've been working on a complicated module and i noticed that setVar method has a parameter "changed". So I'm curious can somebody show real usage of this when modifying data, e.g. how can class itself find out that the array of values are changed or not -> modify if they are modified, do nothing if they're the same.

In my case, i have records to delete or modify or insert.
where's my red bull!




TopTop
« 1 ... 5346 5347 5348 (5349) 5350 5351 5352 ... 29443 »



Login

Who's Online

193 user(s) are online (93 user(s) are browsing Support Forums)


Members: 0


Guests: 193


more...

Donat-O-Meter

Stats
Goal: AU$15.00
Due Date: Jul 31
Gross Amount: AU$0.00
Net Balance: AU$0.00
Left to go: AU$15.00
Make donations with PayPal!

Latest GitHub Commits