Pricelist V2 0 Anatol Leskovski

Features:


System Requirements:



Other files by: webmaster

Evennews Mailer (2006/06/04)
Chess (2004/08/07)
Avantgo 2.14 (2004/04/28)
Cjay Content 3 (2004/04/28)
Direct Friends (2004/04/28)
Enterprise-X (2004/04/28)
Error Handler (2004/04/28)
Link to us (2004/04/28)
Metacat 1.0 (2004/04/28)
MSN Messenger (2004/04/28)
EasyWeb (2004/04/28)
Supports (2004/04/28)
wsProject (2004/04/28)
Addresses module (2004/04/28)
Agnitio Virus Info (2004/04/28)
Altern8news (2004/04/28)
Analog clock (2004/04/28)

The comments are owned by the author. We aren't responsible for their content.
user

 Pricelist 2.0+ZIP little correction


Hi

Here is a correction of an error I discover in pricelist module


There is an error in the file pricelist/admin/index.php about line 210 which impede modification of a category. Here is the correction. Substitute set by ,
That's all!

Before

function DbEditDeleteCat($functz, $ok, $caid, $catname, $parent) {
global $xoopsDB;
if ($functz==0) {
$xoopsDB->query("update ".$xoopsDB->prefix("pricelist_categories")." set catname='$catname' set parent='$parent' where caid=$caid" );
redirect_header("index.php",1,_UPDATED);
}
if ($functz==1) {
title(""._ADMINADSAECAT."");
OpenTable();
if ($ok == 0) {
echo "

"._AUTHORDELSURE." $catname "._FRCATLISTQ.""
."

[ "._YES." ] [ "._NO." ]
";
}
CloseTable();
}
}

After

function DbEditDeleteCat($functz, $ok, $caid, $catname, $parent) {
global $xoopsDB;
if ($functz==0) {
$xoopsDB->query("update ".$xoopsDB->prefix("pricelist_categories")." set catname='$catname', parent='$parent' where caid=$caid" );
redirect_header("index.php",1,_UPDATED);
}
if ($functz==1) {
title(""._ADMINADSAECAT."");
OpenTable();
if ($ok == 0) {
echo "
"._AUTHORDELSURE." $catname "._FRCATLISTQ.""
."

[ "._YES." ] [ "._NO." ]
";
}
CloseTable();
}
}

 
user

 Re: Pricelist 2.0+ZIP little correction


Hi, this does not work at 2.0.18.1, are there only the one "set" i have to change?
The whole module isnt working on my server, please help!

 
user

 Re: Pricelist 2.0+ZIP little correction


add this in beginning of admin/index.php. I add it after this line:

$mytree = new XoopsTree($xoopsDB->prefix("pricelist_cat"),"cid","pid");


It works on my server

// Emulate register_globals on
  
if (!ini_get('register_globals')) {
     
$superglobals = array($_SERVER$_ENV,
         
$_FILES$_COOKIE$_POST$_GET);
     if (isset(
$_SESSION)) {
         
array_unshift($superglobals$_SESSION);
     }
     foreach (
$superglobals as $superglobal) {
         
extract($superglobalEXTR_SKIP);
     }
  }

 


Login

Top Module Downloads

Who's Online

382 user(s) are online (5 user(s) are browsing Module Repository)


Members: 0


Guests: 382


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!