This installed fine for me.
However, when I go to the "Trader Settings" in the admin menu, I get the following error.
Unable to load the 'trader' template.
The forum error log says the same thing. All the files are where they are supposed to be..
How to do manual edit of db thru phpmyadmin of the file? -- I'll attempt to add the tables manually ...
<?php
/*
SMF Trader System: 1.1
http://www.smfhacks.com
smftraderinstall.php - SMF Trader System
Purpose - Installs the database tables for SMF Trader System
*/
db_query("CREATE TABLE IF NOT EXISTS {$db_prefix}feedback
(feedbackid int(11) NOT NULL auto_increment,
ID_MEMBER mediumint(8) unsigned NOT NULL default '0',
comment_short tinytext NOT NULL,
comment_long text, topicurl tinytext,
saletype tinyint(4) NOT NULL default '0',
salevalue tinyint(4) NOT NULL default '0',
saledate int(11) NOT NULL default '0',
FeedBackMEMBER_ID mediumint(8) unsigned NOT NULL default '0',
approved tinyint(4) NOT NULL default '1',
PRIMARY KEY (feedbackid))", __FILE__, __LINE__);
$dbresult = db_query("SHOW COLUMNS FROM {$db_prefix}feedback", __FILE__, __LINE__);
$approved = 1;
while ($row = mysql_fetch_row($dbresult))
{
if($row[0] == 'approved')
$approved =0;
}
mysql_free_result($dbresult);
if ($approved)
db_query("ALTER TABLE {$db_prefix}feedback ADD approved tinyint(4) NOT NULL default '1'", __FILE__, __LINE__);
// Other Settings
db_query("INSERT IGNORE INTO {$db_prefix}settings
(variable, value)
VALUES('trader_approval', '0')
", __FILE__, __LINE__);
?>