SMFHacks.com
** Home Forum Index Hacks Products Login Register Search
Welcome, Guest. Please login or register.
May 25, 2012, 09:19:59 am

Login with username, password and session length
Members
Total Members: 10073
Latest: makablue
Stats
Total Posts: 28687
Total Topics: 4977
Online Today: 85
Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Users: 0
Guests: 45
Total: 45
+ 
|-+ 
| |-+ 
| | |-+ 
| | | |-+ 
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: SMF Trader System Updated  (Read 4443 times)
SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« on: June 16, 2007, 12:35:10 pm »

SMF Trader System Updated

Version 1.1 Released
+Moved language strings to a language files
+Added trader rating approval sytem. Admins can now approve ratings
+Will send a PM to a user when a rating is added to their profile when it is approved.
Logged
Nite
Newbie
*
Offline Offline

Posts: 45



View Profile WWW
« Reply #1 on: June 17, 2007, 01:57:46 pm »

This installed fine for me.

However, when I go to the "Trader Settings" in the admin menu, I get the following error.

Quote
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 ...


Code:
<?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__);

?>
« Last Edit: June 17, 2007, 02:05:00 pm by Nite » Logged

SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #2 on: June 17, 2007, 05:48:25 pm »

Hmm try renaming trader.template.php to Trader.template.php
Logged
Nite
Newbie
*
Offline Offline

Posts: 45



View Profile WWW
« Reply #3 on: June 17, 2007, 06:34:05 pm »

Running "smftraderinstall.php" does not put stuff into the database .

Modifications.english.php was updated.
Profile.template.php was updated.
Display.template.php was updated.
index.php was updated.
ManagePermissions.php was updated.
Subs.php was updated.

...

I search for "trader" in phpmyadmin, and cannot find it.

"Trader.template.php" was how it was installed.
« Last Edit: June 17, 2007, 06:37:52 pm by Nite » Logged

SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #4 on: June 17, 2007, 07:03:36 pm »

Run this query via phpMyAdmin
Code:
CREATE TABLE IF NOT EXISTS smf_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))
Logged
Nite
Newbie
*
Offline Offline

Posts: 45



View Profile WWW
« Reply #5 on: June 17, 2007, 10:03:19 pm »

Adding info to db was successful.

But I still get
Quote
Unable to load the 'trader' template.

When attempting to access Trader from profile and from admin menu.

Could there be anything else? Is anyone else having difficulties, or am I the only one?
Logged

SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #6 on: June 17, 2007, 10:05:48 pm »

Open Sources/trader.php
Find
Code:
loadtemplate('trader');
Replace with
Code:
loadtemplate('Trader');
Logged
Nite
Newbie
*
Offline Offline

Posts: 45



View Profile WWW
« Reply #7 on: June 17, 2007, 10:31:22 pm »

Excellent!

Working now!
Logged

Nite
Newbie
*
Offline Offline

Posts: 45



View Profile WWW
« Reply #8 on: June 27, 2007, 11:53:25 pm »

Just let us know when this'll work with v1.1.3. I'm sure your scambling to upadate all of your excellent mods..
Logged

SMFHacks
Administrator
Hero Member
*****
Offline Offline

Posts: 9678


View Profile
« Reply #9 on: June 28, 2007, 07:04:22 am »

It should be updated already all the mods. Make sure to download the latest version.
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  

Recent
[May 24, 2012, 08:02:50 am]

[May 24, 2012, 04:11:41 am]

[May 21, 2012, 08:54:11 am]

[May 20, 2012, 11:06:52 am]

[May 20, 2012, 05:58:11 am]

[May 19, 2012, 06:16:58 pm]

[May 19, 2012, 05:42:37 pm]

[May 18, 2012, 03:08:38 pm]

[May 17, 2012, 06:07:46 pm]

[May 17, 2012, 02:22:07 pm]
Random Picture
Donate to SMFHacks.com
Help Support the SMFHacks.com mod making.
Powered by SMF 1.1.16 | SMF © 2006-2011, Simple Machines LLC
TinyPortal v0.9.7 © Bloc
SMF and SimpleMachines are registered trademarks of Simple Machines. SMFHacks.com is not affiliated with nor endorsed by Simple Machines.
Page created in 4.885 seconds with 19 queries.