Форуми / Cotonti / Support / Forum shop V1

backa
#1 07.07.2009 06:56
installation problem:

2. /system/functions.php Find

$cfg['sqldb'] = 'mysql';


BELOW, ADD:

function getcashbanked($userid)
   {
   $sql2 = sed_sql_query("SELECT COUNT(*) FROM sed_shop_bank WHERE userid='$userid'");
   $amtbnk = sed_sql_result($sql2, 0, "COUNT(*)");

   if($amtbnk > 0)
      {

      $sql3 = mysql_query("SELECT * FROM sed_shop_bank WHERE userid='$userid' LIMIT 1");
      $row3 = mysql_fetch_array($sql3);

      return $row3['amount'];
      }else{
      return 0;
      }
   }

the problem is, that the system/functions.php doesnt have
$cfg['sqldb'] = 'mysql';

what should i do

well that mod didnt install for me, it didnt have the sql file with it... i dled the mod form WDDB

the forum shop havent got SQL file included, can someone help me ?

Відредаговано: backa (10.07.2009 14:30, 14 років тому)
Dyllon
#2 15.07.2009 05:00
the function could be added anywhere, and the SQL code i believe is in the included HTML file. its been a while since i have even looked at this plugin to even help you really, but following the steps in the help file should allow it to work. (even though this is a seditio plugin im not 100% sure it works with cotonti)

Added 3 minutes later:

ok just downloaded it, the SQL is built into the plugin actually. once you install the plugin, in your tools tab there should be a link to the forum shop configuration settings. There you can select either a fresh install or a list of upgrades.

as for the core hack portion, just put the function below or above any other function..
We are what we repeatedly do. Excellence then, is not an act, but a habit.