cotonti.com : Forum shop V1 https://www.cotonti.com Последние сообщения в теме Cotonti en Fri, 19 Dec 2025 21:26:27 -0000 Dyllon
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..]]>
ср, 15 июл 2009 05:00:51 -0000
backa
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 ?]]>
вт, 07 июл 2009 06:56:04 -0000