Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: SMFHacks.com Team on July 12, 2006, 12:35:09 AM

Title: SMF Trader System
Post by: SMFHacks.com Team on July 12, 2006, 12:35:09 AM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=346)



SMF Trader System

By vbgamer45 (http://custom.simplemachines.org/mods/index.php?action=profile;u=24876)


Compatibility
Works with both SMF 2.1.x and SMF 2.0.x and SMF 1.1.x

Description
A trader system for SMF. Trader count is displayed under each member's name in a topic. Also trader information is displayed in their profile.

Member's of you forum can rate other members as either a buyer, seller, or a trade deal.

2.0a
+Added support for SMF 2.1.x

2.0
+Improved SMF 2.0 style in some areas of the trader system.
+Listing is now shown on the detail page if you have SMF Classifieds installed.
+Listing Title now shown above short comment if you have SMF Classifieds installed.
+Buyer/Seller now in bold on trader feedback listing page
!Better support for UTF8 characters SMF 2.0
!Fixed an issue with sometimes allowing the same SMF Classifieds listing to be allowed to be rated twice.

1.7
!Fixed undefined errors in settings area for SMF 2.0.x
!Fixed icon for trader system in admin area for SMF 2.0

1.6
!Do not show listings in submit feedback if already rated the listing - SMF Classifieds
integration
!Do not show the submit feedback link for yourself
!Do not ask for short topic url if classifieds option says you require to select a listing
 - SMF Classifieds integration

1.5
!Fix bug not showing reviews if a member deleted their account
!Fixed missing language string on delete rating added Short Comment

1.4.2
SMF 2.0 RC3 support

1.4
+Better integration with SMF Classifieds
 (http://www.smfhacks.com/smf-classifieds.php)

Version 1.3
+Support for SMF 2.0 RC1

Version 1.2
!Major changes
+Feedback by pages
+More settings


Version 1.1
+Moved language strings to a language files
+Added trader rating approval system. Admins can now approve ratings
+Will send a PM to a user when a rating is added to their profile when it is approved.


Support Links
SMF Package Parser (http://sleepycode.com/PackageParser/)
Manual Installation Of Mods (http://docs.simplemachines.org/index.php?topic=402)
How Do I Modify Files? (http://www.simplemachines.org/community/index.php?topic=24110.0)


 
Title: Re: SMF Trader System
Post by: PrizeLive.com on July 12, 2006, 12:37:26 AM
Have you updated this to enable admins/mods to review the feedback before it gets left?
Title: Re: SMF Trader System
Post by: trenchteam on July 12, 2006, 04:16:50 AM
screenshot?
Title: Re: SMF Trader System
Post by: Vinspire on July 12, 2006, 07:26:10 AM
Nice mod ... I played with it before :)
Title: Re: SMF Trader System
Post by: PrizeLive.com on July 12, 2006, 09:10:57 AM
Yes nice mod.. but it will be over-abused... The feedback's have to be approved before they are left...!
Title: Re: SMF Trader System
Post by: vbgamer45 on July 12, 2006, 12:53:03 PM
Yes nice mod.. but it will be over-abused... The feedback's have to be approved before they are left...!
Maybe in the future. Not sure how the admin would actually approve it that it happened maybe just stop some people from bulk doing it. Not sure how vBulletin's iTrader mod handles it.
Title: Re: SMF Trader System
Post by: PrizeLive.com on July 12, 2006, 01:10:19 PM
Yes nice mod.. but it will be over-abused... The feedback's have to be approved before they are left...!
Maybe in the future. Not sure how the admin would actually approve it that it happened maybe just stop some people from bulk doing it. Not sure how vBulletin's iTrader mod handles it.

i've seen another trader system on a forum and all feedback had to be approved before it was placed....
Title: Re: SMF Trader System
Post by: Tony Reid on July 17, 2006, 10:48:04 AM
Would be nice to see a screenshot :)
Title: Re: SMF Trader System
Post by: vbgamer45 on July 17, 2006, 10:55:53 AM
Added two screenshots to the mod listing page.
Title: Re: SMF Trader System
Post by: PrizeLive.com on July 17, 2006, 10:58:17 AM
Nice screenshots...

Any luck on the feedback approval modification?
Title: Re: SMF Trader System
Post by: vbgamer45 on July 17, 2006, 01:21:19 PM
Just added support for SMF 1.0.7
Enjoy,
vbgamer45
Title: Re: SMF Trader System
Post by: Vinspire on August 03, 2006, 02:31:13 PM
vbgamer, i've got this error in my error log. any idea what is it ? clash wif the ignore mod ?  :D

8: Use of undefined constant smftrader_profile - assumed 'smftrader_profile'
File: /home/korobox/public_html/forum/Themes/default/languages/Ignore.english.php (main sub template - eval?)
Line: 388
Title: Re: SMF Trader System
Post by: winrules on August 04, 2006, 05:31:12 PM
vbgamer, i've got this error in my error log. any idea what is it ? clash wif the ignore mod ?  :D

8: Use of undefined constant smftrader_profile - assumed 'smftrader_profile'
File: /home/korobox/public_html/forum/Themes/default/languages/Ignore.english.php (main sub template - eval?)
Line: 388
To fix those in display.template.php find:
Code: [Select]
$txt[smftrader_profile]
and replace with
Code: [Select]
$txt['smftrader_profile']

I'm sure vbgamer will fix it soon.
Title: Re: SMF Trader System
Post by: vbgamer45 on August 04, 2006, 06:42:28 PM
Fixed thanks winrules!
Title: Re: SMF Trader System
Post by: Vinspire on August 05, 2006, 04:03:24 AM
To fix those in display.template.php find:
Code: [Select]
$txt[smftrader_profile]
and replace with
Code: [Select]
$txt['smftrader_profile']

I'm sure vbgamer will fix it soon.

I followed what you said and a new error had occur.

2: Division by zero
File: /home/korobox/public_html/forum/Themes/default/trader.template.php (main sub template - eval?)
Line: 41

8: Undefined index: sa
File: /home/korobox/public_html/forum/Sources/Trader.php
Line: 30
Title: Re: SMF Trader System
Post by: maxigs on September 09, 2006, 06:34:40 AM
Very nice Mod, just what i have been looking for :-)


I installed this Mod on a a fresh RC3 and although it seems to work perfectly fine (users can write feedbacks and everything else seems to work) i have a error permanently to show up in the boards error log:

Code: [Select]
2: Division by zero
File: /var/www/forum2/Themes/default/languages/Who.english.php (summary sub template - eval?)
Line: 299

This Error always shows up in the Profile of someone who does not have any feedbacks yet, so i assume the division by zeror occures through the number of feedbacks.

would be glad if this could be fixed, ty ;)
Title: Re: SMF Trader System
Post by: vbgamer45 on September 10, 2006, 11:16:25 AM
Can you post the code around Who.english.php line 299.

My mod doesn't modify Who.english.php I think it is another mod.
Title: Re: SMF Trader System
Post by: perplexed on September 13, 2006, 07:04:36 AM
this might be a dumb question but where do people buy and sell stuff on the forum in order to become a trader.  Can someone post an example of this or point me to a site that has an example?

I used to have a marketplace component on joomla where people could post 'ads' for sale/exchange etc but it wasnt linked to smf so this might be good for us if I could see it in action


~thanks
Title: Re: SMF Trader System
Post by: Vinspire on September 13, 2006, 12:58:58 PM
this might be a dumb question but where do people buy and sell stuff on the forum in order to become a trader.  Can someone post an example of this or point me to a site that has an example?

I used to have a marketplace component on joomla where people could post 'ads' for sale/exchange etc but it wasnt linked to smf so this might be good for us if I could see it in action

~thanks

Under a marketplace or trading sub-board if you have any on ur forum :)

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg235.imageshack.us%2Fimg235%2F2073%2Fsalesnk3.png&hash=da1d77bced2e1bbf51279cdee25410bc)
Title: Re: SMF Trader System
Post by: perplexed on September 13, 2006, 01:16:09 PM
ah ok, so it just goes on a regular forum board?

so if I was to post that I was selling a book, the post or the item for sell (the book) doesnt link to the rating in the profile?

so if someone bought the book, they would then go to my profile and rate me as a seller?

is that how it works?

~thanks
Title: Re: SMF Trader System
Post by: Vinspire on September 13, 2006, 01:33:23 PM
ah ok, so it just goes on a regular forum board?

so if I was to post that I was selling a book, the post or the item for sell (the book) doesnt link to the rating in the profile?

so if someone bought the book, they would then go to my profile and rate me as a seller?

is that how it works?

~thanks

Yeap.... Like how ebay feedback system work  ;D :D

But i am afraid this mod would be abused  :-[ vbgamers, can make it something like the karma where they are given a limit to give 5 feedback per day only ? :)
Title: Re: SMF Trader System
Post by: perplexed on September 13, 2006, 02:25:55 PM
ah ok, so at the moment, I could go and give you unlimited feedback even if you hadnt sold anything?

I can see how some people might abuse that
Title: Re: SMF Trader System
Post by: Vinspire on September 13, 2006, 02:28:43 PM
ah ok, so at the moment, I could go and give you unlimited feedback even if you hadnt sold anything?

I can see how some people might abuse that

Yeap ... I am so afraid my forummers would abuse that too. For the current condition. I've set it available for forummers above 50 post only can post a feedback onto the trader system.
Title: Re: SMF Trader System
Post by: perplexed on September 13, 2006, 02:49:16 PM
oh thats a good idea :)
Title: Re: SMF Trader System
Post by: maxigs on September 17, 2006, 01:47:28 PM
Can you post the code around Who.english.php line 299.

My mod doesn't modify Who.english.php I think it is another mod.

sorry to let you wait this long but i've been out for a couple of "days"

the Who.english.php (and the german one as well, when the language is in german) do not have 299 lines.. both only ~90

the only other modificatin i have in my board so far is the custom board sort mod and this one also does not change anything in the Who.xxx.php


i only found out so far, that the error onyl occurs when the profile of someone is watched who does not have any trade-counts yet
so my thought was -> no trade counts, average trade-rating divided through 0 -> this error


the users in my board are really happy about this mod, and so far seems to be working perfectly so would be great to make sure its really working properly (in case it does and this error comes from something else, i'm sorry ;) )
Title: Re: SMF Trader System
Post by: chinclub on October 11, 2006, 01:23:25 PM
I have a question, does this attach to every member's profile or can it be set to a single member group?  I was thinking if it was only for a set member group I could move participating members into that group and then the members who are not buyers or sellers won't have to worry about it.
Title: Re: SMF Trader System
Post by: vbgamer45 on October 11, 2006, 02:03:12 PM
It is ataached to every group but you can disable a group from adding ratings.
Title: Re: SMF Trader System
Post by: RRasco on October 25, 2006, 01:00:57 PM
how do i see or edit the settings?  i cant find anything different on my board at all.
Title: Re: SMF Trader System
Post by: Vinspire on October 25, 2006, 01:02:05 PM
how do i see or edit the settings?  i cant find anything different on my board at all.

Member groups permission under admin cp :)
Title: Re: SMF Trader System
Post by: RRasco on October 25, 2006, 01:17:10 PM
so this is JUST trader ratings, not a trading post?  any trading post available?
Title: Re: SMF Trader System
Post by: vbgamer45 on October 25, 2006, 01:36:33 PM
What is a trading post?
Title: Re: SMF Trader System
Post by: RRasco on October 25, 2006, 02:40:30 PM
im not so sure that would be its technical name, but an actual median for people to post listings of items they have for sale.
Title: Re: SMF Trader System
Post by: vbgamer45 on October 25, 2006, 02:54:29 PM
This mod does not feature that. The way this mod works is you would have a for sale forum and then people rate others on transactions that occur.
Title: Re: SMF Trader System
Post by: maxigs on October 30, 2006, 10:13:07 AM
Just wanted to remind on the error i reportet earlier in this topic ;)

Yet i still have the errors showing up in the error-log but noone ever was complaining about a actual error in the frontend. yet it would be nice to have the error log clean.

I'm not enought into the smf-code so i would know where to look for the problem.
Title: Re: SMF Trader System
Post by: vbgamer45 on October 30, 2006, 11:18:30 AM
Just wanted to remind on the error i reportet earlier in this topic ;)

Yet i still have the errors showing up in the error-log but noone ever was complaining about a actual error in the frontend. yet it would be nice to have the error log clean.

I'm not enought into the smf-code so i would know where to look for the problem.
Remind maybe I can look at it today.
Title: Re: SMF Trader System
Post by: Xarcell on November 04, 2006, 09:16:46 PM
I get this error when I view someone else's profile, but not my own.

2: Division by zero
File: /home/.abigaildryer/xarcell/xboxnarc.com/smf/Themes/default/languages/Who.english.php (summary sub template - eval?)
Line: 299

This mod is awesome though. You da man!
Title: Re: SMF Trader System
Post by: klaus3 on November 22, 2006, 12:38:36 AM
I have just installed and can see nothing under the users neither on the user's profile. Do I need to activate it? Is it because I am using tinyportal?

Also, are you considering developing other forums' ratings importation module?
Title: Re: SMF Trader System
Post by: vbgamer45 on November 22, 2006, 12:46:06 AM
It shows up on the default theme. A link in their profile and under their username on each post they make.

Importing of ratings I would need to see the database structure.
Title: Re: SMF Trader System
Post by: maxigs on November 26, 2006, 08:52:45 AM
I get this error when I view someone else's profile, but not my own.

2: Division by zero
File: /home/.abigaildryer/xarcell/xboxnarc.com/smf/Themes/default/languages/Who.english.php (summary sub template - eval?)
Line: 299

-> http://www.simplemachines.org/community/index.php?topic=98912.msg722183#msg722183
-> http://www.simplemachines.org/community/index.php?topic=98912.msg733075#msg733075

i guess its not a critical error, but yet i still have it showing up ;)
Title: Re: SMF Trader System
Post by: SergeantAsh on December 03, 2006, 02:18:38 PM
I'm getting the same error, any news?
Title: Re: SMF Trader System
Post by: Xarcell on December 07, 2006, 11:19:53 AM
Just ingore the error, it's because nothing is there yet I reckon.

Anyways, I got this working on SMF 1.1.

I need some help with some coding. In the display template, I only want the trader info to show up if it's in a certain board. Can you post a snippet for me so I can do this? I couldn't figure it out.

EX: the board ID is 43.
Title: Re: SMF Trader System
Post by: Xarcell on December 07, 2006, 11:20:53 AM
BTW, is there any chance you'll create an index for the trader system? That shows most feedback, most reviews, latest, that sorta thing?

Or post the code and I'll try to do it.
Title: Re: SMF Trader System
Post by: klaus3 on December 09, 2006, 12:06:11 AM
How about some importers? A lot of people are changing from punBB and phpBB forums but all importers don't care about the trade rating mods date.
Title: Re: SMF Trader System
Post by: vbgamer45 on December 09, 2006, 01:07:17 PM
I would need to get a database dump of the other trader mods and see if I could convert. That is some work though.
Title: Re: SMF Trader System
Post by: Ben_S on December 14, 2006, 11:05:47 AM
Regarding the division by zero errors, you want to do something like

Code: [Select]
<tr><td><b>' . $txt['smftrader_positivefeedbackpercent']  . '</b></td><td><b>' , $tradecount != 0 ? round(($pcount / $tradecount) * 100, 2) : 0 , '%</b></td></tr>
instead of

Code: [Select]
<tr><td><b>' . $txt['smftrader_positivefeedbackpercent']  . '</b></td><td><b>' .  round(($pcount / $tradecount) * 100, 2) . '%</b></td></tr>
Also not sure if there was a reason for using memberName in places, I personally think it's better to use realName.
Title: Re: SMF Trader System
Post by: vbgamer45 on December 14, 2006, 07:55:53 PM
Regarding the division by zero errors, you want to do something like

Code: [Select]
<tr><td><b>' . $txt['smftrader_positivefeedbackpercent']  . '</b></td><td><b>' , $tradecount != 0 ? round(($pcount / $tradecount) * 100, 2) : 0 , '%</b></td></tr>
instead of

Code: [Select]
<tr><td><b>' . $txt['smftrader_positivefeedbackpercent']  . '</b></td><td><b>' .  round(($pcount / $tradecount) * 100, 2) . '%</b></td></tr>
Also not sure if there was a reason for using memberName in places, I personally think it's better to use realName.
SMF Trader updated with the above fixes.
Title: Re: SMF Trader System
Post by: nay27uk on December 14, 2006, 09:49:45 PM
SMF Trader System 1.1   mod, wher exactly do you sell or buy i cant find it, i am asuming you can because when you try to leave feedback for someone it askes wher you the SELLER, BUYER so wher do you put your advertisment
Title: Re: SMF Trader System
Post by: vbgamer45 on December 14, 2006, 09:58:13 PM
You would sell a product/service/ or goods in a forum.

Buyers and sellers then rate each other via their profiles.
Under each post it lists a users trading count.
Title: Re: SMF Trader System
Post by: Greek on December 22, 2006, 06:49:36 AM
Good idea, but I think that this system is quite poor. It's more "cosmetic".
At this moment it looks more like karma.
I believe that it should be more "official". What I mean?
A tab in main index, with some categories like "For sale" and "Wanted", "Top sallers" and "Top buyers" and more...
Stronger control on feedbacks and generally in whole system, and some restrictions to who can post in this table (perhaps based on minimum number post in forum, or on various options)
Less important, but it doesn't seems good to appears the trade label right after the member's legend in mini profile. If a member doesn't have any relation with trades, doesn't need the label and it should have the option to deactivate it from his mini profile.
Just my opinion.
I want to believe that my poor english is understood  :)
Title: Re: SMF Trader System
Post by: Kidsphoenixx on December 26, 2006, 12:12:34 AM
I have just read through all 4 pages of this thread, and don't see anyone with my problem.
I installed this mod ( and a few others) before I fully understood SMF ( I still don't fully understand it, but I'm learning ;) ).
I wanted to uninstall this mod until such time as I really need it....however, when I go to "Installed Pakcages", and click on uninstall it, I get this message:

This package cannot be uninstalled, because there is no uninstaller!

Please contact the mod author for more information.

Can anyone help me with this please? I don't want to just delete it cos I've read how doing that often causes problems.
Is there a "general" way to uninstall mods that come with NO uninstaller?
Thanks in advance. :)
Title: Re: SMF Trader System
Post by: vbgamer45 on December 26, 2006, 12:34:04 AM
Download the mod from your packages area.
Check out the package-info.xml
It should be something like this
Code: [Select]
<?xml version="1.0"?>
<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info">

<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/">
<id>vbgamer45:SMFTraderSystem</id>
<name>SMF Trader System</name>
<type>modification</type>
<version>1.0.1</version>
<install for="1.1.1,1.1,1.1 RC3,1.1 RC2">
<readme>ReadMe.txt</readme>
<modification type="file">smftrader.xml</modification>
<require-file name="Trader.php" destination="$sourcedir" />
<require-file name="trader.template.php" destination="$themedir" />
<code>smftraderinstall.php</code>

</install>
<uninstall for="1.1.1,1.1,1.1 RC3,1.1 RC2">
<modification type="file" reverse="true">smftrader.xml</modification>
</uninstall>
<install for="1.0.7,1.0.8,1.0.9,1.0.10">
<readme>ReadMe.txt</readme>
<modification type="file">smftrader107.xml</modification>
<require-file name="Trader.php" destination="$sourcedir" />
<require-file name="trader.template.php" destination="$themedir" />
<code>smftraderinstall.php</code>

</install>
<uninstall for="1.0.7,1.0.8,1.0.9,1.0.10">
<modification type="file" reverse="true">smftrader107.xml</modification>
</uninstall>
</package-info>
Update the file and rezip the package and place it in your packages folder and it should unstiall then.
Title: Re: SMF Trader System
Post by: choloman05 on December 27, 2006, 02:54:13 AM
I just wanted to say that the mod is a great idea. Thanks for doing it. But I think I have the same request as everyone else - for some kind of admin/mod control over the ratings- to be submitted to them before being finalized. If I knew code, I'd look into it. sorry.
Title: Re: SMF Trader System
Post by: RoarinRow on December 30, 2006, 12:50:41 AM
Thank you for this modification  8)   The only thing I did differently was move the 'Trade Count' number below the post count and unbolded the text. 
Title: Re: SMF Trader System
Post by: vbgamer45 on December 30, 2006, 12:51:16 AM
Looks good there too.
Title: Re: SMF Trader System
Post by: RoarinRow on December 30, 2006, 12:55:43 AM
Looks good there too.

Yup, blends in with the post count   8)
Title: Re: SMF Trader System
Post by: WebWorm on January 04, 2007, 08:33:21 PM
Had this installed before the 1.1.1 upgrade wiped it out...I uninstalled the previous version, but when I try to install the system again, I get this message:

Quote
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Under that, I get:

Quote
Installations actions for "SMF Trader System":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
2.    Execute Modification    ./Themes/default/Profile.template.php                          Test successful
3.    Execute Modification    ./Themes/default/Display.template.php                         Test failed
4.    Execute Modification    ./index.php                                                            Test successful
5.    Execute Modification    ./Sources/ManagePermissions.php                          Test successful
6.    Extract File    ./Sources/Trader.php    
7.    Extract File    ./Themes/default/trader.template.php    
8.    Execute Code    smftraderinstall.php

If I just go into the Display.template.php file and manually include the code that needs to go there (per the XML file info), would I be safe proceeding?
Title: Re: SMF Trader System
Post by: vbgamer45 on January 04, 2007, 08:38:02 PM
Had this installed before the 1.1.1 upgrade wiped it out...I uninstalled the previous version, but when I try to install the system again, I get this message:

Quote
Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Under that, I get:

Quote
Installations actions for "SMF Trader System":
Installing this package will perform the following actions:
   Type    Action    Description
1.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
2.    Execute Modification    ./Themes/default/Profile.template.php                          Test successful
3.    Execute Modification    ./Themes/default/Display.template.php                         Test failed
4.    Execute Modification    ./index.php                                                            Test successful
5.    Execute Modification    ./Sources/ManagePermissions.php                          Test successful
6.    Extract File    ./Sources/Trader.php    
7.    Extract File    ./Themes/default/trader.template.php    
8.    Execute Code    smftraderinstall.php

If I just go into the Display.template.php file and manually include the code that needs to go there (per the XML file info), would I be safe proceeding?
Yes you would.
Title: Re: SMF Trader System
Post by: WebWorm on January 04, 2007, 08:42:47 PM
Thanks vbgamer, I appreciate knowing I won't kill something today.  ;D
Title: Re: SMF Trader System
Post by: Cyberclone on January 14, 2007, 03:45:51 PM
Hello vbgamer45

Thanks for your great mod!
One Problem:

after klick on report feedback I have an error
Code: [Select]
Fatal error: Cannot redeclare preparsecode() (previously declared in /home/spocrati/public_html/smf/Sources/Subs-Post.php:158) in /home/spocrati/public_html/smf/Sources/Subs-Post.php on line 158Do you have a solution?

Here the german language part:

Code: [Select]
<file name="$languagedir/Modifications.german.php">
<operation>
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
//Begin SMF Trader System Text Strings
$txt['smftrader_title'] = 'SMF Handelssystem';
$txt['smftrader_version'] = '1.0';
//Display text strings
$txt['smftrader_profile'] = 'Anzahl Gesch&auml;fte: ';
//Profile text strings
$txt['smftrader_submitfeedback'] = 'Abgeben eines Feedbacks f&uuml;r ';
$txt['smftrader_totalfeedback'] = 'Verh&auml;ltnis (+/-): ';
$txt['smftrader_positivefeedbackpercent'] = 'Positive Feedbacks: ';
$txt['smftrader_positivefeedback'] = '<span style="color: #006400;">Positive Feedbacks: </span>';
$txt['smftrader_neutralfeedback'] = 'Neutrale Feedbacks: ';
$txt['smftrader_negativefeedback'] = '<span style="color: #FF0000;">Negative Feedbacks: </span>';
//Start trader.template

//Submit Transaction Rating
$txt['smftrader_whoareu'] = 'Du bist:';
$txt['smftrader_buyer'] = 'K&auml;ufer';
$txt['smftrader_seller'] = 'Verk&auml;ufer';
$txt['smftrader_trade'] = 'Gesch&auml;ft';


$txt['smftrader_transaction'] = 'Bewertung des Handels:';
$txt['smftrader_positive'] = 'Positiv';
$txt['smftrader_neutral'] = 'Neutral';
$txt['smftrader_negative'] = 'Negativ';

$txt['smftrader_shortcomment'] = 'Kurzer Kommentar zum abgewickelten Gesch&auml;ft:';
$txt['smftrader_shortcommentnote'] = 'Max: 100 Zeichen';
$txt['smftrader_topicurl'] = 'URL des Topics: ';
$txt['smftrader_longcomment'] = 'Langer Kommentar zum abgewickelten Gesch&auml;ft:';


//Rating Overview
$txt['smftrader_allfeedback'] = 'Zeige alle Feedbacks';
$txt['smftrader_sellerfeedback'] = 'Zeige Feedbacks als K&auml;ufer';
$txt['smftrader_buyerfeedback'] = 'Zeige Feedback als Verk&auml;ufer';
$txt['smftrader_tradefeedback'] = 'Zeige Feedback zu den abgewickelten Gesch&auml;ften';

//Page Titles
$txt['smftrader_feedbacktitle'] = 'SMF Handelssystem - Uebersicht ';
$txt['smftrader_submittitle'] = 'SMF Handelssystem - Feedback absenden';
$txt['smftrader_reporttitle'] = 'SMF Handelssystem - Falsches Feedback melden';


$txt['smftrader_contact'] = 'Kontakt';
$txt['smftrader_viewprofile'] = 'Zeige das Profil';
$txt['smftrader_sendpm'] = 'Sende dem Benutzer eine PM';
//End trader.template

//Permissions
$txt['permissiongroup_smftrader'] = 'SMF Handelssystem';
$txt['permissionname_smftrader_feedback'] = 'Feedback abgeben zulassen';
$txt['permissionhelp_smftrader_feedback'] = 'User das abgeben eines Feedbacks erlauben';
$txt['permissionname_smftrader_deletefeed'] = 'Feedback L&ouml;schen zulassen';
$txt['permissionhelp_smftrader_deletefeed'] = 'User d&uuml;rfen Feedbacks l&ouml;schen';
$txt['cannot_smftrader_feedback'] = 'Du hast kein Recht ein Feedback abzugeben';
$txt['cannot_smftrader_deletefeed'] = 'Du hast kein Recht ein Feedback zu l&ouml;schen';

//END SMF Trader System Text Strings
]]></add>
</operation>
</file>
Title: Re: SMF Trader System
Post by: Shonick on January 19, 2007, 01:27:52 PM
how can I allow only member with 5 post can five feeback?If any member can five feeback then there will be spam on feeback.they can creat a nother account and give themselve good feeback
Title: Re: SMF Trader System
Post by: vbgamer45 on January 19, 2007, 01:32:35 PM
You can do that with permissions and setup post based groups with only 5 or more posts can submit feedback.
Title: Re: SMF Trader System
Post by: Shonick on January 20, 2007, 09:59:43 PM
got it, thanks
Title: Re: SMF Trader System
Post by: twistmystic on February 17, 2007, 06:10:18 AM
Idk if this has been answered. But how would I enable this for other themes? Can you provide me the code for it? Or how would i make the theme i am using a Default theme so then when i install mods they will be installed on the current theme. Any ideas?
Title: Re: SMF Trader System
Post by: tensop on March 10, 2007, 12:56:33 AM
When a user reports bad feedback eg : http://www.mysitehere.com/beta/forum/index.php?action=trader;sa=report;feedid=3


Nothing happens with the feedback report?
 
Title: Re: SMF Trader System
Post by: 3mrhythm on March 19, 2007, 11:22:00 AM
is it possible to add the ability to reply to negative feedback? like on ebay give them one reply and the feedback giver one more reply?
Title: Re: SMF Trader System
Post by: NickAtFMS on March 19, 2007, 03:23:51 PM
I really like the mod. I only have one problem and I'm sure it's a simple fix where I can edit a file. The Feedback number appears twice under the post count:

NickAtFMS
Administrator
Trade Count: (1)
Trade Count: (1)
Newbie

http://www.freemoneysociety.com/forum/index.php?topic=2.0

Any idea one what I have to remove?
Title: Re: SMF Trader System
Post by: vbgamer45 on March 19, 2007, 08:50:10 PM
That's located in display.template.php
Title: Re: SMF Trader System
Post by: xOraclex on April 01, 2007, 09:51:22 PM
I have a question:
When some member receives a bad feedback and want to report it, it sees logic that he will report to administration... but I've tryed it and the report notice doesn't show in anywhere.
I this normal or am i forgeting something.

Thankx
Title: Re: SMF Trader System
Post by: vbgamer45 on April 01, 2007, 10:00:37 PM
It sends an email to the webmaster on the site currently.
Title: Re: SMF Trader System
Post by: xOraclex on April 02, 2007, 11:50:10 AM
It sends an email to the webmaster on the site currently.

Great. Thank You.
Title: Re: SMF Trader System
Post by: Jaina on April 03, 2007, 05:42:59 PM
I'm really interested in this mod or maybe something similar. Is there anywhere I can look at a running demo??
Title: Re: SMF Trader System
Post by: morski_pas on April 10, 2007, 03:24:12 PM
I wanted to uninstall it because i really dont need it right now&nbsp; :-\. Did a backup and went to uninstall it but some errors showed up and test failures. I uninstalled anyway and afther that when i would go to read a topic there was some error and i couldnt read. I installed the mod again and that solved my problem but the trade count is now doubled (?!). Now when I go to uninstall it it says test sucesfull but then the same error ocures.

Help?&nbsp; :(

SMF version is 1.1.2

says this:

Table 'arenawii.feedback' doesn't exist
File: C:\Domains\arenawii.com\wwwroot\forum\Sources\Load.php(1746) : eval()'d code
Line: 286

and

8: Undefined variable: db_prefix
File: C:\Domains\arenawii.com\wwwroot\forum\Themes\default\Display.template.php (main sub template - eval?)
Line: 286
Title: Re: SMF Trader System
Post by: morski_pas on April 11, 2007, 04:28:26 AM
Ok i solved that doubled count problem but how do i uninstall?
Title: Re: SMF Trader System
Post by: vbgamer45 on April 11, 2007, 07:47:00 AM
You will need to unistall all the mods after the trader system was installed in order to unistall correctly.
Title: Re: SMF Trader System
Post by: morski_pas on April 11, 2007, 11:29:01 AM
Tnx!
Title: Re: SMF Trader System
Post by: tensop on April 12, 2007, 11:28:06 AM
would it be possible to have 'report bad feedback' directed to a set forum ID instead of to the admin account? :(
Title: Re: SMF Trader System
Post by: vbgamer45 on April 12, 2007, 07:42:56 PM
Not currently.
Title: Re: SMF Trader System
Post by: tensop on April 16, 2007, 06:34:25 AM
is there any plans to do so? or atleast have it report to moderator instead?
Title: Re: SMF Trader System
Post by: vbgamer45 on April 16, 2007, 07:51:22 AM
Not currently.
Title: Re: SMF Trader System
Post by: landshark on May 10, 2007, 12:38:56 AM
That last coment has me wodering if there are any plans to improve this mod at all.

Are there any? While i like what it does it seems like there are a lot of great recommendations for improvement here.

What are the future plans for the Mod?
Title: Re: SMF Trader System
Post by: vbgamer45 on May 10, 2007, 07:32:25 AM
Currently very busy if additions are needed I can code them but I would require to be paid for time spent working on the mod.
Title: Re: SMF Trader System
Post by: SticKer on May 11, 2007, 12:12:11 AM
can we restrict the mod to a particular forum? i mean the trader point can be given only in the buy, trade forum section.. how can we do it?
Title: Re: SMF Trader System
Post by: vbgamer45 on May 11, 2007, 07:49:58 AM
No.
Title: Re: SMF Trader System
Post by: El Reclutador 2003 on May 13, 2007, 10:14:15 AM
How this mod runs? I've search on cPanel admin but i dont see anything :S thansk!
Title: Re: SMF Trader System
Post by: vbgamer45 on May 13, 2007, 10:36:59 AM
Nothing is added to the admin panel. Located under user's profiles and viewing a post.
Title: Re: SMF Trader System
Post by: El Reclutador 2003 on May 13, 2007, 11:08:03 AM
Nothing is added to the admin panel. Located under user's profiles and viewing a post.

Sorry i'm lost then... Yes i see the trader in the profile, but i dont see nothing related with the trader when I write/see/edit a post

Edit: Forget, i see it. sorry and thanks
Title: Re: SMF Trader System
Post by: ff2k on May 26, 2007, 08:04:12 PM
Hi,

I really like this but as many as mentioned, it might be abused.

Now I'm in the process of adding some custom code so that feedbacks needs approval from admin or global moderators. Any thoughts would be appreciated. ;D
Title: Re: SMF Trader System
Post by: ff2k on May 26, 2007, 08:14:13 PM
I would also planning on adding additional stats like:

Feedbacks for the last month
Feedbacks for the last 6 months
Feedbacks for the last 12 months
Title: Re: SMF Trader System
Post by: ff2k on May 26, 2007, 11:18:44 PM
Update:

Just finished testing. I essentially added a new db field and a small php code that  adds a link under the trader page if a feedback needs approval by the admin or moderator.
Title: Re: SMF Trader System
Post by: daryllau on May 27, 2007, 11:47:29 AM
Howdy all.... I just installed this fantastic mod on my brand new smf forum. Unfortunately I can't find where is the setting page for it in my admin menu.

Thanks in advance for the help!
Title: Re: SMF Trader System
Post by: infamousedice on May 27, 2007, 04:36:11 PM
Thie is my error that i get

Code: [Select]
Installations actions for "SMF Trader System":
Installing this package will perform the following actions:&nbsp; Type Action Description
1. Execute Modification ./Themes/default/languages/Modifications.english.php Test failed
2. Execute Modification ./Themes/default/Profile.template.php Test successful
3. Execute Modification ./Themes/default/Display.template.php Test successful
4. Execute Modification ./index.php Test successful
5. Execute Modification ./Sources/ManagePermissions.php Test successful
6. Extract File ./Sources/Trader.php&nbsp;
7. Extract File ./Themes/default/trader.template.php&nbsp;
8. Execute Code smftraderinstall.php
 


it shows up but it got no words or anything any help
Title: Re: SMF Trader System
Post by: starsapphire04 on June 08, 2007, 12:59:26 PM
yea, I can't use this mod. it's not working. it's different in the screenshot.
Title: Re: SMF Trader System
Post by: perplexed on June 08, 2007, 03:55:35 PM
Howdy all.... I just installed this fantastic mod on my brand new smf forum. Unfortunately I can't find where is the setting page for it in my admin menu.

Thanks in advance for the help!


Nothing is added to the admin panel. Located under user's profiles and viewing a post.


see above for details
Title: Re: SMF Trader System
Post by: ~Unkn0wn~ on June 10, 2007, 05:14:09 PM
Anyway that can make to feedback one time per user? He feedback all the time to same user
Title: Re: SMF Trader System
Post by: vbgamer45 on June 10, 2007, 06:12:44 PM
Would need custom code for that.
Title: Re: SMF Trader System
Post by: vertigo16 on June 13, 2007, 02:09:42 AM
you said we can change it in persmission so that only member with post more that 5 for example can give itrader, I don't get this. please elaborate. :(
Title: Re: SMF Trader System
Post by: 5cakids on June 14, 2007, 02:10:39 AM
Any chance that some day we can get a % under the user name? Like V Bulletin I really like the %
Title: Re: SMF Trader System
Post by: vbgamer45 on June 16, 2007, 01:33:18 PM
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.

Title: Re: SMF Trader System
Post by: choloman05 on June 18, 2007, 03:15:56 PM
dang you're good.  Thansk vbgamer, great mod.
Title: Re: SMF Trader System
Post by: Niteblade on June 18, 2007, 07:27:55 PM
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.



Sorry to sound like a n00b, but what is the advantage of approving ratings? On the DP forums, nothing needs to be approved for their iTrader feedback system ...
Title: Re: SMF Trader System
Post by: vbgamer45 on June 18, 2007, 07:45:44 PM
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.



Sorry to sound like a n00b, but what is the advantage of approving ratings? On the DP forums, nothing needs to be approved for their iTrader feedback system ...
No idea, that's why I didn't add it to begin with. But I guess some people want to review the ratings before they are posted.
Title: Re: SMF Trader System
Post by: Niteblade on June 19, 2007, 12:33:16 AM
If you get to review & approve (or deny) ratings, wouldn't that skew the truthfulness of a getting a review?

Everyone would only publish their positive reviews ...

@ DP's iTrader system, you must reference the thread where the "deal" was reached ...

Example, you'd have to reference the full url to the sale or a good or service that was being advertised ... then you have to specify whether you were the buyer or seller.. and you get to post comments about the transaction..
Title: Re: SMF Trader System
Post by: makphisto on July 01, 2007, 08:20:18 AM
Thank you for this modification  8)   The only thing I did differently was move the 'Trade Count' number below the post count and unbolded the text. 

Nice... How did you do that?
Title: Re: SMF Trader System
Post by: kai920 on July 05, 2007, 02:44:51 PM
Is anyone one running this with Joomla in a wrapped forum? (Orstio's bridge)
Title: Re: SMF Trader System
Post by: FishGuy876 on July 17, 2007, 07:46:06 AM
Hi! I am trying to implement this to a site I am working on, though when I install it, there are no strings displayed! To see what I mean, please look at http://thesportscollectorpa.com/forums/index.php?topic=2.0 and try and view the profile. Any help appreciated!!
Title: Re: SMF Trader System
Post by: vbgamer45 on July 17, 2007, 07:53:12 AM
Copy text strings from themes/default/languages/modifications.english.php
 to every
themes/default/languages/modifications.*.php
Title: Re: SMF Trader System
Post by: FishGuy876 on July 17, 2007, 09:16:52 AM
Hi again =)  Tried that and it didn't fix anything. Do get DB errors though for the string ID's not being defined. I'm reading through the files now in the installer, and I see entries like:

$txt['smftrader_title'] = 'SMF Trader System';
$txt['smftrader_version'] = '1.1';
$txt['smftrader_admin'] = 'Trader Settings';

Its failing because 'smtrader_title' etc. doesn't exist. I can't find in the mod where the numeric values for these are initialized beforehand, or isn't that important in this case?  Seems that piece is missing, at least from the download I have. Sorry if i'm being a pain, would really like to get this working  =)  FishGuy876
Title: Re: SMF Trader System
Post by: mattyh on July 19, 2007, 02:51:32 PM
Hi, great mod you have here. I run it on my forums at www.swpocketmodels.com/forum/.  I am trying to modify the theme I'm using (FerryTema) to show the Trader Rating under everyone's avatars when they post.  I haven't had any luck.  I copied the code I found smftrader107.xml (I think that is the name) to the correct template file, but I get a database error.  it isn't the undefined string I don't believe since I changed the php to an actual string name instead when I tried again in order to see if that was the issue.  Any help would be appreciated.
Title: Re: SMF Trader System
Post by: cru on July 20, 2007, 04:16:37 AM
hi! nice mod! thanks for this one! my installation went well on the default theme. my question is:

how do i tweak it in order to change the displayed text "Trade Count" ?
Title: Re: SMF Trader System
Post by: TrueSatan on July 20, 2007, 05:43:27 AM
@ cru

 Look in Modifications.english.php...make the change there.

Code: [Select]
$txt['smftrader_profile'] = 'Trade Count: ';
Title: Re: SMF Trader System
Post by: cru on July 20, 2007, 10:15:04 AM
thanks for the swift reply! nice support here! im gonna vote smf at hotscripts!
Title: Re: SMF Trader System
Post by: TrueSatan on July 20, 2007, 10:38:50 AM
@ cru

 Thankyou...It's always appreciated.

@ FishGuy876

 All the strings you mention do is to put text into profiles etc...for instance a generic text is used in the Profile.template.php code...

Code: [Select]
<tr><td><b>' . $txt['smftrader_title'] . '</b></td></tr>
...then this calls the appropriate language for the forum via Modifications.<language>.php

 For instance the english Modifications.english.php would provide...

Code: [Select]
$txt['smftrader_title'] = 'SMF Trader System';
...thus according to the language chosen the mod picks an appropriate wording for "SMF Trader System"

 As vbgamer45 told you
Copy text strings from themes/default/languages/modifications.english.php
 to every
themes/default/languages/modifications.*.php
...thus you would have the necessary files added to give the text you are missing.
Title: Re: SMF Trader System
Post by: cru on July 23, 2007, 04:19:05 AM
is it possible to put a percentage of the feedbacks, like:

trade count: (100%)

instead of the number of the feedbacks?

if tradecount is 0,  output is 0%
if tradecount is 1 positive and 1 negative, output is 50% etc...

i know the experts here know how i can do this... TIA.
Title: Re: SMF Trader System
Post by: TrueSatan on July 23, 2007, 04:50:47 AM
@ cru

 Many things are possible with php coding but they may not always be easy.

 You'll have to wait and see what vbgamer45 may have to say as this is his mod.
Title: Re: SMF Trader System
Post by: EverestTech on July 24, 2007, 12:30:41 AM
hi, i tried to use it with a different theme but after i put the code of smf trader system to my new theme's Display.template.php & Profile.template.php
and when i view the display and profile page it gives me database error,
can you pls help me wt should i do
Title: Re: SMF Trader System
Post by: TrueSatan on July 24, 2007, 04:05:06 AM
@ EverestTech

Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

 ...and the following may also help:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Title: Re: SMF Trader System
Post by: EverestTech on July 24, 2007, 03:16:35 PM
@ EverestTech

Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

 ...and the following may also help:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

it's wow, thanks alot TrueSatan,
Title: Re: SMF Trader System
Post by: TrueSatan on July 24, 2007, 06:01:41 PM
My pleasure!
Title: Re: SMF Trader System
Post by: EverestTech on July 25, 2007, 06:06:00 AM
how can i display positive trade count percentage instead of trade count number
Title: Re: SMF Trader System
Post by: TimL on August 10, 2007, 07:15:44 PM
This mod does not feature that. The way this mod works is you would have a for sale forum and then people rate others on transactions that occur.

Please add "Gift" in the drop down box.  In my cigar board we give a point when we receive a gift. Currently, we have to use "trade".
Title: Re: SMF Trader System
Post by: TimL on August 10, 2007, 08:17:47 PM
It's not working.  It installed without errors but both IE and FireFox report in the title bar..."An Error Has Occurred"

Title: Re: SMF Trader System
Post by: vbgamer45 on August 10, 2007, 08:25:49 PM
Check the error log and see what erorr is being returned.
Title: Re: SMF Trader System
Post by: TimL on August 10, 2007, 11:50:00 PM
Check the error log and see what erorr is being returned.

There are no errors in the log.  The browsers are reporting errors in the title bars.
Title: Re: SMF Trader System
Post by: vbgamer45 on August 11, 2007, 12:19:45 AM
When do you get that error?
Title: Re: SMF Trader System
Post by: TimL on August 11, 2007, 11:30:35 PM
When do you get that error?

Immediately after leaving a TC.  The next screen tells me that the TC has to be approved and the error is in the title bars.

IMO, I think having to approve a TC is overkill.  The issue I have with my members is reminding them to leave a TC.  I for sure don't want to take the time to approve them as add-ons should be self maintained. 

I'm back to using your old version in 1.1.3
Title: Re: SMF Trader System
Post by: vbgamer45 on August 11, 2007, 11:39:00 PM
Check under permissions or settings I belive you can turn off listing approval.
Title: Re: SMF Trader System
Post by: askepott on August 14, 2007, 12:57:35 PM
i have a prob - i think.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg159.imageshack.us%2Fimg159%2F2384%2Fmissingrv8.jpg&hash=5756ee304cf52e5a6cf8c1149b1c2b2b)
i think something is missing.. before i installed the mod, i don't see that space..

also, how to do i set "auto approval" ? i get this error when i tried it..
An Error Has Occurred!
Your rating will not appear in the user's trader profile to others until it is approved. 

EDIT : I already set permission but the same error occurs.

will appreciate any help. thanks.
Title: Re: SMF Trader System
Post by: askepott on August 14, 2007, 02:30:19 PM
btw, where is the version 1.1? I downloaded the file from the link provided on the first page, and on the modifications.english.php , it says :
//Begin SMF Trader System Text Strings
$txt['smftrader_title'] = 'SMF Trader System';
$txt['smftrader_version'] = '1.0';
//Display text strings
$txt['smftrader_profile'] = 'Trade Count: ';
Title: Re: SMF Trader System
Post by: askepott on August 15, 2007, 11:00:44 AM
can someone here please answer me?

when i tried rating a member, it says this error :
An Error Has Occurred!
Your rating will not appear in the user's trader profile to others until it is approved. 

the pm notification is not working too.
and now, the trader count number that is located below the username (seen on posts) has been changed to numbers. those numbers should supposed to show on the member's profile page too as well as on the trader system's page - but it wasn't showing.

the number only shows below the username on posts.

help please!
Title: Re: SMF Trader System
Post by: Klabautermann on August 24, 2007, 06:48:28 AM
What do I have to do to get the trader informations in the profile when using the "day of defeat" theme?
Title: Re: SMF Trader System
Post by: TrueSatan on August 24, 2007, 07:10:54 AM
Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)
Title: Re: SMF Trader System
Post by: Klabautermann on August 27, 2007, 04:08:27 AM
Hi TrueSatan, thanks for the links, but I am to much a newbie to the xml stuff to handle this. Can someone please help me?
Title: Re: SMF Trader System
Post by: Klabautermann on August 29, 2007, 03:51:44 AM
What I found out is that only when the frontend is set to German language the links in the profiles are missing. in English everythging seems quite okay. Is there a germen file available for the trader mod?
Title: Re: SMF Trader System
Post by: TrueSatan on August 29, 2007, 04:24:22 AM
No..you would need to create your own.

 Please see http://docs.simplemachines.org/index.php?topic=395.msg528#msg528 (http://docs.simplemachines.org/index.php?topic=395.msg528#msg528)
Title: Re: SMF Trader System
Post by: ff2k on August 31, 2007, 02:31:02 AM
Hello,

While looking at the code and manually editing a custom template, I noticed that a lot of SQL queries are being made for every single user that's being displayed on a thread page. Performance wise, I don't think this is a good idea. It works for SMF sites with not very active members. But for large sites, this might be a problem.

A temporary solution I made is to display the persons feedback points only to the boards that does buying, selling & trading. I disabled it at lounge, areas, news and announcements, etc.

Maybe in future versions, there's a way to select boards where the feedback points should appear.
Title: Re: SMF Trader System
Post by: nitins60 on September 10, 2007, 08:12:52 PM
Good mod :)
Title: Re: SMF Trader System
Post by: Neorics on September 20, 2007, 11:29:38 AM
i'm getting these error
8: Undefined index: smftrader_admin
/subs.php
Line: 2743

8: Undefined index: smftrader_profile
/display.template.php
(main sub template - eval?)
Line: 383
Title: Re: SMF Trader System
Post by: TrueSatan on September 20, 2007, 12:32:45 PM
Your errors suggest that you are using a custom theme and have failed to edit to manually install the mod into it. Mods, almost all of them, only install automatically into the SMF Default theme all other themes are custom themes and require manual installation into them.

Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
Title: Re: SMF Trader System
Post by: Neorics on September 20, 2007, 03:15:41 PM
Your errors suggest that you are using a custom theme and have failed to edit to manually install the mod into it. Mods, almost all of them, only install automatically into the SMF Default theme all other themes are custom themes and require manual installation into them.

Please read:

http://docs.simplemachines.org/index.php?topic=402.msg531#msg531 (http://docs.simplemachines.org/index.php?topic=402.msg531#msg531)

http://www.simplemachines.org/community/index.php?topic=34526.0 (http://www.simplemachines.org/community/index.php?topic=34526.0)

The following may also prove helpful:

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)


cant you suggest anything else other than that? almost all your post are similar to that...

i installed everything for the custom theme and i even checked the files if they have what they are supposed to have according to the package parser and viewing the installation file manually

I'm using Cerberus TP
Title: Re: SMF Trader System
Post by: TrueSatan on September 20, 2007, 08:44:07 PM
Sorry no...this is a common problem and is a problem with themes not mods so I give you the relevant links and let you do your best with it. If you wish to query the author of a theme on how to make it work you may get help there.

 I don't use your custom theme and thus have no knowledge of it.
Title: Re: SMF Trader System
Post by: Neorics on September 21, 2007, 12:15:35 PM
Sorry no...this is a common problem and is a problem with themes not mods so I give you the relevant links and let you do your best with it. If you wish to query the author of a theme on how to make it work you may get help there.

 I don't use your custom theme and thus have no knowledge of it.

aight, actually problem solved with the help of my boss Dragooon... you might have seen him here somewhere...
Title: Re: SMF Trader System
Post by: Neorics on September 23, 2007, 05:44:18 AM
hmmm

i'm editing the personalmessage.template.php to make the profile display in messages similar to the profile displayed in posts but i get a database error when i copy the code from the display.template.php

here is my code
Code: [Select]
//First do the query for the number of ratings
db_query("SELECT feedbackid FROM {$db_prefix}feedback WHERE ID_MEMBER ="  . $message['member']['id'], __FILE__, __LINE__);
$tradecount = db_affected_rows();

//Show the trader info
echo '
<b>' . $txt['smftrader_profile'] . ' </b>
(<a href="' . $scripturl .  '?action=trader&id=' . $message['member']['id'] . '">', $tradecount, '</a>)<br /><br />';
Title: Re: SMF Trader System
Post by: Scubasjl18 on October 02, 2007, 03:04:38 AM
Heres my error how can I get ride of this but with me having to except each trade.

EDIT FIX TEMP ok this is what I did to fix that error well not really but not have people freak out.

1. Go to your forum folder and then Packages. Look for Trader.zip and download it.
2. Go back to admin and uninstall the Package and then delete go to your ftp and delete the Trader.zip
3. Now open the zip folder up and open or unzip Trader.english and go to line #54 which that was it for me or search for this
Code: [Select]
$txt['smftrader_form_notapproved']4. Now the = 'the default text';
5. You can change the default to anything you want as it will word warp for you so leave them a good message telling them whats going on.
6. Now if you use a word don't you must make it don\'t for it to work. Other wise you will get errors.
7. Now when I had my text all done I went ahead and made a link back to their profile so that if they click the back button thats default they will more then likely request another trade causing to many waiting for approval.
8. To make the link put <a href="http://yoursite.com/forum/index.php?action=profile">BACK TO PROFILE</a> any where now this is where my profile leads back to buck if you have a SEO or anything that messes with the links you will want to go to your profile and make sure your logged in and then copy that url and paste it in their and your all set.
9. Now place the Trader.english back into the Trader.zip file
10. Now reinstall and test.
Title: Re: SMF Trader System
Post by: cru on October 18, 2007, 10:13:05 AM
1. hi, i checked the auto approve ratings option, under permissions for Senior  Members. But still, the Trader Point has to be approved by admin. how do i correct this?

2. Also in this message:

Quote
An Error Has Occured!
Your rating will not appear in the user's trader profile to others until it is approved.

i would like to change it to
Quote
Thank You for Submitting Your Trader Feedback!
Your rating will  appear in the user's profile upon approval of the Administrator.
  :)

TIA!


Title: Re: SMF Trader System
Post by: Scubasjl18 on October 18, 2007, 11:18:56 PM
Well you can do what I did what i did in my last post, with "Thank You for Submitting Your Trader Feedback!
Your rating will  appear in the user's profile upon approval of the Administrator." but im not even sure how you would go about changing the title "An Error Has Occured!" since that is something to do with the actual script it self, and im no programmer, just can edit and mod scripts. Must wait for the creator to fix it.
Title: Re: SMF Trader System
Post by: cru on October 19, 2007, 05:01:17 AM
You will need to unistall all the mods after the trader system was installed in order to unistall correctly.

Is there a way to uninstall it manually? Coz i got lots of mods installed after this one, and also i installed TP manually, so i think maybe uninstalling this mod manually will simplify it. I really like this mod, but i don't need it right now.

TIA
Title: Re: SMF Trader System
Post by: TrueSatan on October 19, 2007, 06:38:22 AM
@ cru...please use the SMF Package Parser provided by Daniel 15 as it will output for you the details of the actions needed to do a manual installation of the mod...then reverse the process.

http://modparser.dev.dansoftaustralia.net/ (http://modparser.dev.dansoftaustralia.net/)

Mirror of the last link:

http://www.smfhacks.com/smf-package-parser.html (http://www.smfhacks.com/smf-package-parser.html)
Title: Re: SMF Trader System
Post by: cru on October 19, 2007, 11:43:09 AM
thanks! i did it!
Title: Re: SMF Trader System
Post by: mrtrick on October 24, 2007, 11:21:45 AM
The mod site says that this supports 1.1.4 but the readme.txt says 1.1.3

I have installed this on my site and have several problems.

1. Even though I have the configuration (check box) selected to not require approval, all submissions are still requiring approval.

2. Users are not able to see feedback, only the number of positive, neutral, negative.

3. Numbers do not show under user names as stated on the mod page.

I have set permissions, but don't see many ways to tweak any of this from within the admin panel itself. Thoughts?

(my site is http://www.silverlakeforum.com)
Title: Re: SMF Trader System
Post by: Scubasjl18 on October 24, 2007, 10:53:06 PM
Sounds like a problem with other mods you have installed along with ur smf, I would uninstall the trade mod and then manual install it, to make sure it is correctly installed and if you still get problems then you will no that its another mod installed or theirs something wrong with your smf. hope that helps somewhat.
Title: Re: SMF Trader System
Post by: slackerpunk on October 28, 2007, 09:39:13 AM
it works fine for me on 1.1.4 thanks
Title: Re: SMF Trader System
Post by: ragingazn628 on November 23, 2007, 02:55:32 PM
hello I have a few questions about Trader mod...

1. Is Trade mod compatible with smf 1.1.4? I searched and it said it was compatible but I just want to verify this...

2. If it is compatible then why am I getting this error message?

An Error Has Occurred!
Your rating will not appear in the user's trader profile to others until it is approved.

Note: I changed the permissions for registered users to: "can leave feedbacks" and "auto approve feedbacks"

...I know some of you have the same problems too...
Title: Re: SMF Trader System
Post by: ragingazn628 on November 23, 2007, 03:07:37 PM
now I am also getting this error when I click on the "Trade Count: (1)" <--- when I clicked the number and press submit feed back it gives me this

Not Acceptable

An appropriate representation of the requested resource /forums/index.php could not be found on this server.
Apache/2.0.61 (Unix) mod_ssl/2.0.61 OpenSSL/0.9.8b FrontPage/5.0.2.2635 mod_auth_passthrough/2.1 mod_bwlimited/1.4 PHP/5.2.4 mod_perl/2.0.3 Perl/v5.8.8 Server at tomstech.freefastserver.com Port 80

I know i have the index.php in my forums folder
Title: Re: SMF Trader System
Post by: ragingazn628 on November 24, 2007, 09:22:09 AM
will someone help? I have version 1.1.4
Title: Re: SMF Trader System
Post by: vbgamer45 on November 24, 2007, 09:37:59 AM
Search for a post on mod security for the Not Acceptable error.
Title: Re: SMF Trader System
Post by: ragingazn628 on November 28, 2007, 04:49:12 PM
... when I try to install the mod I get this

http://img511.imageshack.us/img511/2918/forumerrordn3.png
Title: Re: SMF Trader System
Post by: vbgamer45 on November 28, 2007, 09:41:53 PM
In this case install the mod manually upload the mod to
http://www.smfhacks.com/smf-package-parser.html
Title: Re: SMF Trader System
Post by: pinoypetfinder on December 02, 2007, 09:11:36 PM
i have a problem uninstalling the mod.. the trader count is still showing below my member's username and while viewing profile.. which file should i modify? and what should i remove? thanks.,
Title: Re: SMF Trader System
Post by: vbgamer45 on December 02, 2007, 10:04:28 PM
Display.template.php is the file to modify search it for trader information.
Title: Re: SMF Trader System
Post by: pinoypetfinder on December 03, 2007, 12:51:09 AM
okay. thanks vgamer45, i'll try to look for it :)
Title: Re: SMF Trader System
Post by: ragingazn628 on December 06, 2007, 03:03:29 PM
anyone here got this mod working? if so is there an example so I can see because I can't get it to work somehow... if you know how to get it to work please contact me at email ragingazn628@gmail.com or aim bl33ditout628 or msn jaggermister@hotmail.com
Title: Re: SMF Trader System
Post by: ragingazn628 on December 06, 2007, 03:26:12 PM
everytime I try to install this mod I get stuck at this page...

http://img148.imageshack.us/img148/1984/errorvt7.png

I press proceed with the correct info and it keeps reloading that page...
Title: Re: SMF Trader System
Post by: TrueSatan on December 06, 2007, 04:43:35 PM
The probability is that your path to SMF is wrong...try entering it in the form:

/home/.hostservername/youraccount/yoursite.com/smfdirectory
Title: Re: SMF Trader System
Post by: clanny on December 15, 2007, 05:13:17 PM
Ok will do so, i have another problem.
Is there a problem with the trader feedback system mod too? because i install it, it did show a half of a screenshot shown at the mod inside a members profile area, but nothing in the configuration area.

I feel like every mod i install there  is a problem, i think its my fourm probem is it?, can check it out i can give u admin access
Title: Re: SMF Trader System
Post by: vbgamer45 on December 15, 2007, 05:26:37 PM
Usally occurs if you are using a custom theme or a different language other than english
Title: Re: SMF Trader System
Post by: clanny on December 15, 2007, 11:15:46 PM
Hello,
Is there anyway to fix it then?
Custom theme as a theme other then the default theme or the themes already installed in smf right?

This mod only works for default theme? , can it work for the other themes?
Title: Re: SMF Trader System
Post by: vbgamer45 on December 15, 2007, 11:26:17 PM
default theme is the only theme that mods are installed to

You can apply the changes manually to other themes using
http://www.smfhacks.com/smf-package-parser.html
This tells you what files need to be edited.
Title: Re: SMF Trader System
Post by: clanny on December 16, 2007, 12:08:14 AM
When i go to show:
Which option do I choose  All Edits (default)   ?     or
 Only Theme edits (editing a theme to support a mod)  ?

Do I have to do this to every single mod every time on this link so the mod can work for that theme?

Thanks
Title: Re: SMF Trader System
Post by: vbgamer45 on December 16, 2007, 12:11:07 AM
 Only Theme edits.
Would need to be done to any mod that modifies a theme.
Title: Re: SMF Trader System
Post by: clanny on December 16, 2007, 12:14:47 AM
It says :
Note: If a file does not exist in your theme, it doesn't matter (as the file from the Default theme will be used).

In file Themes/[your theme]/Profile.template.php

I dont have the file profile.template.php so my default theme file will be used for it , does that means that it wont work for this theme or it will work i just skip this step and continue to next step
Title: Re: SMF Trader System
Post by: vbgamer45 on December 16, 2007, 12:16:31 AM
It will work just continue next step.
Title: Re: SMF Trader System
Post by: clanny on December 16, 2007, 12:19:06 AM
Oh yeah
When i go to  In file Themes/[your theme]/Display.template.php
It says

Find: global $context, $settings, $options, $txt, $scripturl, $modSettings;

Add after:
 
      global $db_prefix;









My editing is this for the one above, tell me if its correct or correct me if im wrong

global $context, $settings, $options, $txt, $scripturl, $modSettings;global $db_prefix;


Find: // Show the member's primary group (like 'Administrator') if they have one.
      if (isset($message['member']['group']) && $message['member']['group'] != '')
         echo '
                        ', $message['member']['group'], '<br />';

Add after:
 
      //Start SMF Trader System
      //First do the query for the number of ratings
      db_query("SELECT feedbackid FROM {$db_prefix}feedback WHERE ID_MEMBER ="  . $message['member']['id'], __FILE__, __LINE__);
      $tradecount = db_affected_rows();
 
      //Show the trader info
            echo '
               <b>' . $txt['smftrader_profile'] . ' </b>
               (<a href="' . $scripturl .  '?action=trader&id=' . $message['member']['id'] . '">', $tradecount, '</a>)<br />';
 








My editing is this for the one above, tell me if its correct or correct me if im wrong


// Show the member's primary group (like 'Administrator') if they have one.
      if (isset($message['member']['group']) && $message['member']['group'] != '')
         echo '
                        ', $message['member']['group'], '<br />';//Start SMF Trader System
      //First do the query for the number of ratings
      db_query("SELECT feedbackid FROM {$db_prefix}feedback WHERE ID_MEMBER ="  . $message['member']['id'], __FILE__, __LINE__);
      $tradecount = db_affected_rows();
 
      //Show the trader info
            echo '
               <b>' . $txt['smftrader_profile'] . ' </b>
               (<a href="' . $scripturl .  '?action=trader&id=' . $message['member']['id'] . '">', $tradecount, '</a>)<br />';

Title: Re: SMF Trader System
Post by: clanny on December 16, 2007, 12:21:58 AM
Hey when i  open the displey.template.php file it says:

"You are not using a utf-8 language file. You should not save utf-8 data or you will get corrupted results. Click here to change your language file. "

Do I click there to change it to utf-8 or just leave it.
Title: Re: SMF Trader System
Post by: vbgamer45 on December 16, 2007, 12:26:01 AM
That looks good leave it how the file format how it is.
Title: Re: SMF Trader System
Post by: clanny on December 16, 2007, 12:36:46 AM
Ok I have done the changes to the display.template.php and saved it, and now i install the trader system mod thru the smf admin center and was installed sucusfully!

But and again, its not showing the trader system mod in the configuration or anywhere in the admin area , and it only show half of the feedback image in the profile listed here http://easyfreezone.com/forum/index.php?action=profile

Hmm???
Title: Re: SMF Trader System
Post by: clanny on December 16, 2007, 10:59:10 AM
Oh yeah btw i just tried switching my template to default and the smf trader system mod still occurs.

I just notice that its the words thats not showing, not the image, example what i mean is at the bottom of this profile http://easyfreezone.com/forum/index.php?action=profile;u=1

So it looks like its more a serious trouble
Title: Re: SMF Trader System
Post by: zepfms on January 21, 2008, 12:14:54 PM
Hello. Very good mod!!

It would be very useful if:
1. the two persons (buyer and seller) were visible at the admin approval page (SMF Trader System Settings).
2. and the url field was mandatory

Is this mod still under development?

Thanks a lot!
Title: Re: SMF Trader System
Post by: zepfms on January 21, 2008, 01:05:38 PM
It would be very useful if:
2. and the url field was mandatory

I did it my self :)

1. Add the following line at Trader.english.php (/Themes/default/languages)
Code: [Select]
$txt['smftrader_errnourl'] = 'You did not enter the URL address.';


2. After the following line
Code: [Select]
$topicurl = $_POST['topicurl'];
Add the following code at Trader.php (/Sources)
Code: [Select]
if ($topicurl== '')
{
fatal_error($txt['smftrader_errnourl'],false);
}
Title: Re: SMF Trader System
Post by: zetjee on January 31, 2008, 02:23:34 PM
I need this mod in dutch, what do i have to translate?
couldnt find it.

Please PM me!
Title: Re: SMF Trader System
Post by: zepfms on January 31, 2008, 02:49:44 PM
/Themes/default/languages/Trader.english.php
/Themes/default/languages/Modifications.english.php
Title: Re: SMF Trader System
Post by: Coon_Dog on February 25, 2008, 05:27:39 AM

It would be very useful if:
1. the two persons (buyer and seller) were visible at the admin approval page (SMF Trader System Settings).

Thanks a lot!

Thanx for the Awsome MOD.  Has anyone figured this out.  I am still messin with.

Thanx Todd
Title: Re: SMF Trader System
Post by: vbgamer45 on February 25, 2008, 08:22:13 AM

It would be very useful if:
1. the two persons (buyer and seller) were visible at the admin approval page (SMF Trader System Settings).

Thanks a lot!

Thanx for the Awsome MOD.  Has anyone figured this out.  I am still messin with.

Thanx Todd
Good idea
Title: Re: SMF Trader System
Post by: syzable on February 26, 2008, 07:05:17 AM
EDIT - No worries, fixed it.

Thanks for a great mod. :)
Title: Re: SMF Trader System
Post by: Shean on February 26, 2008, 07:12:40 AM
Mod beautiful  I do turkish wonderfully does the permission reach :P
Title: Re: SMF Trader System
Post by: MelogKnaj on March 04, 2008, 10:16:32 PM

It would be very useful if:
1. the two persons (buyer and seller) were visible at the admin approval page (SMF Trader System Settings).

Thanks a lot!

Thanx for the Awsome MOD.  Has anyone figured this out.  I am still messin with.

Thanx Todd
Good idea

Seconded, anyone know how to change the code to make this work?
Title: Re: SMF Trader System
Post by: Jessikard on March 06, 2008, 04:31:14 AM
hello, my problem still continous..

it is possible to give another rating for the same topic url...
so members can add rating as much as they want

how can i fix this problem ?

it should only be possible to give 1 rating for one url

could anyone help me please

(i hope my english is good enough to understand what the problem is)

Thx Jessi
Title: Re: SMF Trader System
Post by: syzable on March 06, 2008, 04:46:25 AM
hello, my problem still continous..

it is possible to give another rating for the same topic url...
so members can add rating as much as they want

how can i fix this problem ?

it should only be possible to give 1 rating for one url

could anyone help me please

(i hope my english is good enough to understand what the problem is)

Thx Jessi

You can set it so you have to approve all feedback and then you can monitor if anyone is trying to cheat the system and delete their feedback
Title: Re: SMF Trader System
Post by: Coon_Dog on March 06, 2008, 07:44:06 PM

It would be very useful if:
1. the two persons (buyer and seller) were visible at the admin approval page (SMF Trader System Settings).

Thanks a lot!

I played with a little more and made some headway.  Admin page shows to and from, but to is in the form of a clickable number to profile.  Not sure on pullin that number from database.  It is working perfect no errors in log.

All 4 changes are at the end of the file if you dont have file numbers.  File located in \Themes\default\

All changes done in Trader.template.php

Find around line 436
Code: [Select]
SELECT f.saletype, f.feedbackid, f.FeedBackMEMBER_ID,  f.topicurl, f.comment_short,
f.salevalue, f.saledate, m.realName
Add after
Code: [Select]
, f.ID_MEMBER            
            
Find around line 407
Code: [Select]
<td class="catbg2" width="55%">',$txt['smftrader_comment'],'</td>Replace with
Code: [Select]
<td class="catbg2" width="50%">',$txt['smftrader_comment'],'</td>
<td class="catbg2" width="5%">To</td>
            
            
Find around line 490
Code: [Select]
echo '<td>'. $mtype . '&nbsp;<a href="' . $scripturl . '?action=profile;u=' . $row['FeedBackMEMBER_ID'] . '">' . $row['realName'] . '</a></td>';Add before
Code: [Select]
echo '<td><a href="' . $scripturl . '?action=profile;u=', $row['ID_MEMBER'], '">', $row['ID_MEMBER'], '</a></td>';            
            
Find around line 507
Code: [Select]
<td align="left" colspan="6">Replace with
Code: [Select]
<td align="left" colspan="7">
These changes were done to version 1.1 of Trader.  I have attached moded file and backup of original with bak in file name.    Use as examples if you like.  Also a screen shot.

It works perfect far as I can tell.  LOL I am be no means a php mysql champ. 


Thanx Todd      
Title: Bug in Trader System?
Post by: samurai-lupin on March 24, 2008, 12:16:35 AM
There seems to be a bug in the trader system. When I try to access it through the Admin area, I get the following error:

Parse error: parse error, unexpected T_CLASS, expecting ',' or ';' in .../Themes/default/Trader.template.php on line 195

Code: [Select]
<?php
/*
SMF Trader System
Version 1.1
by:vbgamer45
http://www.smfhacks.com
*/
function template_main()
{
global $txt$db_prefix$context$scripturl$modSettings;

db_query("SELECT feedbackid FROM {$db_prefix}feedback 
WHERE approved = 1 AND ID_MEMBER =" 
$context['traderid'], __FILE____LINE__);
$tradecount db_affected_rows();
db_query("SELECT feedbackid FROM {$db_prefix}feedback 
WHERE approved = 1 AND  salevalue = 1 AND ID_MEMBER =" 
$context['traderid'] , __FILE____LINE__);
$neturalcount db_affected_rows();
db_query("SELECT feedbackid FROM {$db_prefix}feedback 
WHERE approved = 1 AND  salevalue = 0 AND ID_MEMBER =" 
$context['traderid'] , __FILE____LINE__);
$pcount db_affected_rows();
db_query("SELECT feedbackid FROM {$db_prefix}feedback 
WHERE approved = 1 AND  salevalue = 2 AND ID_MEMBER =" 
$context['traderid'] , __FILE____LINE__);
$ncount db_affected_rows();

if($tradecount != 0)
$feedpos =  round(($pcount $tradecount) * 1002);
else
$feedpos 0;

echo 
'
<div class="tborder">
<table border="0" cellpadding="4" cellspacing="1" align="center" class="bordercolor" width="100%">
<tr class="titlebg">
<td height="26">' 
$txt['smftrader_feedbacktitle'] . ' - ' $context['tradername']  . '</td>
</tr>
<tr>
<td class="windowbg">
<table border="0" cellspacing="0" cellpadding="2" width="100%">

<tr>
<td><b>' 
$txt['smftrader_title'] . '</b></td>
<td><b>' 
$txt['smftrader_contact'] . '</b></td>
</tr>
<tr>
<td><b>' 
$txt['smftrader_profile'] . '(' $tradecount ')</b></td>
<td><a href="' 
$scripturl '?action=profile;u=' $context['traderid'] . '">' $txt['smftrader_viewprofile'] . '</a></td>

</tr>
<tr>
<td><b>' 
$txt['smftrader_positivefeedbackpercent']  .   $feedpos '%</b></td>
<td><a href="' 
$scripturl '?action=pm;sa=send;u=' $context['traderid'] . '">' $txt['smftrader_sendpm'] . '</a></td>
</tr>
<tr><td>' 
$txt['smftrader_positivefeedback']  . $pcount '&nbsp;<img src="Smileys/default/smiley.gif" alt="positive" /></td></tr>
<tr><td>' 
$txt['smftrader_neutralfeedback']   .  $neturalcount '&nbsp;<img src="Smileys/default/undecided.gif" alt="netural" /></td></tr>
<tr><td>' 
$txt['smftrader_negativefeedback']   .  $ncount '&nbsp;<img src="Smileys/default/angry.gif" alt="negative" /></td></tr>
<tr><td>' 
$txt['smftrader_totalfeedback']   .  ($pcount $ncount) . '</td></tr>
<tr><td colspan="2"><br /><a href="' 
$scripturl .  '?action=trader;sa=submit;id=' $context['traderid']  . '">' $txt['smftrader_submitfeedback'] . $context['tradername']  . '</a></td>
</tr>
</table>
<hr />
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr>
<td>
<a href="' 
$scripturl .  '?action=trader;id=' $context['traderid']  . '">' $txt['smftrader_allfeedback'] . '</a>&nbsp;|&nbsp;<a href="' $scripturl .  '?action=trader;id=' $context['traderid']  . ';view=1">' $txt['smftrader_sellerfeedback'] . '</a>&nbsp;|&nbsp;<a href="' $scripturl .  '?action=trader;id=' $context['traderid']  . ';view=2">' .  $txt['smftrader_buyerfeedback'] . '</a>&nbsp;|&nbsp;<a href="' $scripturl .  '?action=trader;id=' $context['traderid']  . ';view=3">' $txt['smftrader_tradefeedback'] . '</a>
</td>
</tr>
</table>
<hr />
<table border="0" cellspacing="0" cellpadding="2" width="100%">
<tr>
<td class="catbg2" width="5%">'
,$txt['smftrader_rating'],'</td>
<td class="catbg2" width="55%">'
,$txt['smftrader_comment'],'</td>
<td class="catbg2" width="10%">'
,$txt['smftrader_from'],'</td>
<td class="catbg2" width="10%">'
,$txt['smftrader_detail'],'</td>
<td class="catbg2" width="10%">'
,$txt['smftrader_date'],'</td>
<td class="catbg2" width="10%">'
,$txt['smftrader_report'],'</td>
</tr>
'
;

// Check if allowed to delete comment
$deletefeedback allowedTo('smftrader_deletefeed');

// Get the view type
@$view = (int) $_GET['view'];

if(empty($view))
{
$view 0;
}

$result '';
switch($view)
{
case 0:
$result "SELECT f.saletype, f.feedbackid, f.FeedBackMEMBER_ID,  f.topicurl, f.comment_short,
 f.salevalue, f.saledate, m.realName 
 FROM 
{$db_prefix}feedback AS f,{$db_prefix}members AS m 
 WHERE f.ID_MEMBER = " 
$context['traderid'] . " AND f.FeedBackMEMBER_ID = m.ID_MEMBER AND f.approved = 1";
break;
case 1:
$result "SELECT f.saletype, f.feedbackid, f.FeedBackMEMBER_ID,  f.topicurl, 
f.comment_short, f.salevalue, f.saledate, m.realName 
FROM 
{$db_prefix}feedback AS f,{$db_prefix}members AS m 
WHERE f.ID_MEMBER = " 
$context['traderid'] . " AND f.FeedBackMEMBER_ID = m.ID_MEMBER AND f.saletype = 1 AND f.approved = 1";

break;
case 2:
$result "SELECT f.saletype, f.feedbackid, f.FeedBackMEMBER_ID,  f.topicurl, 
f.comment_short, f.salevalue, f.saledate, m.realName 
FROM 
{$db_prefix}feedback AS f,{$db_prefix}members AS m 
WHERE f.ID_MEMBER = " 
$context['traderid'] . " AND f.FeedBackMEMBER_ID = m.ID_MEMBER AND f.saletype = 0  AND f.approved = 1";

break;
case 3:
$result "SELECT f.saletype, f.feedbackid, f.FeedBackMEMBER_ID, f.topicurl, f.comment_short, f.salevalue, f.saledate, m.realName FROM {$db_prefix}feedback AS f,{$db_prefix}members AS m WHERE f.ID_MEMBER = " $context['traderid'] . " AND f.FeedBackMEMBER_ID = m.ID_MEMBER AND f.saletype = 2 AND f.approved = 1";

break;
default:
fatal_error($txt['smftrader_invalidview'], false);
break;
}

$dbresult db_query($result__FILE____LINE__);
while($row mysql_fetch_assoc($dbresult))
{
echo '<tr>';

switch($row['salevalue'])
{

case 0:
echo '<td align="center"><img src="'$modSettings['smileys_url'], '/'$context['user']['smiley_set'], '/smiley.gif" alt="positive" /></td>';

break;
case 1:
echo '<td align="center"><img src="'$modSettings['smileys_url'], '/'$context['user']['smiley_set'], '/undecided.gif" alt="netural" /></td>';
break;
case 2:
echo '<td align="center"><img src="'$modSettings['smileys_url'], '/'$context['user']['smiley_set'], '/angry.gif" alt="negative" /></td>';
break;
default:
echo '<td align="center">'$row['salevalue'], '</td>';
break;
}




if($row['topicurl'] == '')
echo '<td>'$row['comment_short'], '</td>';
else
echo '<td><a href="' $row['topicurl'] . '">' $row['comment_short'] . '</a></td>';

$mtype ' ';
switch($row['saletype'])
{
case 0:
$mtype $txt['smftrader_buyer'];
break;
case 1:
$mtype $txt['smftrader_seller'];
break;
case 2:
$mtype $txt['smftrader_trade'];
break;
default:
$mtype '';
break;
}

echo '<td>'$mtype '&nbsp;<a href="' $scripturl '?action=profile;u=' $row['FeedBackMEMBER_ID'] . '">' $row['realName'] . '</a></td>' echo '<td><a href="' $scripturl '?action=trader;sa=detail;feedid=' $row['feedbackid'] . '">',$txt['smftrader_viewdetail'],'</a></td>';
echo '<td>'timeformat($row['saledate']), '</td>';
echo '<td><a href="' $scripturl '?action=trader;sa=report;feedid=' $row['feedbackid'] .  '">',$txt['smftrader_report'],'</a>';
if($deletefeedback)
{
echo '<br /><br /><a href="' $scripturl '?action=trader;sa=delete;feedid=' $row['feedbackid'] .  '">',$txt['smftrader_delete'],'</a>';
}

echo '</td>';
echo '</tr>';
}
mysql_free_result($dbresult);

echo 
' </table>
</td>
</tr>
</table>
</div>
}

function template_submit()
{
global $txt, $db_prefix, $context, $scripturl;
echo '
<div class=tborder>
<
table border="0" cellpadding="4" cellspacing="1" align="center" class="bordercolor" width="100%">
<tr class="titlebg">
<td height="26" align="center">' . $txt['smftrader_submittitle'] . ' ' . $context['tradername']  . '</td>
</tr>
<tr>
<td class="windowbg">
<form action="' . $scripturl . '?action=trader;sa=submit2" method="post">
<table border="0" cellspacing="0" cellpadding="4" width="100%">

<tr>
<td width="20%"><b>' . $txt['smftrader_whoareu'] . '</b></td>
<td align="left">
  <select size="1" name="saletype">
  <option value="0" selected="selected">' . $txt['smftrader_buyer'] . '</option>
  <option value="1">' . $txt['smftrader_seller'] . '</option>
  <option value="2">' . $txt['smftrader_trade'] . '</option>
  </select>
</td>
</tr>
<tr>
<td width="25%">' . $txt['smftrader_transaction'] . '</td>
<td align="left">
  <select size="1" name="salevalue">
  <option value="0" selected="selected">' . $txt['smftrader_positive'] . '</option>
  <option value="1">' . $txt['smftrader_neutral'] . '</option>
  <option value="2">' . $txt['smftrader_negative'] . '</option>
  </select>
</td>
</tr>
<tr>
<td width="25%">' . $txt['smftrader_shortcomment'] . '</td>
<td align="left"><input type="text" max="100" name="shortcomment" size="75" />
<br />' . $txt['smftrader_shortcommentnote'] . '
</td>
</tr>
<tr>
<td width="25%">' . $txt['smftrader_topicurl'] . '</td>
<td align="left"><input type="text" name="topicurl"  size="75" /></td>
</tr>
<tr>
<td width="25%" valign="top">' . $txt['smftrader_longcomment'] . '</td>
<td align="left"><textarea rows="10" name="longcomment" cols="64"></textarea></td>

</tr>
<tr>
<td colspan="2" align="center"><br />
<input type="submit" value="',$txt['smftrader_submitfeedback2'],'" name="cmdsubmit" />
</td>
</tr>
</table>
<input type="hidden" name="id" value="' . $context['traderid'] . '" />
</form>
</td>
</tr>
</
table>
</
div>
}

function 
template_report()
{
global $txt$db_prefix$context$scripturl;

echo 
'
<div class="tborder">
<table border="0" cellpadding="4" cellspacing="1" align="center" class="bordercolor" width="100%">
<tr class="titlebg">
<td height="26" align="center">' 
$txt['smftrader_reporttitle'] . '</td>
</tr>
<tr>
<td class="windowbg">
<form action="' 
$scripturl '?action=trader;sa=report2" method="post">
<table border="0" cellspacing="0" cellpadding="4" width="100%">
<tr>
<td width="25%" valign="top">'
$txt['smftrader_comment'],'</td>
<td align="left"><textarea rows="10" name="comment" cols="64"></textarea></td>

</tr>
<tr>
<td colspan="2" align="center"><br />
<input type="submit" value="'
$txt['smftrader_reportfeedback'],'" name="cmdsubmit" />
</td>
</tr>
</table>
<input type="hidden" name="feedid" value="' 
$context['feedid'] . '" />
</form>
</td>
</tr>
</table>
</div>
}
function template_detail()
{
global $txt, $db_prefix, $context, $scripturl;


$result = "SELECT f.saletype, f.feedbackid, f.ID_MEMBER, f.FeedBackMEMBER_ID, f.topicurl, 
f.comment_long, f.salevalue, f.saledate, m.realName 
FROM {$db_prefix}feedback AS f,{$db_prefix}members AS m 
WHERE f.feedbackid = " . $context['
feedid'] . " AND f.FeedBackMEMBER_ID = m.ID_MEMBER";

$dbresult = db_query($result, __FILE__, __LINE__);
$row = mysql_fetch_assoc($dbresult);
mysql_free_result($dbresult);


echo '
<div class="tborder">
<
table border="0" cellpadding="4" cellspacing="1" align="center" class="bordercolor" width="100%">
<tr class="titlebg">
<td height="26" align="center">',$txt['smftrader_title'],' ',$txt['smftrader_detailedfeedback'],'</td>
</tr>
<tr>
<td class="windowbg">
<table border="0" cellspacing="0" cellpadding="4" width="100%">
<tr>
<td width="25%" valign="top">',$txt['smftrader_detailedcomment'],'</td>
<td align="left">' . nl2br($row['comment_long']) . '<br />',$txt['smftrader_commentby'],'<a href="' . $scripturl . '?action=profile;u=' . $row['FeedBackMEMBER_ID'] . '">' . $row['realName'] .  '</a><br /></td>

</tr>
<tr>
<td colspan="2" align="center"><a href="' . $scripturl . '?action=trader;id=' . $row['ID_MEMBER'] . '">',$txt['smftrader_returntoratings'],'</a></td>
</tr>
</table>
</td>
</tr>
</
table>
</
div>
}
function 
template_delete()
{
global $scripturl$db_prefix$context$txt;

$result "SELECT f.saletype, f.feedbackid, f.ID_MEMBER, f.FeedBackMEMBER_ID, 
f.comment_short,  f.topicurl, f.comment_long, f.salevalue, f.saledate, m.realName 
FROM 
{$db_prefix}feedback AS f,{$db_prefix}members AS m 
WHERE f.feedbackid = " 
$context['feedid'] . " AND f.FeedBackMEMBER_ID = m.ID_MEMBER";

$dbresult db_query($result__FILE____LINE__);
$row mysql_fetch_assoc($dbresult);
mysql_free_result($dbresult);

echo 
'
<div class="tborder">
<form action="'
$scripturl'?action=trader;sa=delete2" method="post">
<table border="0" cellpadding="4" cellspacing="1" align="center" class="bordercolor" width="100%">
<tr class="titlebg">
<td height="26" align="center">'
,$txt['smftrader_title'],' - ',$txt['smftrader_deletefeedback'],'</td>
</tr>
<tr>
<td class="windowbg">
<table border="0" cellspacing="0" cellpadding="4" width="100%">
<tr>
<td width="25%" valign="top">Short Comment</td>
<td align="left">' 
nl2br($row['comment_short']) . '</td>

</tr>
<tr>
<td width="25%" valign="top">'
,$txt['smftrader_detailedcomment'],'</td>
<td align="left">' 
nl2br($row['comment_long']) . '<br />',$txt['smftrader_commentby'],'<a href="' $scripturl '?action=profile;u=' $row['FeedBackMEMBER_ID'] . '">' $row['realName'] .  '</a><br /></td>

</tr>
<tr>
<td colspan="2" align="center"><input type="submit" value="'
,$txt['smftrader_deletefeedback'],'" name="cmdsubmit" /></td>
</tr>
</table>
<input type="hidden" name="feedid" value="' 
$context['feedid'] . '" />
<input type="hidden" name="redirect" value="' 
$row['ID_MEMBER'] . '" />

</td>
</tr>
</table>
</form>
</div>

}

function template_settings() {
global $scripturl, $modSettings, $txt, $db_prefix, $context;


echo '

<table border="0" width="80%" cellspacing="0" align="center" cellpadding="4" class="tborder">
<tr class="titlebg">
<td>' . $txt['smftrader_title']  . ' ' . $txt['smftrader_text_settings'] . '</td>
</tr>
<tr class="windowbg">
<td>
<b>' . $txt['smftrader_text_settings'] . '</b><br />
<form method="POST" action="' . $scripturl . '?action=trader;sa=admin2">
<input type="checkbox" name="trader_approval" ' . ($modSettings['trader_approval'] ? ' checked="checked" ' : '') . ' />' . $txt['smftrader_trader_approval'] . '<br />

<br />

<input type="submit" name="savesettings" value="',$txt['smftrader_save_settings'],'" />
</form><br />';

// Trader Approval listings

echo '
<br />
<table cellspacing="0" cellpadding="10" border="0" align="center" width="90%" class="tborder">
<tr class="catbg">
<td class="catbg2" width="5%">',$txt['smftrader_rating'],'</td>
<td class="catbg2" width="55%">',$txt['smftrader_comment'],'</td>
<td class="catbg2" width="10%">',$txt['smftrader_from'],'</td>
<td class="catbg2" width="10%">',$txt['smftrader_detail'],'</td>
<td class="catbg2" width="10%">',$txt['smftrader_date'],'</td>
<td class="catbg2" width="10%">' . $txt['smftrader_options'] . '</td>
</tr>';
if(!isset($_REQUEST['
pg']))
$page = 1;
else
$page = (int) $_REQUEST['
pg'];




// Get Total Pages
$dbresult = db_query("SELECT COUNT(*) AS total FROM {$db_prefix}feedback WHERE approved = 0", __FILE__, __LINE__);
$row = mysql_fetch_assoc($dbresult);
$total = ceil($row['
total'] / 10);
mysql_free_result($dbresult);


$page--;
if($page < 0)
$page = 0;

$curpage = $page * 10;
//List all ratings waiting for approval
   $dbresult = db_query("
  
   SELECT f.saletype, f.feedbackid, f.FeedBackMEMBER_ID,  f.topicurl, f.comment_short,
 f.salevalue, f.saledate, m.realName 
 FROM {$db_prefix}feedback AS f,{$db_prefix}members AS m 
 WHERE f.FeedBackMEMBER_ID = m.ID_MEMBER AND f.approved = 0 
 
 LIMIT $curpage,10", __FILE__, __LINE__);
while($row = mysql_fetch_assoc($dbresult))
{
echo '
<tr>';

switch($row['
salevalue'])
{

case 0:
echo '
<td align="center"><img src="', $modSettings['smileys_url'], '/', $context['user']['smiley_set'], '/smiley.gif" alt="positive" /></td>';

break;
case 1:
echo '
<td align="center"><img src="', $modSettings['smileys_url'], '/', $context['user']['smiley_set'], '/undecided.gif" alt="netural" /></td>';
break;
case 2:
echo '
<td align="center"><img src="', $modSettings['smileys_url'], '/', $context['user']['smiley_set'], '/angry.gif" alt="negative" /></td>';
break;
default:
echo '
<td align="center">', $row['salevalue'], '</td>';
break;
}




if($row['
topicurl'] == '')
echo '
<td>', $row['comment_short'], '</td>';
else
echo '
<td><a href="' . $row['topicurl'] . '">' . $row['comment_short'] . '</a></td>';

$mtype = ' ';
switch($row['
saletype'])
{
case 0:
$mtype = $txt['
smftrader_buyer'];
break;
case 1:
$mtype = $txt['
smftrader_seller'];
break;
case 2:
$mtype = $txt['
smftrader_trade'];
break;
default:
$mtype = '';
break;
}

echo '
<td>'. $mtype . '&nbsp;<a href="' . $scripturl . '?action=profile;u=' . $row['FeedBackMEMBER_ID'] . '">' . $row['realName'] . '</a></td>';
echo '
<td><a href="' . $scripturl . '?action=trader;sa=detail;feedid=' . $row['feedbackid'] . '">',$txt['smftrader_viewdetail'],'</a></td>';
echo '
<td>', timeformat($row['saledate']), '</td>';
echo '
<td><a href="' . $scripturl . '?action=trader;sa=approve;id=' . $row['feedbackid'] .  '">',$txt['smftrader_approve'],'</a>';


echo '
<br /><br /><a href="' . $scripturl . '?action=trader;sa=delete;feedid=' . $row['feedbackid'] .  '">',$txt['smftrader_delete'],'</a>';


echo '
</td>';
echo '
</tr>';

}
mysql_free_result($dbresult);
if($total > 0)
{
echo '
<tr class="titlebg">
<td align="left" colspan="6">
' . $txt['smftrader_text_pages'];

for($i = 1; $i <= $total; $i++)
{
if($i == ($page+1))
echo '
&nbsp;[<a href="' . $scripturl . '?action=trader;sa=admin;pg=' . $i . '">' . $i . '</a>]';
else
echo '
&nbsp;<a href="' . $scripturl . '?action=trader;sa=admin;pg=' . $i . '">' . $i . '</a>';
}

echo '
</td>
</tr>';
}

echo '
</table><br />
<br />
<b>' . $txt['smftrader_text_permissions'] . '</b><br/><span class="smalltext">' . $txt['smftrader_set_permissionnotice'] . '</span>
<br /><a href="' . $scripturl . '?action=permissions">' . $txt['smftrader_set_editpermissions']  . '</a>

</td>
</tr>
<
tr class="windowbg"><td><b>Has SMF Trader System helped you?</bThen support the developers:<br />
    <
form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="sales@visualbasiczone.com">
<input type="hidden" name="item_name" value="SMF Trader System">
<input type="hidden" name="no_shipping" value="1">
<input type="hidden" name="no_note" value="1">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="tax" value="0">
<input type="hidden" name="bn" value="PP-DonationsBF">
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-butcc-donate.gif" border="0" name="submit" alt="Make payments with PayPal - it is fast, free and secure!" />
<img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1">
</
form>

</
td>
</
tr>
</
table>';


}
?>
Title: Re: SMF Trader System
Post by: vbgamer45 on March 24, 2008, 08:35:55 AM
Issue you removed my copyright link with making payment.
Title: Re: SMF Trader System
Post by: yuva on March 25, 2008, 01:46:22 PM
Will it Work for SMF 2.0.............??
Title: Re: SMF Trader System
Post by: samurai-lupin on March 25, 2008, 02:30:26 PM
Where I can purchase the copyright removal and how much is it? Thank you
Title: Re: SMF Trader System
Post by: vbgamer45 on March 25, 2008, 08:06:11 PM
http://www.smfhacks.com/copyright_removal.php
Title: Re: SMF Trader System
Post by: TheDisturbedOne on March 29, 2008, 10:01:29 AM
OK I added the MOD, even with the Falied test on the Display.template.php, so how do I add it so that people can see and read feedback on my forum?
Thanks
Title: Re: SMF Trader System
Post by: TheDisturbedOne on April 01, 2008, 05:16:06 PM
Bump
I'm sure this is probably just an easy change to the code, but can somebody help me with it?
I am using the PSP theme.
Title: Re: SMF Trader System
Post by: cme1st2302 on April 16, 2008, 01:08:03 PM
Did anyone figure out how to change the wording when feedback, An error has occured

Chris
Title: Re: SMF Trader System
Post by: vbgamer45 on April 17, 2008, 08:40:09 PM
Did anyone figure out how to change the wording when feedback, An error has occured

Chris
Would require a custom template function to do that. Add it to my mod tracker for ideas for the next version.
Title: Re: SMF Trader System
Post by: PrizeLive.com on April 21, 2008, 09:27:18 PM
Just installed this one, thanks.

Where would I approve a rating? I just submitted one for a member but not sure where to approve it at.

Is there anyway to have them automatically approved if you wanted them to, instead of having to approve them all?
Title: Re: SMF Trader System
Post by: vbgamer45 on April 21, 2008, 09:28:28 PM
Under Admin -> Trader Configuration

There might be a permission under Admin -> Permissions look for SMF Trader
Title: Re: SMF Trader System
Post by: PrizeLive.com on April 21, 2008, 09:39:27 PM
Seems cool but just uninstalled it. Just wanted to check it out. Not for me though.
Title: Re: SMF Trader System
Post by: yameth on May 06, 2008, 03:18:52 AM
Thank you for this modification  8)   The only thing I did differently was move the 'Trade Count' number below the post count and unbolded the text. 

Could you please tell us how can one go about doing that?

PS. Great mod. Very well appreciated by my forum members. Thanks.
Title: Re: SMF Trader System
Post by: vbgamer45 on May 06, 2008, 08:41:39 AM
You would need to modify the Display.template.php of your theme to remove that code.
Title: Re: SMF Trader System
Post by: RoarinRow on May 07, 2008, 12:33:01 AM
Thank you for this modification  8)   The only thing I did differently was move the 'Trade Count' number below the post count and unbolded the text. 

Could you please tell us how can one go about doing that?

PS. Great mod. Very well appreciated by my forum members. Thanks.

Go to your themes/default/display.template.php or your theme's display.template.php file then find this:

Code: [Select]
//Start SMF Trader System
//First do the query for the number of ratings
db_query("SELECT feedbackid FROM {$db_prefix}feedback WHERE ID_MEMBER ="  . $message['member']['id'], __FILE__, __LINE__);
$tradecount = db_affected_rows();

//Show the trader info
echo '
<b>' . $txt['smftrader_profile'] . ' </b>
(<a href="' . $scripturl .  '?action=trader&id=' . $message['member']['id'] . '">', $tradecount, '</a>)<br />';

//END SMF Trader System

then paste it right after this:

Code: [Select]
// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
<br />';

Mine looks like this:

Code: [Select]
// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />';

//Start SMF Trader System
//First do the query for the number of ratings
db_query("SELECT feedbackid FROM {$db_prefix}feedback WHERE ID_MEMBER ="  . $message['member']['id'], __FILE__, __LINE__);
$tradecount = db_affected_rows();

//Show the trader info
echo '
' . $txt['smftrader_profile'] . '
(<a href="' . $scripturl .  '?action=trader&id=' . $message['member']['id'] . '">', $tradecount, '</a>)<br /><br />';

//END SMF Trader System

My version takes out the bold and adds another break right before the avatar.

Title: Re: SMF Trader System
Post by: yameth on May 07, 2008, 06:34:18 PM
RoarinRow, you have made my day. Thanks for the help guys!
Title: Re: SMF Trader System
Post by: RoarinRow on May 07, 2008, 06:48:07 PM
RoarinRow, you have made my day. Thanks for the help guys!

Welcome, hope it works!   8)
Title: Re: SMF Trader System
Post by: Joomlamz on May 26, 2008, 12:46:29 AM
Nice Work good mod
Translate Portuguese and brazilian

Code: [Select]
<file name="$languagedir/Modifications.portuguese.php" error="skip">
<operation>
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
//Begin SMF Trader System Text Strings
$txt['smftrader_title'] = 'SMF Sistema para comerciante ';
$txt['smftrader_version'] = '1.1';
$txt['smftrader_admin'] = 'Configurando Trader';
//Display text strings
$txt['smftrader_profile'] = 'Com&eacute;rciante: ';
//Profile text strings
$txt['smftrader_submitfeedback'] = 'Para enviar comentários';
$txt['smftrader_totalfeedback'] = 'Total de feedback positivo: ';
$txt['smftrader_positivefeedbackpercent'] = 'Feedback positivo: ';
$txt['smftrader_positivefeedback'] = '<span style="color: #006400;">Feedback positivo: </span>';
$txt['smftrader_neutralfeedback'] = 'Neutro Feedback: ';
$txt['smftrader_negativefeedback'] = '<span style="color: #FF0000;">Feedback Negativo: </span>';
//Start trader.template

//Submit Transaction Rating
$txt['smftrader_whoareu'] = 'Você e o:';
$txt['smftrader_buyer'] = 'Comprador';
$txt['smftrader_seller'] = 'Vendedor';
$txt['smftrader_trade'] = 'Comérciante';


$txt['smftrader_transaction'] = 'Notas transação:';
$txt['smftrader_positive'] = 'Positiva';
$txt['smftrader_neutral'] = 'Neutro';
$txt['smftrader_negative'] = 'Negativo';

$txt['smftrader_shortcomment'] = 'Breve comentário sobre a sua operação:';
$txt['smftrader_shortcommentnote'] = 'Max: 100 characters';
$txt['smftrader_topicurl'] = 'Tópico URL:';
$txt['smftrader_longcomment'] = 'Longo comentário sobre a sua operação:';


//Rating Overview
$txt['smftrader_allfeedback'] = 'Ver todos os comentários';
$txt['smftrader_sellerfeedback'] = 'Ver feedback do vendedor';
$txt['smftrader_buyerfeedback'] = 'Ver Feedback do comprador ';
$txt['smftrader_tradefeedback'] = 'Ver feedback do comércio ';

//Page Titles
$txt['smftrader_feedbacktitle'] = 'SMF sistema do comerciante  - comerciante Geral';
$txt['smftrader_submittitle'] = 'SMF Sistema do comerciante  - enviar comentários';
$txt['smftrader_reporttitle'] = 'SMF Sistema do comerciante - relatório mau feedback';


$txt['smftrader_contact'] = 'Contactar';
$txt['smftrader_viewprofile'] = 'Ver perfil completo.';
$txt['smftrader_sendpm'] = 'Envie este membro uma mensagem pessoal.';
//End trader.template

//Permissions
$txt['permissiongroup_smftrader'] = 'SMF Trader';
$txt['permissionname_smftrader_feedback'] = 'Permitir enviar coment&aacute;rios';
$txt['permissionhelp_smftrader_feedback'] = 'Permite ao membro enviar ao comerciante fating feedback.';
$txt['permissionname_smftrader_deletefeed'] = 'Permitir apagar qualquer coment&aacute;rio por qualquer membro.';
$txt['permissionhelp_smftrader_deletefeed'] = 'Permite ao membro apagar feedback por qualquer pessoa ou qualquer membro.';
$txt['cannot_smftrader_feedback'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para enviar coment&aacute;rios.';
$txt['cannot_smftrader_deletefeed'] = 'Voc&ecirc; n&atilde;o est&aacute; autorizado a excluir feedback.';
$txt['permissionname_smftrader_autorating'] = 'Auto aprovar avalia&ccedil;otilde;es';
$txt['permissionhelp_smftrader_autorating'] = 'Votos n&atilde;o precisa esperar a aprova&ccedil;&atilde;o se essa autorizaç&atilde;o seja dada.';

//END SMF Trader System Text Strings
]]></add>
</operation>
</file>
<file name="$languagedir/Modifications.brazilian.php" error="skip">
<operation>
<search position="after"><![CDATA[
?>]]></search>
<add><![CDATA[
//Begin SMF Trader System Text Strings
$txt['smftrader_title'] = 'SMF Sistema para comerciante ';
$txt['smftrader_version'] = '1.1';
$txt['smftrader_admin'] = 'Configurando Trader';
//Display text strings
$txt['smftrader_profile'] = 'Com&eacute;rciante: ';
//Profile text strings
$txt['smftrader_submitfeedback'] = 'Para enviar comentários';
$txt['smftrader_totalfeedback'] = 'Total de feedback positivo: ';
$txt['smftrader_positivefeedbackpercent'] = 'Feedback positivo: ';
$txt['smftrader_positivefeedback'] = '<span style="color: #006400;">Feedback positivo: </span>';
$txt['smftrader_neutralfeedback'] = 'Neutro Feedback: ';
$txt['smftrader_negativefeedback'] = '<span style="color: #FF0000;">Feedback Negativo: </span>';
//Start trader.template

//Submit Transaction Rating
$txt['smftrader_whoareu'] = 'Você e o:';
$txt['smftrader_buyer'] = 'Comprador';
$txt['smftrader_seller'] = 'Vendedor';
$txt['smftrader_trade'] = 'Comérciante';


$txt['smftrader_transaction'] = 'Notas transação:';
$txt['smftrader_positive'] = 'Positiva';
$txt['smftrader_neutral'] = 'Neutro';
$txt['smftrader_negative'] = 'Negativo';

$txt['smftrader_shortcomment'] = 'Breve comentário sobre a sua operação:';
$txt['smftrader_shortcommentnote'] = 'Max: 100 characters';
$txt['smftrader_topicurl'] = 'Tópico URL:';
$txt['smftrader_longcomment'] = 'Longo comentário sobre a sua operação:';


//Rating Overview
$txt['smftrader_allfeedback'] = 'Ver todos os comentários';
$txt['smftrader_sellerfeedback'] = 'Ver feedback do vendedor';
$txt['smftrader_buyerfeedback'] = 'Ver Feedback do comprador ';
$txt['smftrader_tradefeedback'] = 'Ver feedback do comércio ';

//Page Titles
$txt['smftrader_feedbacktitle'] = 'SMF sistema do comerciante  - comerciante Geral';
$txt['smftrader_submittitle'] = 'SMF Sistema do comerciante  - enviar comentários';
$txt['smftrader_reporttitle'] = 'SMF Sistema do comerciante - relatório mau feedback';


$txt['smftrader_contact'] = 'Contactar';
$txt['smftrader_viewprofile'] = 'Ver perfil completo.';
$txt['smftrader_sendpm'] = 'Envie este membro uma mensagem pessoal.';
//End trader.template

//Permissions
$txt['permissiongroup_smftrader'] = 'SMF Trader';
$txt['permissionname_smftrader_feedback'] = 'Permitir enviar coment&aacute;rios';
$txt['permissionhelp_smftrader_feedback'] = 'Permite ao membro enviar ao comerciante fating feedback.';
$txt['permissionname_smftrader_deletefeed'] = 'Permitir apagar qualquer coment&aacute;rio por qualquer membro.';
$txt['permissionhelp_smftrader_deletefeed'] = 'Permite ao membro apagar feedback por qualquer pessoa ou qualquer membro.';
$txt['cannot_smftrader_feedback'] = 'Voc&ecirc; n&atilde;o tem permiss&atilde;o para enviar coment&aacute;rios.';
$txt['cannot_smftrader_deletefeed'] = 'Voc&ecirc; n&atilde;o est&aacute; autorizado a excluir feedback.';
$txt['permissionname_smftrader_autorating'] = 'Auto aprovar avalia&ccedil;otilde;es';
$txt['permissionhelp_smftrader_autorating'] = 'Votos n&atilde;o precisa esperar a aprova&ccedil;&atilde;o se essa autorizaç&atilde;o seja dada.';

//END SMF Trader System Text Strings
]]></add>
</operation>
</file>



Code: [Select]
<?php
/*
SMF Trader System
Version 1.1
by:vbgamer45
http://www.smfhacks.com
Translate by:Candidosa2
http://www.joomlamz.com
*/

$txt['smftrader_rating'] = 'Rating';
$txt['smftrader_comment'] = 'Comentário';
$txt['smftrader_from'] = 'De';
$txt['smftrader_detail'] = 'Detalhes';
$txt['smftrader_date'] = 'Data';
$txt['smftrader_report'] = 'Relatório';
$txt['smftrader_approve'] = 'Aprovar';
$txt['smftrader_options'] = 'Opções';
$txt['smftrader_invalidview'] = 'Inválida vista...';
$txt['smftrader_viewdetail'] = 'Ver Detalhes';
$txt['smftrader_delete'] = 'Apagar';
$txt['smftrader_submitfeedback2'] = 'Enviar Feedback';
$txt['smftrader_reportfeedback'] = 'Relatório Feedback';
$txt['smftrader_detailedfeedback'] = 'Detalhes do Feedback';
$txt['smftrader_detailedcomment'] = 'Detalhes do comentário';
$txt['smftrader_commentby'] = 'Comentário de: ';
$txt['smftrader_returntoratings'] = 'Retornar ao comerciante avaliações';
$txt['smftrader_shortcomment'] = 'Breve comentário';
$txt['smftrader_deletefeedback'] = 'Apagar Feedback';

$txt['smftrader_nomemberselected'] = 'Nenhum membro selecionado';
$txt['smftrader_errfeedbackself'] = 'Você não pode deixar feedback para si mesmo.';
$txt['smftrader_errshortcoment'] = 'Você não inseriu um breve comentário!';
$txt['smftrader_errnocomment'] = 'Você não colocar um comentário para este comentário.';

$txt['smftrader_errsaletype'] = 'Inválido tipo de venda.';
$txt['smftrader_errsalevalue'] = 'Valor inválido venda.';
$txt['smftrader_errnofeedselected'] = 'Não a comentários selecionados.';
$txt['smftrader_failedreport'] = 'Falha ao relatório do comerciante rating comentário.';
$txt['smftrader_badfeedback'] = 'Bad Feedback';

$txt['smftrader_notrader'] = 'Nenhum comerciante.';
$txt['smftrader_viewtrader'] =  'Ver Trader';
$txt['smftrader_commentmadeby'] = 'Observação feita por: ';


$txt['smftrader_set_permissionnotice'] = 'Finalmente! Não se esqueça de fazer as permissões fixas para cada grupo, para que estes possam utilizar o sistema de comerciante.';
$txt['smftrader_set_editpermissions'] = 'Editar Permissões';
$txt['smftrader_text_settings'] = 'Configurações';
$txt['smftrader_text_permissions'] = 'Permissões';

$txt['smftrader_save_settings'] = 'Gravar configurações';


$txt['smftrader_trader_approval'] = 'Trader Rating aprovação';
$txt['smftrader_form_notapproved'] = 'Sua classificação não aparecerá no perfil do membro comerciante ate que outros sejam aprovado.';
$txt['smftrader_text_pages'] = 'Pages: ';

$txt['smftrader_newrating'] = 'Você tem uma nova avaliação sobre o seu perfil';

?>
Title: Re: SMF Trader System
Post by: gadgetrader on June 04, 2008, 11:22:29 PM
help i really really want this mod but when i dl it and install it .. there are no pics and no options to choose from..

i am running ancient and rusted theme please help
Title: Re: SMF Trader System
Post by: gadgetrader on June 07, 2008, 08:23:39 PM
any one please .. this mod is perfect for my site but i get no images and no text  and also no option for it under the Configuration menu (its just a blank spot) but its says it installs fine ..


again please help its a perfect mod for my site .. thank you in advance
Title: Re: SMF Trader System
Post by: germz on June 17, 2008, 04:38:26 PM
I have the same problem. Nothing is showing up and I keep getting errors on "Who.English.php" somebody please help!!!!
Title: Re: SMF Trader System
Post by: germz on June 17, 2008, 05:10:48 PM
I would also like to add i'm getting these errors.
Code: [Select]

Apply Filter: Only show the errors with the same message
8: Undefined index: smftrader_admin
File: /home/thegermz/public_html/forums/Sources/Subs.php
Line: 2796

Code: [Select]
8: Undefined index: smftrader_admin
File: /home/thegermz/public_html/forums/Sources/Subs.php
Line: 2796
Title: Re: SMF Trader System
Post by: vbgamer45 on June 17, 2008, 07:50:35 PM
That's an error either with your language pack or your themes custom modifications language file.
Title: Re: SMF Trader System
Post by: gadgetrader on June 17, 2008, 08:17:03 PM
That's an error either with your language pack or your themes custom modifications language file.

me or the poster above me ?
Title: Re: SMF Trader System
Post by: vbgamer45 on June 17, 2008, 08:32:43 PM
Admin -> Server Settings

Set your language to English

and not english utf8
Title: Re: SMF Trader System
Post by: germz on June 17, 2008, 09:03:58 PM
My thing was on English and it didn't work. Anyway I fixed it can't remember how but it works now.
Title: Re: SMF Trader System
Post by: gadgetrader on June 18, 2008, 12:09:51 AM
mine is also set to English
Title: Re: SMF Trader System
Post by: vbgamer45 on June 18, 2008, 01:04:04 AM
if you use custom them you need to update the language files as well.
Title: Re: SMF Trader System
Post by: gadgetrader on June 18, 2008, 08:25:00 AM
can u tell me exactually what i need to update ?
Title: Re: SMF Trader System
Post by: vbgamer45 on June 18, 2008, 09:56:50 PM
themes/yourthemename/language/modification.english.php for every theme you need
Title: Re: SMF Trader System
Post by: gadgetrader on June 19, 2008, 09:03:54 PM
i only need it for the one theme i use .. what mods do i have to make for that ?

sorry you are going to have to forgive me i am a new at this ..

p.s. i installed the theme and left it on if you want to go to the site and look at it .. there is no text and no images on it
Title: Re: SMF Trader System
Post by: gadgetrader on June 22, 2008, 03:09:25 PM
ok here is the update for me .. it works thats the good thing .. but for my orginal admin account it does not work .. any ideas?
Title: Re: SMF Trader System
Post by: tflnetwork on July 05, 2008, 12:17:10 AM
How would you go about editing the files to work with a "custom" theme (I am using Pn-Pn).

Thanks

http://www.webmasterlifeforum.com
Title: Re: SMF Trader System
Post by: vbgamer45 on July 05, 2008, 12:21:59 AM
You would use the Package Parser to make the edits to your theme
http://www.smfhacks.com/smf-package-parser.html
Title: Re: SMF Trader System
Post by: tflnetwork on July 05, 2008, 12:33:21 AM
It says to edit: /Profile.template.php

But i dont have that file
Title: Re: SMF Trader System
Post by: vbgamer45 on July 05, 2008, 02:18:28 AM
If your theme doesn't have it just needs to be done on the custom theme.
Title: Re: SMF Trader System
Post by: tflnetwork on July 05, 2008, 05:45:21 PM
I'll just use the default theme.. however.. i am getting this error

Not Acceptable

An appropriate representation of the requested resource /index.php could not be found on this server.

When approving trades, or clicking "View All Feedback", etc.
Title: Re: SMF Trader System
Post by: vbgamer45 on July 05, 2008, 05:52:31 PM
That is an issue with mod_security
Title: Re: SMF Trader System
Post by: tflnetwork on July 05, 2008, 06:04:09 PM
How would i go about fixing that? Is there a previous post elsewhere? i dont want to keep wasting your time.

Thank you
Title: Re: SMF Trader System
Post by: vbgamer45 on July 05, 2008, 06:42:59 PM
http://urbangiraffe.com/2005/08/20/mysterious-406-error/
Title: Re: SMF Trader System
Post by: tflnetwork on July 05, 2008, 10:14:05 PM
I put that in a .hta file but the error still occurs

http://www.webmasterlifeforum.com/index.php?action=trader;id=1
Title: Re: SMF Trader System
Post by: vbgamer45 on July 05, 2008, 10:30:03 PM
You would post like need to contact your host to disable it for your account then.

Mod_security does not like ;id= in the url for some reason
Title: Re: SMF Trader System
Post by: netridge on August 02, 2008, 12:52:25 PM
can I get a link to a forum were this mod is being used, for some reason every time I try adding this mod I can't get it to work.
Title: Re: SMF Trader System
Post by: motomaniacs on August 05, 2008, 03:54:17 AM
I have smf 1.15 and instal this mod
but an error occor just like screenshot
Title: Re: SMF Trader System
Post by: vbgamer45 on August 05, 2008, 08:38:11 AM
You are missing the language strings in your modificatoins.english.php file.
Title: Re: SMF Trader System
Post by: Goldeagle on August 06, 2008, 11:26:08 AM
Are there any plans to have this mod work with the new SMF 2.0 ?

Once officially released I would like to update to 2.0 but I would not be able to lose this feature...

Many thanks.
Title: Re: SMF Trader System
Post by: vbgamer45 on August 06, 2008, 10:10:09 PM
Yes once SMF 2.0 is released it will be updated
Title: Re: SMF Trader System
Post by: hairul on August 07, 2008, 07:08:37 AM
You are missing the language strings in your modificatoins.english.php file.

may i know how to check?
This mod is more better if got TAG percentage under the forumer nick on forum but not in profile. I mean under author column have TAG / Feedback percentage.
Title: Re: SMF Trader System
Post by: MoreBloodWine on August 09, 2008, 09:14:21 PM
With me being an admin I'm supposed to have all permissions, well with that being said why do comments I leave have to wait for approval ?

Also, you seem to have an error in the edit for the profile page, it totally wipes out the users signature on their profile as seen here (http://www.choice-online-gaming.com/testingforums/index.php?action=profile;u=2) on my test site. The edits fine for the most part because it gets the info for the mod in and and the extra divider line but it totally wipes out / removes the users signature from their profile. I noticed the same in your demo pics when I went back to look at them.

As for other problems, one thing I noticed that doesnt seem fair is that Neutral takes away from the positive percentage. Neutral in its truest sense doesnt sway either way good or bad. So when neutral feedbacks left it shouldnt affect the positive percentage of a users feedback. Another thing is that un-approved feedback is being tallied on the count that displays on the post page. So like if you have 9 feedbacks and I leave you one but it isnt approved yet it shows your count as 10 on the post page but it displays right on the profile page just not on the post page when a person has un-approved feedback.
Title: Re: SMF Trader System
Post by: vbgamer45 on August 10, 2008, 10:35:16 AM
Good points will look into them.
Title: Re: SMF Trader System
Post by: MoreBloodWine on August 10, 2008, 06:00:15 PM
Good points will look into them.
I sure hope so because this really is a sweet mod and everything I said / pointed out are all very valid points in both suggestions and the errors ;-)

The main thing that should be fixed first is with the edit thats deleting the signature from a users profile when the mods installed.

Edit:

Oh, one other thing I wanted to point out. The mod page says last modified March 1st of this year well all of the files in the zip for the mod have last modified dates of 07 the latestt being 6/25/07

If the mod was last updated march of this year shouldnt atleast one of those files have a last modifed date reflecting 08 ?
Title: Re: SMF Trader System
Post by: chinaren on August 12, 2008, 09:51:19 PM
I had an error on this

Quote
8: Undefined index: smftrader_admin
File: /home/tomecit/public_html/smftome/Sources/Subs.php
Line: 2739

which ccbtimewiz kindly fixed.  His (?) updated subs.php file is here:

http://www.sendspace.com/file/dgrmpe
Title: Re: SMF Trader System
Post by: vbgamer45 on August 12, 2008, 09:56:55 PM
You are missing that in your modificatoins.*yourlanguage.php file
Title: Re: SMF Trader System
Post by: chinaren on August 12, 2008, 11:11:18 PM
Quote
You are missing that in your modificatoins.*yourlanguage.php file

Hi Vbg.  I'm not sure what I should do to fix this, but I'm now getting this error:


Quote
8: Undefined index: smftrader_profile
File: /home/tomecit/public_html/smftome/Themes/default/Display.template.php (main sub template - eval?)
Line: 287

How do I define this?  Is this to do with the thing above?
Title: Re: SMF Trader System
Post by: vbgamer45 on August 12, 2008, 11:14:25 PM
Yes same as above you need check those files and modify them if you are using custom theme or language.
Title: Re: SMF Trader System
Post by: chinaren on August 12, 2008, 11:17:20 PM
Yes same as above you need check those files and modify them if you are using custom theme or language.

Arg.  This is the problem.  This board is totally virgin, pristine, only just installed.  I haven't changed anything on it! 

I tried SMF before, but could never get anything working.  I eventually went with phpbb3, but I still like SMF. 

~sigh~  I have to go out now, I'll have to look at this later. 

Title: Re: SMF Trader System
Post by: MoreBloodWine on August 13, 2008, 06:16:02 AM
In addition to everything I said on the last page that I really hope you look into I found out where the problem was with the edit for Profile.template.php

The following is what needs to be changed in the zips xml so it edits in properly on the profile page and doesnt mess with the signaturs placement or the hr line thats supposed to divde the sig from the feedback.

Change...

Code: [Select]
<search position="after"><![CDATA[// Show the users signature.]]></search>
To...
Code: [Select]
<search position="after"><![CDATA[ echo '
<td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td>
</tr>';

// Show the users signature.]]></search>

Other than that like I already said I hope you look in to the other stuff because it really does make sense... and just to re-cap.

1. If administrators are supposed to have full permissions why does feedback that an admin leaves need to be approved ? Like on my test site if I leave someone feedback with me being the admin I get the I must wait for my comment to be approved message which I shouldnt.

2. Neutral feedback takes away from the positive percentage which it shouldnt, when somethings neutral it isnt supposed to sway in a positive or negative direction. So like if someone has 1 negative, 1 positive and 1 neutral their percentage should be at 50% and not 33.33%

3. Un-approved feedback is being tallied on the count that displays on the post page. So like if you have 9 feedbacks and I leave you one but it isnt approved yet it shows your count as 10 on the post page but it displays right on the profile page just not on the post page when a person has un-approved feedback.

Heres an example... Post Page = 10 (http://www.choice-online-gaming.com/testingforums/index.php?topic=9.msg11#new) while Profile Page = 9 (http://www.choice-online-gaming.com/testingforums/index.php?action=trader&id=2) <-- The numbers are links...
Title: Re: SMF Trader System
Post by: hw610 on August 31, 2008, 05:36:16 PM
Yes once SMF 2.0 is released it will be updated

Do you have a estimated time?  I neeeeed this!   :)
Title: Re: SMF Trader System
Post by: vbgamer45 on August 31, 2008, 07:32:07 PM
I have no idea on that one.
Title: Re: SMF Trader System
Post by: hw610 on September 05, 2008, 03:38:06 PM
Pleeeese someone get this for 2.0!  >:(   :P
Title: Re: SMF Trader System
Post by: vbgamer45 on September 06, 2008, 02:16:23 PM
1.2
!Major changes
+Feedback by pages
+More settings
Title: Re: SMF Trader System
Post by: hw610 on September 06, 2008, 04:28:22 PM
1.2
!Major changes
+Feedback by pages
+More settings

Not compatible for 2.0  :( :'(
Title: Re: SMF Trader System
Post by: vbgamer45 on September 06, 2008, 06:43:30 PM
Will not for 2.0 until 2.0 goes into an RC phase or final.
Title: Re: SMF Trader System (1.2 Released)
Post by: Nibogo on September 06, 2008, 07:56:15 PM
Screenshots of the new version ??? ???
Title: Re: SMF Trader System (1.2 Released)
Post by: vbgamer45 on September 06, 2008, 08:26:15 PM
Looks the same just some new additions and fixes.
Title: Re: SMF Trader System
Post by: hw610 on September 06, 2008, 09:14:32 PM
Will not for 2.0 until 2.0 goes into an RC phase or final.

Hmm I hope thats soon. My members are freaking out. Ive got 1400 members already.
Title: Re: SMF Trader System
Post by: callteg4 on September 09, 2008, 01:46:12 PM
I wanted to uninstall it because i really dont need it right now&nbsp; :-\. Did a backup and went to uninstall it but some errors showed up and test failures. I uninstalled anyway and afther that when i would go to read a topic there was some error and i couldnt read. I installed the mod again and that solved my problem but the trade count is now doubled (?!). Now when I go to uninstall it it says test sucesfull but then the same error ocures.

Help?&nbsp; :(

SMF version is 1.1.2

says this:

Table 'arenawii.feedback' doesn't exist
File: C:\Domains\arenawii.com\wwwroot\forum\Sources\Load.php(1746) : eval()'d code
Line: 286

and

8: Undefined variable: db_prefix
File: C:\Domains\arenawii.com\wwwroot\forum\Themes\default\Display.template.php (main sub template - eval?)
Line: 286

How did you sort this out I have uninstalled this from my forum but now i cant read my forums i get the same error

Table 'arcadewithme_co.feedback' doesn't exist
File: /customers/arcadewithme.co.uk/arcadewithme.co.uk/httpd.www/Sources/Load.php(1806) : eval()'d code
Line: 350
Title: Re: SMF Trader System (1.2 Released)
Post by: vbgamer45 on September 09, 2008, 07:45:03 PM
That means it did not uninstall completely. I would try to reinstall it so it creates the table.
Title: Re: SMF Trader System (1.2 Released)
Post by: Jessikard on September 10, 2008, 03:10:56 AM
help please....
is it possible to change the listorder to show the newest feedback at the top of the list

i think there is only a db_query to configure, but i´m not an expert in this
Title: Re: SMF Trader System (1.2 Released)
Post by: MoreBloodWine on September 10, 2008, 03:44:42 AM
help please....
is it possible to change the listorder to show the newest feedback at the top of the list

i think there is only a db_query to configure, but i´m not an expert in this
It already does that... it was one of the features I asked him to put in and have confirmed that its been put in.
Title: Re: SMF Trader System (1.2 Released)
Post by: Jessikard on September 10, 2008, 04:26:52 AM
ok, i saw my version is still 1.1
how can i update if it´s necessary to solve my problem ?
Title: Re: SMF Trader System (1.2 Released)
Post by: vbgamer45 on September 10, 2008, 08:39:26 AM
Uninstall the old version then install the new version
Title: Re: SMF Trader System (1.2 Released)
Post by: Jessikard on September 10, 2008, 10:37:38 AM
ah okay, but if i uninstall should the ratings stay in the forum until i installe the new version ?
how could the forum remains the datas of the ratings ?
sorry for these questions, but i only want to be sure about the updating
jessi
Title: Re: SMF Trader System (1.2 Released)
Post by: vbgamer45 on September 10, 2008, 07:46:59 PM
Yes ratings stay even if installed does not delete data.
Title: Re: SMF Trader System (1.2 Released)
Post by: Adish - (F.L.A.M.E.R) on September 24, 2008, 08:19:19 PM
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 5
File: /home/bcon01/public_html/forum/Sources/Trader.php
Line: 153

What is to be done ?
Title: Re: SMF Trader System (1.2 Released)
Post by: vbgamer45 on September 24, 2008, 08:32:21 PM
When are you getting that error? And what are you doing to cause that error to occur?
Title: Re: SMF Trader System (1.2 Released)
Post by: Adish - (F.L.A.M.E.R) on September 24, 2008, 08:36:17 PM
ok well it was this link which use to do that, but i just replaced with a fresh one and it seems to appear correctly. The link was:- http://www.gadgetrader.com/forum/index.php?action=trader&amp;amp;amp;id=63

 While a new error is up,

8: Undefined index: trader_feedbackperpage
File: /home/bcon01/public_html/forum/Sources/Trader.php
Line: 153

On the same link as above.
Title: Re: SMF Trader System (1.2 Released)
Post by: vbgamer45 on September 24, 2008, 08:39:10 PM
Check under Trader Settings that you have set the number of feedback per page to show
Title: Re: SMF Trader System (1.2 Released)
Post by: Adish - (F.L.A.M.E.R) on September 24, 2008, 08:42:07 PM
its on 10.
Title: Re: SMF Trader System (1.2 Released)
Post by: vbgamer45 on September 24, 2008, 08:44:56 PM
No idea then what would cause it other than a fluke.
Title: Re: SMF Trader System (1.2 Released)
Post by: WiredWebTalk.com on October 10, 2008, 11:58:46 PM
Thank you very much.
this is what i was looking for -  making my site look much closer to vB :)

worked with dilbermc theme.
Title: Re: SMF Trader System (1.2 Released)
Post by: xconnect on October 18, 2008, 12:58:26 AM
When I try to install it on 1.16 I get the following error:

1. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
2. Execute Modification ./Themes/default/languages/Modifications.english-utf8.php Test successful
3. Execute Modification ./Themes/default/Profile.template.php Test failed
4. Execute Modification ./Themes/default/Display.template.php Test successful
5. Execute Modification ./index.php Test successful
6. Execute Modification ./Sources/ManagePermissions.php Test successful
7. Execute Modification ./Sources/Subs.php Test successful
8. Execute Modification ./Themes/default/languages/Help.english.php Test successful
9. Execute Modification ./Themes/default/languages/Help.english-utf8.php Test successful
10. Extract File ./Sources/Trader.php 
11. Extract File ./Themes/default/Trader.template.php 
12. Extract File ./Themes/default/languages/Trader.english.php 
13. Extract File ./Themes/default/languages/Trader.english-utf8.php 
14. Execute Code smftraderinstall.php

I have the following mods installed:

1. Custom Profile Field Mod 3.19
2. Ad Managment 2.3
3. Limit A Guests Daily PageViews Mod 1.0 
4. Reg Bar 1.0.2
5. Anonymize Links 2.1
6. Avatar Under Membergroups Rank 1.3.KD
7. Hide Tag 1.7.1
8. Profile Comments 1.4
9. Display Location on posts 1.0
10. Users Online Today Mod 1.4.0
11. Global Headers Footers 1.4.1
12. SMF Radio 1.1
13. Related Topics 1.3 RC 2
14. Googlebot & Spiders Mod 2.0.4
15. NextPostLevel 1.0
16. Welcome Back 1.0
17. Eliana Mod 2.0
18. Merged Topic Redirects 1.0.0
19. Modbreaktag 1.0
20. New Style Message Icon 1.0
21. Auto Embed Video/Audio Clips 3.1.2
22. SMF 1.0.14 / 1.1.6 Update 1.0
23. Activate account redirection 0.1
24. Auto Email Inactive Users 1.7
25. View Single PM 1.3
26. Prettier_Quotes 1.1
27. RateThatTopic 1.0
28. Pretty URLs - Base 0.8.4
29. Contact Page 1.1
30. Profile_Visitors 4.0
31. User Email System 1.3
32. Hide Tag BBC Image 1.0.0 

Any idea what I could do to install it? :)
Title: Re: SMF Trader System (1.2 Released)
Post by: vbgamer45 on October 18, 2008, 10:03:09 AM
You can still install the mod. But you would have to make the edit to the profile.template.php manually.

You can use the install instructions on the modsite to get a good idea of where the code would go.
Title: Re: SMF Trader System (1.2 Released)
Post by: TechPrince on October 30, 2008, 01:56:41 PM
If one uses SEF Urls Mod then image paths in trader mod becomes invalid.
Title: Re: SMF Trader System (1.2 Released)
Post by: vbgamer45 on October 30, 2008, 07:49:05 PM
SMF's or is that another mod such as pretty urls?
Title: Re: SMF Trader System (1.2 Released)
Post by: TechPrince on October 31, 2008, 09:44:31 PM
Ex. Advanced SEF Urls.
Title: Re: SMF Trader System (1.2 Released)
Post by: Bugpac ™ on November 02, 2008, 08:52:13 AM
Any plans to upgrade this for 2.0?
Title: Re: SMF Trader System (1.2 Released)
Post by: vbgamer45 on November 02, 2008, 09:37:45 AM
Yes I have plans to do so
Title: Re: SMF Trader System (1.2 Released)
Post by: MoreBloodWine on November 05, 2008, 08:02:37 PM
http://www.eojmarket.com/index.php?action=trader&id=66

He's only got one comment but it was left with the wrong "tag" how can I re-tag it as a trade comment ?
Title: Re: SMF Trader System (1.2 Released)
Post by: kizer on November 07, 2008, 05:30:10 PM
Ok I installed the mod and had to modify my laungage file, which was no big deal. Two things that I'm noticing.

When I submit feedback the reciever gets this.

"He ripped me off big time

Comment made by: themouse_
An Error Has Occurred!"

When I click on the An Error Has Occured it takes me to the profile of the person recieving the feedback.

As well I have 3 admins and one admin seems to be getting PM's when there is a reported  feedback. Now since I'm the Site Admin shouldn't I get it as well?
Title: Re: SMF Trader System (1.2 Released)
Post by: Nibogo on November 07, 2008, 06:00:16 PM
Feature Request:

You can add the trader system only to specific boards , adding the option to make the post with the price , status and other stuff of the products??
Title: Re: SMF Trader System (1.2 Released)
Post by: vbgamer45 on November 08, 2008, 12:31:18 AM
Maybe not sure how it work since the trading system is not tied to boards really.
Title: Re: SMF Trader System (1.2 Released)
Post by: Nibogo on November 08, 2008, 05:17:02 PM
Maybe not sure how it work since the trading system is not tied to boards really.

I mean show this:

<b>' . $txt['smftrader_profile'] . ' </b>
               (<a href="' . $scripturl .  '?action=trader&id=' . $message['member']['id'] . '">', $modSettings['trader_use_pos_neg'] ? ($tradecount > 0 ? '+' . $tradecount : $tradecount)  : $tradecount  , '</a>)<br />';

Only in the "Trader Boards" also when you create a new post in this trader boards you can add some info like this:

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg205.imageshack.us%2Fimg205%2F186%2Fitradercp6.th.jpg&hash=1295bdacb861dfcac5af17c5e7ad8c6b) (http://img205.imageshack.us/my.php?image=itradercp6.jpg)(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg205.imageshack.us%2Fimages%2Fthpix.gif&hash=bd81ad18261a91a97d6d66e7cb2e2d48) (http://g.imageshack.us/thpix.php)

In english:

Price: [Price of the article]

Payment Method: [Paypal , Credit Card ,.....]

Status: [Used , New]

Bye
Title: Re: SMF Trader System (1.2 Released)
Post by: Smoky "Rider" Blue on November 10, 2008, 05:07:07 AM
Since the upgrade to the 1.1.7, the un install button has disapeared.

when you try to get to the admin section of the trader, it takes you back to the forum.. vBgammer, any advise?? or should i just remove via file and db?? i need this functional for my client, and figured you should know bout this.  :)

Title: Re: SMF Trader System (1.2 Released)
Post by: Smoky "Rider" Blue on November 10, 2008, 10:39:02 PM
**bump**  :(
Title: Re: SMF Trader System (1.2 Released)
Post by: vbgamer45 on November 11, 2008, 09:48:15 PM
Looks like the mod would need to be reinstalled again seems that parts of it got wiped out from the upgrade depending on what upgrade package was used for SMF.
Title: Re: SMF Trader System (1.2 Released)
Post by: Smoky "Rider" Blue on November 12, 2008, 03:49:51 AM
the only "upgrade" was from 1.1.6 to the 1.1.7 by using the patch.  :)

no worries, i have sorted it out now..  ;)
Title: Re: SMF Trader System (1.2 Released)
Post by: kizer on November 12, 2008, 07:00:04 PM
Ok I installed the mod and had to modify my laungage file, which was no big deal. Two things that I'm noticing.

When I submit feedback the reciever gets this.

"He ripped me off big time

Comment made by: themouse_
An Error Has Occurred!"

When I click on the An Error Has Occured it takes me to the profile of the person recieving the feedback.

As well I have 3 admins and one admin seems to be getting PM's when there is a reported  feedback. Now since I'm the Site Admin shouldn't I get it as well?

Any ideas? This was before the 1.1.7 update. I was running 1.1.6 when I was having these issues.
Title: Re: SMF Trader System (1.2 Released)
Post by: vbgamer45 on November 12, 2008, 08:20:04 PM
Currently i thin it only sends PM's to one admin. Not sure if it is first admin or if it goes by the server settings email.
Title: Re: SMF Trader System (1.2 Released)
Post by: kizer on November 13, 2008, 02:21:42 PM
Any idea on the Error message I keep getting?

Comment made by: themouse_
An Error Has Occurred!"

You might be right on the admin email since Im using a bogus email to keep the spam to my account down.
Title: Re: SMF Trader System (1.2 Released)
Post by: twldave on November 13, 2008, 05:17:11 PM
Afternoon Gang!

I am trying to create a link, that points to an empty SMF Trader submit feedback form and passes the URL of interest into the Topic URL field, any suggestions on how to make it post the value I want to pass?

*Add* 

Any way to increase someone's Trader Count without actually doing addtional feedback entries.  (Ex.  I want to credits someone for feedback they have received elsewhere, they are bringing a count of +5, want to increase their count by 5 without having to do 5 individual feedbacks)  Possible?

TIA
Title: Re: SMF Trader System (1.2 Released)
Post by: twldave on November 15, 2008, 09:32:00 AM
I am trying to create a link, that points to an empty SMF Trader submit feedback form and passes the URL of interest into the Topic URL field, any suggestions on how to make it post the value I want to pass?

I know how to write the link to send the item I am trying to pass forward, I am not sure how to get it to post into the Topic URL field.  I am hesitant to mess with the SMF Trader code with out any guidance.

Again, thanks in advance for any suggestions or help!
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: vbgamer45 on November 15, 2008, 09:55:58 PM
Added support for SMF 2.0 beta 4!
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: xconnect on November 15, 2008, 11:50:33 PM
Added support for SMF 2.0 beta 4!

Installed with ease. Thanks!
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: TechPrince on November 16, 2008, 02:05:34 PM
all smiley images are not linked properly. These are without boardurl so if one uses 3rd party SEF Urls mod then all these images will break.
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: vbgamer45 on November 16, 2008, 03:15:44 PM
Need to see an example. Not sure if I can fix that sounds like an issue with the mod changing all image links for some reaosn.
Title: Re: SMF Trader System (1.2 Released)
Post by: MoreBloodWine on November 17, 2008, 08:44:39 PM
http://www.eojmarket.com/index.php?action=trader&id=66

He's only got one comment but it was left with the wrong "tag" how can I re-tag it as a trade comment ?
bump...
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: twldave on November 19, 2008, 06:46:57 PM
I am trying to create a link, that points to an empty SMF Trader submit feedback form and passes the URL of interest into the Topic URL field, any suggestions on how to make it post the value I want to pass?

I know how to write the link to send the item I am trying to pass forward, I am not sure how to get it to post into the Topic URL field.  I am hesitant to mess with the SMF Trader code with out any guidance.

Again, thanks in advance for any suggestions or help!

Any thoughts or advice on this one?  Seems like it would be so nice to provide the topic url, instead of having to remember to copy and paste it.
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: DesertRatt on December 04, 2008, 08:16:23 PM
Ok here is my install problem and maybe someone can help me with it.  I know where the problem is on the install.

Existing Profile.template.php line:

global $context, $settings, $options, $scripturl, $modSettings, $txt, $db_prefix, $ID_MEMBER;

   // First do the containing table and table header.


Now the installation says:

Search for:

global $context, $settings, $options, $scripturl, $modSettings, $txt;

   // First do the containing table and table header.


Replace:

global $context, $settings, $options, $scripturl, $modSettings, $txt, $db_prefix;

   // First do the containing table and table header.


I tried to modify the installation file but then I get a 1. Execute Modification - Modification parse error

If I use an unmodified installation I get this 3. Execute Modification ./Themes/default/Profile.template.php Test failed

Does the fact that $db_prefix already exists cause a problem?

Thanks for any light that can be shed on this.
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: vbgamer45 on December 04, 2008, 08:39:14 PM
Yes it causes that error try to install it anyway should be ok.
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: DesertRatt on December 05, 2008, 10:21:17 AM
Ok it was profile comments mod that puts this in $db_prefix, $ID_MEMBER so once I removed that mod it installed just fine.
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: DesertRatt on December 17, 2008, 04:30:26 AM
Ok I like this mod although I am using it for something a little different :D

One issue is when someone issues the trade count and on admin approval they get this message (see picture below).

Is there a way to set this up so that this doesnt dump to an Error page?

And where can I edit the info for the "back" link to go somewhere else.
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: foempspeedy on December 26, 2008, 08:35:41 PM
I tried to install on 1.1.7
Got this :
    Type     Action     Description
1.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
2.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Skipping file
3.    Execute Modification    ./Themes/default/Profile.template.php    Test failed
4.    Execute Modification    ./Themes/default/Display.template.php    Test successful
5.    Execute Modification    ./index.php    Test successful
6.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
7.    Execute Modification    ./Sources/Subs.php    Test successful
8.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
9.    Execute Modification    ./Themes/default/languages/Help.english-utf8.php    Skipping file

Means? :o
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: Oldiesmann on December 26, 2008, 08:37:48 PM
I tried to install on 1.1.7
Got this :
    Type     Action     Description
1.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
2.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Skipping file
3.    Execute Modification    ./Themes/default/Profile.template.php    Test failed
4.    Execute Modification    ./Themes/default/Display.template.php    Test successful
5.    Execute Modification    ./index.php    Test successful
6.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
7.    Execute Modification    ./Sources/Subs.php    Test successful
8.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
9.    Execute Modification    ./Themes/default/languages/Help.english-utf8.php    Skipping file

Means? :o


Test failed = some code that the mod was searching for wasn't found. This is likely caused by another mod that you have installed which changes the same code.

Skipping file = you don't have that file so it's skipping the modifications for that particular file.
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: foempspeedy on December 26, 2008, 09:20:06 PM
I tried to install on 1.1.7
Got this :
    Type     Action     Description
1.    Execute Modification    ./Themes/default/languages/Modifications.english.php    Test successful
2.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Skipping file
3.    Execute Modification    ./Themes/default/Profile.template.php    Test failed
4.    Execute Modification    ./Themes/default/Display.template.php    Test successful
5.    Execute Modification    ./index.php    Test successful
6.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
7.    Execute Modification    ./Sources/Subs.php    Test successful
8.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
9.    Execute Modification    ./Themes/default/languages/Help.english-utf8.php    Skipping file

Means? :o


Test failed = some code that the mod was searching for wasn't found. This is likely caused by another mod that you have installed which changes the same code.

Skipping file = you don't have that file so it's skipping the modifications for that particular file.

Does it means it safe to install or not?
I installed few mods :
    
1.    TinyPortal    0.983    [ Uninstall ]
2.    Posting_Announcement    1.1.2    [ Uninstall ]
3.    BK-SMF Sub-Board    1.5    [ Uninstall ]
4.    Profile_Visitors    4.0    [ Uninstall ]
5.    Order Stickied Topics    1.01    [ Uninstall ]
6.    Ultimate Avatar Pack    1.1    [ Uninstall ]
7.    Welcome Topic Mod    1.1    [ Uninstall ]
8.    Profile Comments    1.4    [ Uninstall ]
9.    Are You Human? Anti-Bot Registration Check    1.3    [ Uninstall ]
10.    Birthday on Profile Summary    1.0    [ Uninstall ]
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: foempspeedy on December 30, 2008, 01:35:36 PM
I want to apply this mod but i get this test failed :
3.     Execute Modification     ./Themes/default/Profile.template.php     Test failed

Can i continue or what is the problem causing this?
ty
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: djstew on January 01, 2009, 02:35:47 AM
how would i get this to work in the ultimate profile mod?
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: vbgamer45 on January 01, 2009, 08:16:30 AM
I want to apply this mod but i get this test failed :
3.     Execute Modification     ./Themes/default/Profile.template.php     Test failed

Can i continue or what is the problem causing this?
ty
It won't install on the profile template that is all. You can probaly manually install it.
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: coldfusionpower on January 14, 2009, 08:50:08 PM
installed it at 2.0.4 .. got it working on default theme but not at custom theme Black RainV2 .. done the mod at both Profile.template.php and Modifications.english.php  for Black RainV2 .. and its there . but come up empty like this ..

Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: coldfusionpower on January 15, 2009, 02:07:45 PM
its okay .. working now ... tq
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: vbgamer45 on January 18, 2009, 03:30:41 PM
Yeah that is usually is a language file issue. If the language of the forum is not set to english.

Or if you do not copy all the language strings to the modications.* files of your theme
Title: Re: SMF Trader System (1.2 Released)
Post by: aw06 on January 31, 2009, 02:55:04 AM
Any idea on the Error message I keep getting?

Comment made by: themouse_
An Error Has Occurred!"


I would like to know this as well ....

And also, as an admin how can i edit feedbacks, in that some people to now enter a url for the sale .. then it causes the feedback topic to point to a page cannot be displayed.
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: alex30 on February 06, 2009, 02:34:43 AM
please help, what do i do with this?

/Themes/default/languages/Modifications.english-utf8.php     Test failed
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: Kindred on February 06, 2009, 02:24:05 PM
Corrections needed to have this work on 2.0 RC1

first...   database field names need to be updated
Unknown column 'm.timeOffset' in 'field list'
File: /.../Sources/Trader2.php
Line: 620

change this to be m.time_offset


next: template changes

Ignore the stuff per the mod and do the following

in Profile.template.php

find:
Code: [Select]
if (!empty($modSettings['userLanguage']) && !empty($context['member']['language']))
echo '
<dt>', $txt['language'], ':</dt>
<dd>', $context['member']['language'], '</dd>';



Add After

Code: [Select]
// Start SMF Trader System
// First do the query for the number of ratings
global $smcFunc;

$smcFunc['db_query']('', "SELECT feedbackid FROM {db_prefix}feedback WHERE approved = 1 AND ID_MEMBER =" . $context['member']['id']);
$tradecount = $smcFunc['db_affected_rows']();

$result = $smcFunc['db_query']('', "
SELECT
COUNT(*) AS total,salevalue
FROM {db_prefix}feedback
WHERE approved = 1 AND ID_MEMBER = " . $context['member']['id'] . " GROUP BY salevalue");
$context['neturalcount'] = 0;
$context['pcount'] = 0;
$context['ncount'] = 0;
while($row = $smcFunc['db_fetch_assoc']($result))
{
if ($row['salevalue'] == 0)
{
$context['pcount'] = $row['total'];
}
else if ($row['salevalue'] == 2)
{
$context['ncount'] = $row['total'];
}
else if ($row['salevalue'] == 1)
{
$context['neturalcount'] = $row['total'];
}

}
$smcFunc['db_free_result']($result);

$context['tradecount_nonetural'] = ($context['pcount'] +  $context['ncount']);

if ($modSettings['trader_use_pos_neg'])
$tradecount = ($context['pcount'] -$context['ncount']);

echo '
</dl>';

echo '
<dl>

<dt><b>' . $txt['smftrader_title'] . '</b></dt>
<dd>&nbsp;</dd>

<dt><b>' . $txt['smftrader_profile'] . '</b></dt>
<dd><b>(<a href="' . $scripturl .  '?action=trader&id=' . $context['member']['id'] . '">' . ($modSettings['trader_use_pos_neg'] ? ($tradecount > 0 ? '+' . $tradecount : $tradecount)  : $tradecount) . '</a>)</b></dd>

<dt><b>' . $txt['smftrader_positivefeedbackpercent']  . '</b></dt>
<dd><b>' , $context['tradecount_nonetural'] != 0 ? round(($context['pcount'] / $context['tradecount_nonetural']) * 100, 2) : 0 , '%</b></dd>

<dt>' . $txt['smftrader_positivefeedback'] . '</dt>
<dd>' . $context['pcount'] . '&nbsp;<img src="' .  'Smileys/default/smiley.gif" alt="positive" /></dd>

<dt>' . $txt['smftrader_neutralfeedback']  . '</dt>
<dd>' .  $context['neturalcount'] . '&nbsp;<img src="' . 'Smileys/default/undecided.gif" alt="neutral" /></dd>

<dt>' . $txt['smftrader_negativefeedback']  . '</dt>
<dd>' .  $context['ncount'] . '&nbsp;<img src="' .  'Smileys/default/angry.gif" alt="negative" /></dd>

<dt>' . $txt['smftrader_totalfeedback']  . '</dt>
<dd>' .  ($context['pcount'] - $context['ncount']) . '</dd>

<dt><a href="' . $scripturl .  '?action=trader&sa=submit&id=' . $context['member']['id'] . '">' . $txt['smftrader_submitfeedback'] . $context['member']['name'] . '</a></dt>
<dd>&nbsp;</dd>';
// END SMF Trader System
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: zepfms on February 18, 2009, 09:21:15 AM
It would be great if there was an option to set the URL field mandatory..

Thanks for this great addon  :)
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: vbgamer45 on February 18, 2009, 08:10:17 PM
Added to my todo list to fix this weekend for RC1
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: aw06 on March 02, 2009, 03:26:10 PM
Can a feature or hack be added to allow for sending of emails to the forums admins when new feedbacks are submittied ... i have approval checked so from time to time i have to go into admin panel and check for new feedback...

would be good if i could get an email notification . even a PM notification
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: Eclipse16V on March 13, 2009, 04:56:52 PM
Does it work with SMF2.0RC1 ?
I don´t find it on the profil.template.de
It isn´t fixed on the last version of this mod.
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: Kindred on March 13, 2009, 06:32:54 PM
2.0RC1 requires some manual tweaks to use it in the profile...
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: makasu on March 14, 2009, 04:26:53 PM
When I try to register to my forum i get this error ><

The database value you're trying to insert does not exist: money

Anyone know how to solve that? :D
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: C4G-TK on March 23, 2009, 12:05:40 AM
I am using V2 RC1 and I installed this manually with two failed tests.  Profile.template.php & Display.template.php.  I made one little change for the Display.template in order to have it show the rating lower inside the post, but otherwise I thought I did it correctly.  In the profile, I need to tweak it a little because it spans the entire width of the screen to show the feedback, but otherwise it looks to be working correctly.

My problem arises when I went into my Error Log.  (Like I said, I did have the two errors listed above, but I thought I did them correctly despite making the change noted.)

I've attached the three errors that it is pulling in the Error Log and the two edits I did that showed as Failed Tests prior to doing them manually.

Display.template edit here:

Code: [Select]
// Is karma display enabled?
if ($modSettings['karmaMode'] != '0'){
echo '
<li class="margintop">', $txt['karma_power'], ': ', $message['member']['karma']['power'], '</li>
<li class="margintop repbars">
';
foreach($message['member']['karma']['bars'] as $karma_bar)
echo '<img src="', $settings['images_url'], '/karma_', $karma_bar['type'], '.gif" title="', $message['member']['name'], ' ', $karma_bar['desc'], '" alt="', $message['member']['name'], ' ', $karma_bar['desc'], '" />';
echo '
</li>';
}

// Show online and offline buttons?
if (!empty($modSettings['onlineEnable']))
echo '
<li>', $context['can_send_pm'] ? '<a href="' . $message['member']['online']['href'] . '" title="' . $message['member']['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $message['member']['online']['image_href'] . '" alt="' . $message['member']['online']['text'] . '" border="0" style="margin-top: 2px;" />' : $message['member']['online']['text'], $context['can_send_pm'] ? '</a>' : '', $settings['use_image_buttons'] ? '<span class="smalltext"> ' . $message['member']['online']['text'] . '</span>' : '', '</li>';

//Start SMF Trader System
//First do the query for the number of ratings
global $smcFunc;
$result = $smcFunc['db_query']('', "
SELECT
COUNT(*) AS total,salevalue
FROM {db_prefix}feedback
WHERE approved = 1 AND ID_MEMBER = " . $message['member']['id'] . " GROUP BY salevalue");
$context['neturalcount'] = 0;
$context['pcount'] = 0;
$context['ncount'] = 0;
while($row = $smcFunc['db_fetch_assoc']($result))
{
if ($row['salevalue'] == 0)
{
$context['pcount'] = $row['total'];
}
else if ($row['salevalue'] == 2)
{
$context['ncount'] = $row['total'];
}
else if ($row['salevalue'] == 1)
{
$context['neturalcount'] = $row['total'];
}

}
$smcFunc['db_free_result']($result);



if ($modSettings['trader_use_pos_neg'])
$tradecount = ($context['pcount'] - $context['ncount']);
else
$tradecount = $context['pcount'] + $context['ncount'] + $context['neturalcount'];



// Show the trader info
echo '<li>
<b>' . $txt['smftrader_profile'] . ' </b>
(<a href="' . $scripturl .  '?action=trader&id=' . $message['member']['id'] . '">', $modSettings['trader_use_pos_neg'] ? ($tradecount > 0 ? '+' . $tradecount : $tradecount)  : $tradecount  , '</a>)</li>';

//END SMF Trader System



// Show the member's gender icon?

Profile.template edit here:

Code: [Select]
if (!empty($modSettings['userLanguage']) && !empty($context['member']['language']))
echo '
<dt>', $txt['language'], ':</dt>
<dd>', $context['member']['language'], '</dd>';

// Start SMF Trader System
// First do the query for the number of ratings
global $smcFunc;

$smcFunc['db_query']('', "SELECT feedbackid FROM {db_prefix}feedback WHERE approved = 1 AND ID_MEMBER =" . $context['member']['id']);
$tradecount = $smcFunc['db_affected_rows']();



$result = $smcFunc['db_query']('', "
SELECT
COUNT(*) AS total,salevalue
FROM {db_prefix}feedback
WHERE approved = 1 AND ID_MEMBER = " . $context['member']['id'] . " GROUP BY salevalue");
$context['neturalcount'] = 0;
$context['pcount'] = 0;
$context['ncount'] = 0;
while($row = $smcFunc['db_fetch_assoc']($result))
{
if ($row['salevalue'] == 0)
{
$context['pcount'] = $row['total'];
}
else if ($row['salevalue'] == 2)
{
$context['ncount'] = $row['total'];
}
else if ($row['salevalue'] == 1)
{
$context['neturalcount'] = $row['total'];
}

}
$smcFunc['db_free_result']($result);

$context['tradecount_nonetural'] = ($context['pcount'] +  $context['ncount']);

if ($modSettings['trader_use_pos_neg'])
$tradecount = ($context['pcount'] -$context['ncount']);

echo '<tr><td colspan="2"><hr size="1" width="100%" class="hrcolor" /></td></tr>
<tr><td><b>' . $txt['smftrader_title'] . '</b></td></tr>
<tr><td><b>' . $txt['smftrader_profile'] . '</b></td><td><b>(<a href="' . $scripturl .  '?action=trader&id=' . $context['member']['id'] . '">' . ($modSettings['trader_use_pos_neg'] ? ($tradecount > 0 ? '+' . $tradecount : $tradecount)  : $tradecount) . '</a>)</b></td></tr>
<tr><td><b>' . $txt['smftrader_positivefeedbackpercent']  . '</b></td><td><b>' , $context['tradecount_nonetural'] != 0 ? round(($context['pcount'] / $context['tradecount_nonetural']) * 100, 2) : 0 , '%</b></td></tr>
<tr><td>' . $txt['smftrader_positivefeedback'] . '</td><td>' . $context['pcount'] . '&nbsp;<img src="' .  'Smileys/default/smiley.gif" alt="positive" /></td></tr>
<tr><td>' . $txt['smftrader_neutralfeedback']  . '</td><td>' .  $context['neturalcount'] . '&nbsp;<img src="' . 'Smileys/default/undecided.gif" alt="neutral" /></td></tr>
<tr><td>' . $txt['smftrader_negativefeedback']  . '</td><td>' .  $context['ncount'] . '&nbsp;<img src="' .  'Smileys/default/angry.gif" alt="negative" /></td></tr>
<tr><td>' . $txt['smftrader_totalfeedback']  . '</td><td>' .  ($context['pcount'] - $context['ncount']) . '</td></tr>
<tr><td colspan="2"><br /><a href="' . $scripturl .  '?action=trader&sa=submit&id=' . $context['member']['id'] . '">' . $txt['smftrader_submitfeedback'] . $context['member']['name'] . '</a></td>
</tr>';
// END SMF Trader System


echo '
</dl>';
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: vkot on April 08, 2009, 04:43:06 AM
What about this? http://www.smfhacks.com/index.php/topic,1450.0.html
Is it done yet? Will it be done soon? Does anyone have a clue on how it can be done?
(Maybe I could built some code myself, but I have lack of time)
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: Skylla on May 03, 2009, 02:33:52 PM
Hello Community

I have some Problems with my version 1.2 of SMF Trader systems

I Use SMF 2.0 RC1, and getting a Error on Installing the Mod.
It tolds me that he can´t write to Display.theme.php and Profile.theme.php

so i Parse it by myself and now i have a Style Problem. take a look at the Picture to see what i mean.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg356.imageshack.us%2Fimg356%2F6223%2Fprob.jpg&hash=45b57efde729124e743aa060eb69235c)

once you see that the Signature has been climb up to the top of the Profile View what looks really Crap and unprofessional to myself and other Users.

twice youll see that the SMF Trading system is at the Bottom and is Stretched.

so... what i want is that the "Stretch" ( well i just call it so ... ) is not to see and that the Users signature is not on the Top, cause it should be at the Bottom.

Excuse my bad english im from germany, and hope it is possible to understand what i mean.

Regards, Skylla
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: Kindred on May 03, 2009, 09:27:02 PM
yes... 2.0 RC1 does not use tables in that way...   so you can't just paste, you have to re-parse the code as dt/dd tags.   I have it working over on 40konline.com with RC1.
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: Skylla on May 04, 2009, 05:59:48 AM
yes... 2.0 RC1 does not use tables in that way...   so you can't just paste, you have to re-parse the code as dt/dd tags.   I have it working over on 40konline.com with RC1.

can u paste your code or send me in a personal message ?
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: Kindred on May 06, 2009, 01:48:56 PM
in profile.template.php

(Although, tehcnically, this SQL should be moved into the Sources/profile.php instead of in the template file)

Code: [Select]
// Start SMF Trader System
// First do the query for the number of ratings
global $smcFunc;

$smcFunc['db_query']('', "SELECT feedbackid FROM {db_prefix}feedback WHERE approved = 1 AND ID_MEMBER =" . $context['member']['id']);
$tradecount = $smcFunc['db_affected_rows']();



$result = $smcFunc['db_query']('', "
SELECT
COUNT(*) AS total,salevalue
FROM {db_prefix}feedback
WHERE approved = 1 AND ID_MEMBER = " . $context['member']['id'] . " GROUP BY salevalue");
$context['neturalcount'] = 0;
$context['pcount'] = 0;
$context['ncount'] = 0;
while($row = $smcFunc['db_fetch_assoc']($result))
{
if ($row['salevalue'] == 0)
{
$context['pcount'] = $row['total'];
}
else if ($row['salevalue'] == 2)
{
$context['ncount'] = $row['total'];
}
else if ($row['salevalue'] == 1)
{
$context['neturalcount'] = $row['total'];
}

}
$smcFunc['db_free_result']($result);

$context['tradecount_nonetural'] = ($context['pcount'] +  $context['ncount']);

if ($modSettings['trader_use_pos_neg'])
$tradecount = ($context['pcount'] -$context['ncount']);

echo '<hr size="1" width="100%" class="hrcolor" />
<dl>
<dt><b>' . $txt['smftrader_title'] . '</b></dt><dd>&nbsp;</dd>
<dt><b>' . $txt['smftrader_profile'] . '</b></dt><dd><b>(<a href="' . $scripturl .  '?action=trader&id=' . $context['member']['id'] . '">' . ($modSettings['trader_use_pos_neg'] ? ($tradecount > 0 ? '+' . $tradecount : $tradecount)  : $tradecount) . '</a>)</b></dd>
<dt><b>' . $txt['smftrader_positivefeedbackpercent']  . '</b></dt><dd><b>' , $context['tradecount_nonetural'] != 0 ? round(($context['pcount'] / $context['tradecount_nonetural']) * 100, 2) : 0 , '%</b></dd>
<dt>' . $txt['smftrader_positivefeedback'] . '</dt><dd>' . $context['pcount'] . '&nbsp;<img src="' .  'Smileys/default/smiley.gif" alt="positive" /></dd>
<dt>' . $txt['smftrader_neutralfeedback']  . '</dt><dd>' .  $context['neturalcount'] . '&nbsp;<img src="' . 'Smileys/default/undecided.gif" alt="neutral" /></dd>
<dt>' . $txt['smftrader_negativefeedback']  . '</dt><dd>' .  $context['ncount'] . '&nbsp;<img src="' .  'Smileys/default/angry.gif" alt="negative" /></dd>
<dt>' . $txt['smftrader_totalfeedback']  . '</dt><dd>' .  ($context['pcount'] - $context['ncount']) . '</dd>
<dt><a href="' . $scripturl .  '?action=trader&sa=submit&id=' . $context['member']['id'] . '">' . $txt['smftrader_submitfeedback'] . $context['member']['name'] . '</a></dt><dd>&nbsp;</dd>
</dl>';
// END SMF Trader System

// Show the users signature.

In display.template.php
Code: [Select]
//Start SMF Trader System
//First do the query for the number of ratings
global $smcFunc;
$result = $smcFunc['db_query']('', "
SELECT
COUNT(*) AS total,salevalue
FROM {db_prefix}feedback
WHERE approved = 1 AND ID_MEMBER = " . $message['member']['id'] . " GROUP BY salevalue");
$context['neturalcount'] = 0;
$context['pcount'] = 0;
$context['ncount'] = 0;
while($row = $smcFunc['db_fetch_assoc']($result))
{
if ($row['salevalue'] == 0)
{
$context['pcount'] = $row['total'];
}
else if ($row['salevalue'] == 2)
{
$context['ncount'] = $row['total'];
}
else if ($row['salevalue'] == 1)
{
$context['neturalcount'] = $row['total'];
}

}
$smcFunc['db_free_result']($result);



if ($modSettings['trader_use_pos_neg'])
$tradecount = ($context['pcount'] - $context['ncount']);
else
$tradecount = $context['pcount'] + $context['ncount'] + $context['neturalcount'];



// Show the trader info
if ($tradecount!=0)
echo '<li>
<b>' . $txt['smftrader_profile'] . ' </b>
(<a href="' . $scripturl .  '?action=trader&id=' . $message['member']['id'] . '">', $modSettings['trader_use_pos_neg'] ? ($tradecount > 0 ? '+' . $tradecount : $tradecount)  : $tradecount  , '</a>)</li>';

//END SMF Trader System
// Don't show these things for guests.
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: mattchewone on May 07, 2009, 10:20:02 AM
Is it possible to have this mod link to a specific forum. For example a market category with a for sale board in it,

The users can give feedback once they have purchased something, rather than going to there profile?
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: Kindred on May 07, 2009, 01:25:02 PM
anything is POSSIBLE...   however, for that, you will have to code it.
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: cru on May 29, 2009, 08:55:08 PM
Hi!

 how can i change the text "trade count" as seen in the member's forum  post above his /her avatar?

I am using dilber MC theme. on 1.1.9

TIA
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: vbgamer45 on May 29, 2009, 09:16:17 PM
themes/default/languages/modifications.english.php
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: aw06 on May 30, 2009, 11:02:47 AM
Is it possible to see a list of the top 10 traders ?
Title: please help with trader
Post by: darrenb1 on June 18, 2009, 11:10:24 AM
Hi all, Thanks for all your help in the past, its great.

Having problems getting trader to work, i have this error on install.

1.     Execute Modification     ./Themes/default/languages/Modifications.english.php     Test successful
      1.    Add Before    ./Themes/default/languages/Modifications.english.php    Test successful
   2.    Execute Modification    ./Themes/default/languages/Modifications.english-utf8.php    Skipping file
*    3.    Execute Modification    ./Themes/default/Profile.template.php    Test failed
      1.    Replace    ./Themes/default/Profile.template.php    Test failed
*    4.    Execute Modification    ./Themes/default/Display.template.php    Test failed
      1.    Add After    ./Themes/default/Display.template.php    Test failed
*    5.    Execute Modification    ./index.php    Test successful
      1.    Add After    ./index.php    Test successful
*    6.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
      1.    Add After    ./Sources/ManagePermissions.php    Test successful
      2.    Add After    ./Sources/ManagePermissions.php    Test successful
*    7.    Execute Modification    ./Sources/Admin.php    Test successful
      1.    Add Before    ./Sources/Admin.php    Test successful
*    8.    Execute Modification    ./Themes/default/languages/Help.english.php    Test successful
      1.    Add Before    ./Themes/default/languages/Help.english.php    Test successful
   9.    Execute Modification    ./Themes/default/languages/Help.english-utf8.php    Skipping file
   10.    Extract File    ./Sources/Trader2.php   
   11.    Extract File    ./Themes/default/Trader2.template.php   
   12.    Extract File    ./Themes/default/languages/Trader.english.php   
   13.    Extract File    ./Themes/default/languages/Trader.english-utf8.php   
   14.    Execute Code    smftraderinstall2.php

only have a few mods installed, its www.rifle-exchange.co.uk

any help would be great, i have installed smf classifieds too.   
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: Kindred on June 18, 2009, 06:12:11 PM
SMF version?


You will likely have to manual install the mod in those failed files.
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: smashedpumpkins on June 24, 2009, 02:07:58 PM
Okay if I apply this Mod and it fails on Display and Profile, but I continue the install it will just ignore those two files right? I'll play with your edits a few posts back.
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: vbgamer45 on June 24, 2009, 09:06:09 PM
Yes it would be.
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: smashedpumpkins on June 25, 2009, 09:22:07 AM
Yes it would be.
You should update it to work smoothly :)
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: vbgamer45 on June 25, 2009, 08:20:04 PM
Impossible since any mod can change any piece of code.
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: smashedpumpkins on June 26, 2009, 11:23:57 AM
Impossible since any mod can change any piece of code.
True, but this Mod is actually the one I want the most on my site. I have 5 or 6 other mods and I'd uninstall them all to get this working. But even on a fresh copy it still doesn't work. The Display and Profile fail to update. I played with other peoples updates to this mod and I was given MySQL errors. :\
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: Kindred on June 26, 2009, 03:53:11 PM
I assume VBGamer will update this once RC2 or SMF 2 gold is released...   until then you'll have to manually update display and profile (I believe that I posted the code to do so)
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: smashedpumpkins on June 29, 2009, 12:23:57 PM
I assume VBGamer will update this once RC2 or SMF 2 gold is released...   until then you'll have to manually update display and profile (I believe that I posted the code to do so)
Okay I installed it this time on a different theme and so far it's working good. I've just got a few minor issues. Hopefully someone may be able to help me :)

First I noticed it does not show the Trade Count in posts if the user has no trade count. While testing I added feedback to my admin account and found that it showed up. However the account that has no feedback does not have the feedback there. Does anyone know how to switch that to show always? Even if the feedback is 0?

Lastly if you take a look here there's a scroll bar with a long blue line. Any idea what that might be?
http://www.ordergiftsfree.com/forums/index.php?action=profile;u=1
Nevermind... Fixed it by deleting "<hr size="1" width="100%" class="hrcolor" />"

Thanks a bunch!
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: Kindred on June 29, 2009, 08:18:12 PM
hmmm... I purposefully hide the tradecount(0) text.  If someone has no feedback or rating, then why do we need to see it?  Especially on a board of 50,000 users, of which only some 100 actually trade.
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: smashedpumpkins on June 30, 2009, 01:23:57 PM
hmmm... I purposefully hide the tradecount(0) text.  If someone has no feedback or rating, then why do we need to see it?  Especially on a board of 50,000 users, of which only some 100 actually trade.
In some cases yes, but for me the trade feedback is pretty important. Any who got it fixed by removing the IF statement.

Okay I'd like to edit some of the text such as "Short comment on your transaction:" etc... to better fit my site. I noticed the actual text is in the XML files, but I can't find the text anywhere in any of the files. Where are they stored? Is the text stored in the database? If so where at in it?
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: Kindred on June 30, 2009, 05:14:09 PM
text is stored, like every other text string in the language files   modifications.english.php
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: luigi44 on June 30, 2009, 05:44:19 PM
I made changes to:

Buyer
Seller
Trade

in english-utf8.php
should I also do the same modifications in english.php?
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: Kindred on June 30, 2009, 07:12:00 PM
probably
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: luigi44 on July 01, 2009, 12:10:31 AM
I couldn't agree more with everyone else, this is an awesome Mod!

Would someone be able to assist me with this little problem.
When reading another members feedback, and we click on "Comment", it bring us to a "HTTP 404 Not Found/The webpage cannot be found".

What can be causing this?
I put everything back to it's original settings, thinking perhaps I messed up with the few changes. But no, the problem is still there.

Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: luigi44 on July 01, 2009, 12:12:40 AM
It's okay. Found it.

Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: akosiparusa on July 10, 2009, 04:28:28 PM
i installed this through Packaged, i see it on the ACP > Configuration > Trader Settings

but how does it really work?

Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: Kindred on July 10, 2009, 10:15:03 PM
you installed a mod without knowing what it does?
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: akosiparusa on July 11, 2009, 02:26:35 AM
you installed a mod without knowing what it does?

well, technically speaking i am looking for a buy and sell mod for my smf, but i dont know why nothing have been applied. i can see the config and permission but doesn't see any of that mod applied on the board. not just feedbacks.
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: Kindred on July 11, 2009, 09:36:21 AM
are you running a theme other than default?  If so, you probably will have to manually apply the coding into your theme's template files.
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: akosiparusa on July 11, 2009, 12:36:28 PM
yeah, installed it on default theme first for the observation, unfortunately, nothing happened. haha

if things go well, i will have to manually inject the codes on my two other custom themes.
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: cabbagee on July 15, 2009, 10:53:48 AM
I'm getting a error applying the mod:

it seems to be unable to modify the template files:

   3.   Execute Modification   ./Themes/default/Profile.template.php   Test failed
   1.   Replace   ./Themes/default/Profile.template.php   Test failed
   4.   Execute Modification   ./Themes/default/Display.template.php   Test failed
   1.   Add After   ./Themes/default/Display.template.php   Test failed

Both of these are set to 777 and so is the dir so what could be going wrong?

Thanks!

EDIT: using the RC1 and i have  no other mods installed
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: Kindred on July 15, 2009, 01:39:39 PM
yes... I believe I stated this several times in this thread and included the code that I used on RC1.

This was built for beta4...
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: vbgamer45 on July 15, 2009, 08:54:38 PM
Version 1.3 Release
+Added support for SMF 2.0 RC1
Title: Re: SMF Trader System (1.2 Released) Now Supports SMF 2.0 Beta 4!
Post by: cabbagee on July 16, 2009, 04:39:17 AM
yes... I believe I stated this several times in this thread and included the code that I used on RC1.

This was built for beta4...

Sorry, I didn't look through the entire thread - must of missed it.

Apologies
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: Matthew K. on July 22, 2009, 01:21:18 PM
Hello,

I am running SMF Version 1.1.10 and using the default theme.

It installs smoothly, after filling out the feedback form and hitting submit, I receive this error message:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi32.tinypic.com%2Feff9f8.jpg&hash=692365205f07ec2fa6f351162c00fdba)

Help would be appreciated!
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: vbgamer45 on July 22, 2009, 01:55:25 PM
Read over this
http://www.simplemachines.org/community/index.php?topic=34270
To fix that issue
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: Matthew K. on July 22, 2009, 06:54:22 PM
Read over this
http://www.simplemachines.org/community/index.php?topic=34270
To fix that issue

I added that to my .htaccess at the base root public_html. And my SMF Trader System still gives me a 501 Error.

Additional support appreciated :)
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: vbgamer45 on July 22, 2009, 07:29:23 PM
I would try to contact your host to disable mod_security on your site.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: Matthew K. on July 22, 2009, 09:33:27 PM
I would try to contact your host to disable mod_security on your site.

I host my own website. I use Cpanel.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: vbgamer45 on July 22, 2009, 09:42:17 PM
Try to check your apache settings then to disable mod_security
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: TheThriftyMama on July 24, 2009, 02:25:38 PM
I installed the Trader system, and then decided that I didn't want to do trading on my forum.  When I try to uninstall the package I get this error message:

Error in Package Installation
At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

And then when I hit uninstall now it says this: Are you sure you wish to continue uninstalling this modification, even though it will not uninstall successfully?

I don't want to break my forum trying to get this off, so what should I do?  Thanks!
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: Kindred on July 24, 2009, 06:08:16 PM
sounds like you installed another mod which changed this mod's target code...

so you will have to manually uninstall the bits that failed the check.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: Matthew K. on July 25, 2009, 06:41:21 PM
I would like to completly remove the "You were: [buy][sell][trade]" and make it a default TRADE. Because I want people to be able to trade and no selling or buying is involved so trade is the only thing needed.

Thanks,
Labradoodle-360
Title: suggestion
Post by: Kadimi on July 31, 2009, 02:41:25 AM
Hello,

I suggest you use URLs in src properties for smileys, this will prevent miss-behaviours when using pretty urls which rewrite profile URLs:

www.example.com/profile/?u=1234

If using relative src for images, the browser will look for smileys at www.example.com/profile/Smileys/default/blah.gif!


[Edit]

A work around for this: disable url rewrite for profiles...
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: Kindred on July 31, 2009, 11:56:47 AM
kin...   absolute urls should be avoided within the same site...
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: Kadimi on July 31, 2009, 10:43:49 PM
Thanks Kindred... I will remember that.


@vbgamer45:
I Played with this nice mode today, it has some issues with images:

1 - check my previous post (2 steps back)

2 - In "current theme" settings, If you choose to disable smileys, then go to someone's profile to see his/her trader listing, you'll see no image, I'm not talking about images near "Positive Feedback", "Neutral Feedback" and "Negative Feedback"... I'm talking about the images that should appear on the table more specifically, in the "Rating" cells..
It looks for images in the folder: http://www.example.com/Smileys/none/

3 - I suggest that the mod should have his own images for the  3 feedback types, maybe the same images used with one of the reputation mods (arrows)...
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: evolution25 on August 21, 2009, 03:15:13 AM
is there a way i can change the name of the system so i can make it another name in settings and stuff
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: Kindred on August 21, 2009, 08:19:56 AM
look in the language files i.e. modifications.english.php
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: malcomxar on August 25, 2009, 09:15:37 AM
Hey, great mod, i have already implemented it but i need to translate this
"Your comment for MalCoM has been approved" (Subject of the PM)
and also the body o the PM, but i can't find where to do so...

It's not on modifications.englihsh.php, and i have also checked the other files but can't find it.

Any help will be apreciated ;)
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: vbgamer45 on August 25, 2009, 09:17:31 AM
Check Trader.english.php too
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: evolution25 on August 25, 2009, 10:56:11 PM
nevermind how do i do the permissions
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: vbgamer45 on August 25, 2009, 11:07:23 PM
Admin -> Permissions ->  Modify each group
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: malcomxar on August 26, 2009, 11:43:50 AM
Thanks, i hadn't checked that one!

:)
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: vbgamer45 on August 26, 2009, 04:33:44 PM
Glad you got it working!
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: evolution25 on September 07, 2009, 01:34:19 PM
it still says trader system at bottom how i change that
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: vbgamer45 on September 07, 2009, 01:55:19 PM
Bottom of what?
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: ErnieB on September 09, 2009, 11:23:26 AM
Is there a way for the admin to change the feedback number displayed for members? I had a trade rating system in place that was just tracked via a topic thread and i would like to be able to add their existing rating number to each user without having to have each previous person click and use the new mod.

Also which files ( and where ) can i edit so it says "Trade Rating" under the members name in posts instead of "trade count". And also the same for on their profile.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: vbgamer45 on September 09, 2009, 01:56:54 PM
No way for admin to change the feedback

The language files are stored in themes/default/languages/modifications.english.php
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: evolution25 on September 11, 2009, 03:54:40 PM
im trying change name of the whole system when you go to feedback says smf trader system on the bottom how do i change that
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: vbgamer45 on September 11, 2009, 08:53:29 PM
Either in
The language files are stored in themes/default/languages/modifications.english.php
Or
The language files are stored in themes/default/languages/trader.english.php
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: evolution25 on September 13, 2009, 08:19:15 PM
its a link at bottom you click it goes to another site im trying to change that
and its nothing changing in my custom theme
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: vbgamer45 on September 13, 2009, 08:29:07 PM
If it is copyright link to smfhacks.com needs to remain unless copyright removal is purchased
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: evolution25 on September 13, 2009, 08:33:02 PM
so why wouldnt the modifying i did appear in my custom theme
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: vbgamer45 on September 13, 2009, 08:47:47 PM
Can't help you with that unless you get copyright removal if you are trying to remove the link back to smfhacks.com
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: evolution25 on September 13, 2009, 08:49:06 PM
im talking about i kept it but i changed name of trade count and stuff but now its not showing in custom them as the new names
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: scorpion1082 on November 03, 2009, 07:12:52 PM
// Show the member's primary group (like 'Administrator') if they have one.
         echo '
                  <li>', $message['member']['group_stars'], '</li>
                  <li>', $message['member']['group'], '</li>';

this is the code found in my theme.  ur mod says its supposed to look like this:

 // Show the member's primary group (like 'Administrator') if they have one. if (isset($message['member']['group']) && $message['member']['group'] != '') echo ' <li>', $message['member']['group'], '</li>'; 

this is my using [select] to select the code from the error box that pops up for install in other theme during my applying the package.  the format selects weird.  everything is in a paragraph which apparently, even after switching the original code to ur code, comes up as error.  it cant find it.  i wud try to just copy this:

 //Start SMF Trader System //First do the query for the number of ratings global $smcFunc; $result = $smcFunc['db_query']('', " SELECT COUNT(*) AS total,salevalue FROM {db_prefix}feedback WHERE approved = 1 AND ID_MEMBER = " . $message['member']['id'] . " GROUP BY salevalue"); $context['neturalcount'] = 0; $context['pcount'] = 0; $context['ncount'] = 0; while($row = $smcFunc['db_fetch_assoc']($result)) { if ($row['salevalue'] == 0) { $context['pcount'] = $row['total']; } else if ($row['salevalue'] == 2) { $context['ncount'] = $row['total']; } else if ($row['salevalue'] == 1) { $context['neturalcount'] = $row['total']; } } $smcFunc['db_free_result']($result); if ($modSettings['trader_use_pos_neg']) $tradecount = ($context['pcount'] - $context['ncount']); else $tradecount = $context['pcount'] + $context['ncount'] + $context['neturalcount']; // Show the trader info echo '<li> <b>' . $txt['smftrader_profile'] . ' </b> (<a href="' . $scripturl . '?action=trader&id=' . $message['member']['id'] . '">', $modSettings['trader_use_pos_neg'] ? ($tradecount > 0 ? '+' . $tradecount : $tradecount) : $tradecount , '</a>)</li>'; //END SMF Trader System 

after like it says, but its also in paragraph form and im not sure it will work.  how do i make this work?  do u have the codes in proper format so it can?
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: vbgamer45 on November 03, 2009, 07:16:58 PM
I would just add it after
Code: [Select]
echo '
                  <li>', $message['member']['group_stars'], '</li>
                  <li>', $message['member']['group'], '</li>';

And then it would work for your theme
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: scorpion1082 on November 03, 2009, 09:30:59 PM
well, im trying to get the mod to self install and self uninstall so id like to change the original code to what urs expects so that it can find it each time.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: Kindred on November 03, 2009, 11:21:43 PM
I will note that something in your editor seems to be removing all carriage returns...
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: scorpion1082 on November 04, 2009, 03:44:57 PM
can someone post the proper format of those codes i listed?  it seems the author will not, even though it would completely solve the issue.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: vbgamer45 on November 04, 2009, 07:53:35 PM
I posted it above just add after the code that you had. I can't read the jumbled code that you posted.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: scorpion1082 on November 05, 2009, 05:03:02 AM
this:

 // Show the member's primary group (like 'Administrator') if they have one. if (isset($message['member']['group']) && $message['member']['group'] != '') echo ' <li>', $message['member']['group'], '</li>';

and this:

//Start SMF Trader System //First do the query for the number of ratings global $smcFunc; $result = $smcFunc['db_query']('', " SELECT COUNT(*) AS total,salevalue FROM {db_prefix}feedback WHERE approved = 1 AND ID_MEMBER = " . $message['member']['id'] . " GROUP BY salevalue"); $context['neturalcount'] = 0; $context['pcount'] = 0; $context['ncount'] = 0; while($row = $smcFunc['db_fetch_assoc']($result)) { if ($row['salevalue'] == 0) { $context['pcount'] = $row['total']; } else if ($row['salevalue'] == 2) { $context['ncount'] = $row['total']; } else if ($row['salevalue'] == 1) { $context['neturalcount'] = $row['total']; } } $smcFunc['db_free_result']($result); if ($modSettings['trader_use_pos_neg']) $tradecount = ($context['pcount'] - $context['ncount']); else $tradecount = $context['pcount'] + $context['ncount'] + $context['neturalcount']; // Show the trader info echo '<li> <b>' . $txt['smftrader_profile'] . ' </b> (<a href="' . $scripturl . '?action=trader&id=' . $message['member']['id'] . '">', $modSettings['trader_use_pos_neg'] ? ($tradecount > 0 ? '+' . $tradecount : $tradecount) : $tradecount , '</a>)</li>'; //END SMF Trader System

are both from ur mod.  now, what u posted:

I would just add it after
Code: [Select]
echo '
                  <li>', $message['member']['group_stars'], '</li>
                  <li>', $message['member']['group'], '</li>';

And then it would work for your theme


see that select code box u used?  thats what i used to get this "jumbled code."  it seems that it wont KEEP the format as ur select code box shows-- the proper spacing, the different lines, etc.  i keep trying to use a handful of your mods man, and i do appreciate ur making them, but i just keep seeing errors come up and believe me, its as frustrating to me as it is to u.  and ur mod is the only select code box that doesnt keep the proper spacing and such.  just hoping u can copy/paste the proper format of these two code lines into a reply here or a pm or something so i can just copy/paste the text, instead of using the select code box.  this way, i can replace the code in my theme with the code your mod thinks is going to be there so it can self install and uninstall.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: Kindred on November 05, 2009, 08:27:21 AM
the loss of format is due to your editor...   whatever you are using is causing the code jumble, because I have applied this mod on 4 sites without any errors.

So, your statement is incorrect...   that jumble is not from the mod...  that jumble is from using an incorrect program to edit php code.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: scorpion1082 on November 05, 2009, 03:07:39 PM
it must be something on the server side then, cause ive had no issues before when doing this with other mods.  he might have done something to the server php editor, idk.  this mod doesnt parse for any 2.0 version of smf when i go to this sites page for it.  i wud use that since i know it would keep the spacing and everything, but yeah, doesnt work.  can i use the parse for 1.1.10 from this sites manual install instructions?  thats the last one i remember working.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: Kindred on November 05, 2009, 06:19:01 PM
no.  1.1.10 will not work on 2.0

it looks like the mod parser might be broken for the 2.0 versions...    I never use the mod parser anyway...  Just open the XML file and read the instructions there...
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC1
Post by: Nick Whetstone on November 09, 2009, 09:06:51 AM
Awesome Mod! :D

Is there any chance this will be compatible with RC2? It's the last Mod I need to work before I switch.

Thanks a ton :)
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: vbgamer45 on November 09, 2009, 08:49:53 PM
Updated to support SMF 2.0 RC2!
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: Nick Whetstone on November 09, 2009, 10:27:10 PM
Updated to support SMF 2.0 RC2!
Thanks a bunch :) Working perfectly so far
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: vaesir on November 21, 2009, 03:09:30 PM
Guys haw can i change Submit feedback for USER
Thanks great mod
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: vbgamer45 on November 21, 2009, 09:59:18 PM
Guys haw can i change Submit feedback for USER
Thanks great mod
You have to modify profile.template.php in the themes/default folder and add an image instead of text
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: aw06 on November 30, 2009, 05:16:49 PM
Can something be added to send Admin a PM when feed-backs are submitted ?
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: MoreBloodWine on December 06, 2009, 02:23:08 AM
Can something be added to send Admin a PM when feed-backs are submitted ?
I would like to see soemthing for this myself... but I use my own special version of this mod. So my question is this...

Is there a simple hack so anyone could add this feature in themselves ?
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: aw06 on December 06, 2009, 08:10:20 AM
What does your version consist of ??
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: MoreBloodWine on December 06, 2009, 09:54:37 AM
What does your version consist of ??
Just little things that Vb helped me work on a long time ago that I dont know if they ever made it into the production version he's got here.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: vbgamer45 on December 06, 2009, 10:47:57 AM
Can something be added to send Admin a PM when feed-backs are submitted ?
I would like to see soemthing for this myself... but I use my own special version of this mod. So my question is this...

Is there a simple hack so anyone could add this feature in themselves ?
Yeah that can be done.  Editing the Trader.php source file and function that adds the feedback. Might get a little crazy if you have a lot of feedback on your forum that is why I like using feedback appropval
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: MoreBloodWine on December 06, 2009, 11:47:32 AM
Can something be added to send Admin a PM when feed-backs are submitted ?
I would like to see soemthing for this myself... but I use my own special version of this mod. So my question is this...

Is there a simple hack so anyone could add this feature in themselves ?
Yeah that can be done.  Editing the Trader.php source file and function that adds the feedback. Might get a little crazy if you have a lot of feedback on your forum that is why I like using feedback appropval
Well, once the new site gets goin I probably will but what about soemthing like this.

Say you have 50 trade comments comin in. Well instead of getting 50 PM's which is one for each comment you get one comment. Letting you know that you have ratings to aprove. Then when the list has been cleared the PM thing reset. Best way I can explain it I guess would be like this.

With outlook express you have that icon in your taskbar that lights up when you have mail letting you know (hey dummy you got some stuff to check).

It's basically a one hit wonder that resets after

Sorry if this doesnt sound right but I've never been to good at explaining things. I'll try to explain it better if I need to but hopefully you can get the gist of what I'm trying to say.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: aw06 on December 06, 2009, 12:31:33 PM
Can something be added to send Admin a PM when feed-backs are submitted ?
I would like to see soemthing for this myself... but I use my own special version of this mod. So my question is this...

Is there a simple hack so anyone could add this feature in themselves ?
Yeah that can be done.  Editing the Trader.php source file and function that adds the feedback. Might get a little crazy if you have a lot of feedback on your forum that is why I like using feedback appropval

Well i have mine set to approval, but sometimes i go and check and people sent feedbacks days ago, so id like the be notified each time something needs to be approved... if that is to much maybe one e-mail notification per day if there are infact feedbacks to be approved..
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: MoreBloodWine on December 08, 2009, 08:31:09 PM
Whats this error mean ?

Code: [Select]
Administrator   Today at 08:28:48 PM 
 <ip removed>     664fa9510289cea449d4d580e3eedc4c 
 http://www.siteremoved.com/index.php?action=trader;id=1 
2: Division by zero
File: /home/site removed/Themes/default/languages/Trader.english.php (main sub template - eval?)
Line: 17
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: vbgamer45 on December 08, 2009, 08:36:32 PM
Probably no feedback so it was trying to do a count 0 / 0 which can't be done
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: MoreBloodWine on December 09, 2009, 11:31:35 AM
Probably no feedback so it was trying to do a count 0 / 0 which can't be done
Kool, Thx...
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: MoreBloodWine on December 09, 2009, 11:59:30 AM
New question... Where is the following text(s) defined ? I wana change em a bit so the read differently... Thx.

Code: [Select]
Test 1...

Comment made by: MoreBloodWine
http://www.mysite.com/index.php?action=profile

Code: [Select]
The comment you left for MoreBloodWine on Today at 08:47:02 PM has been approved.
The second code is obviouslly from the "leaver" now my question is this as well. For the username... what do I need to do to make that a link to the persons profile ?

Hope all this makes sense, Ty.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: vbgamer45 on December 09, 2009, 07:55:34 PM
Text is defined in either languages/Trader.english.php or languages/Modifications.english.php
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: MoreBloodWine on December 09, 2009, 08:34:47 PM
Text is defined in either languages/Trader.english.php or languages/Modifications.english.php
Thx, I'll give it a looksie... now heres my next question.

The usernames that appeara i nthe PM's that the receiver and the sender gets... is it possible to make those links to the persons profile(s) ?
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: vbgamer45 on December 09, 2009, 09:11:10 PM
Yeah would have to modify the Trader.php and just add a link to the profile.
Title: Re: SMF Trader System | Error
Post by: Vyache on December 29, 2009, 08:25:15 PM
During removal of the admin.php...

Code: [Select]
  $permissionList = array( 'membergroup' => array( 'smftrader_feedback' => array(false, 'smftrader', 'smftrader'), 'smftrader_deletefeed' => array(false, 'smftrader', 'smftrader'), 'smftrader_autorating' => array(false, 'smftrader', 'smftrader'), 

This line of code is never added in admin.php. It is added in ./Sources/ManagePermissions.php

It should be looking for:
Code: [Select]
'trader' => array(
'label' => $txt['smftrader_admin'],
'file' => 'Trader2.php',
'function' => 'tradermain',
'custom_url' => $scripturl . '?action=admin;area=trader;sa=admin;sesc=' . $sc,
'icon' => '',
'subsections' => array(
'admin' => array($txt['smftrader_admin']),

),
),

why is this so?

Also why is     ./Themes/default/languages/Help.english.php that looking for:
Code: [Select]
  'trader' => array( 'label' => $txt['smftrader_admin'], 'file' => 'Trader2.php', 'function' => 'tradermain', 'custom_url' => $scripturl . '?action=admin;area=trader;sa=admin;sesc=' . $sc, 'icon' => '', 'subsections' => array( 'admin' => array($txt['smftrader_admin']), ), ), 'current_theme' => array( 'label' => $txt['theme_current_settings'], 
when it should be looking for:
Code: [Select]
//Begin SMF Trader System Text Strings

$helptxt['trader_approval'] = "
When checked: All ratings require approval before being posted unless they are in an autoapproved group found in permissions
<br /><br />
When unchecked: All ratings are auto approved since the ratings do not require approval.";

$helptxt['trader_use_pos_neg'] = "When enabled changes the trading count number to be a positive or negative figure based on the number of positive feedback minus the negative feedback. If it is a positive feedback number it results in a + (plus) in front of the number. If it is a negative feedback number results in a - (minus) in front the number.";

//END SMF Trader System Text Strings

please help, thank you.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: vbgamer45 on December 29, 2009, 08:27:07 PM
Those are two seperate files.

First one is from Sources/ManagePermissions.php

Second set is from Sources/Admin.php
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: Vyache on December 29, 2009, 08:34:18 PM
Those are two seperate files.

First one is from Sources/ManagePermissions.php

Second set is from Sources/Admin.php

I know they are 2 different files. The problem is when the uninstaller is looking for what to remove it is not looking in the wrong place. Please fix this issue.

SOLVED :D
Wrong version...
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: vbgamer45 on December 29, 2009, 08:38:05 PM
Code looks fine for me. The uninstaller uses the same code as the installer just reverses the edits
The portion for RC2 above
Code: [Select]

<file name="$sourcedir/ManagePermissions.php">
<operation>
<search position="before"><![CDATA[ $groupLevels['global']['standard'] = array_merge($groupLevels['global']['restrict'], array(]]></search>
<add><![CDATA[
'smftrader_feedback',
'smftrader_deletefeed',
'smftrader_autorating',]]></add>
</operation>

<operation>
<search position="before"><![CDATA[ $permissionList = array(
'membergroup' => array(]]></search>
<add><![CDATA[
'smftrader_feedback' => array(false, 'smftrader', 'smftrader'),
'smftrader_deletefeed' => array(false, 'smftrader', 'smftrader'),
'smftrader_autorating' => array(false, 'smftrader', 'smftrader'),]]></add>
</operation>
</file>
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: JayT on January 01, 2010, 02:18:51 PM
Trying to apply mod on a smf 1.1.11 forum, I get "Test Failed" for "Modifications.english.php"

should I tried applying anyway, then parse the mod.english file manually?
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: vbgamer45 on January 01, 2010, 02:21:08 PM
I would suggest that. It is easy to add the strings to that file.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: JayT on January 01, 2010, 02:23:53 PM
wow! thanks for the fast reply... i'll try it out, and post my results....
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: JayT on January 01, 2010, 02:42:19 PM
Worked like a champ! Thank you!

I had previously installed the twitter field mod... they messed up the mods.english file ans had some tab/space chars in front of the ?> at the end of the file. I assume, that this was why the test of the mod "failed".

Thanks!
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: vbgamer45 on January 01, 2010, 02:46:47 PM
Glad you got it working!
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: JayT on January 01, 2010, 03:10:41 PM
Fast response like these remove any doubt from purchasing your other mods... So, thank you...
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: vbgamer45 on January 01, 2010, 03:13:03 PM
Thanks I do my best
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: jeroenenagnes on January 13, 2010, 12:52:11 PM
Hi,

Is it possible (and how) to remove the Topic Url line?
It's not needed on my forum.


Jeroen.

Edit: removing line 204 - 207 in Trader.template.php removes the line but when i want to submit i get an error referring to line 232 of Trader.php
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: vbgamer45 on January 13, 2010, 07:35:48 PM
Fix the error on line Trader.php by default the topic url is required to remove you would need to modify Trader.php for the topicurl check
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: dillon on January 14, 2010, 01:58:02 PM
Love this mod!

How can I remove the trader count from under user name in posts and threads?

Thanks
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: Kindred on January 14, 2010, 02:42:07 PM
modify display.template.php
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: dillon on January 17, 2010, 10:49:10 PM
Thank you for your reply.  Can you (or anyone) tell me what edits I need to make?

Much Appreciated.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: vbgamer45 on January 28, 2010, 07:01:47 PM
Quick minor update
1.3.1
!Removed Queries from the templates
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: Nick Whetstone on January 28, 2010, 08:02:55 PM
Quick minor update
1.3.1
!Removed Queries from the templates


Great update-- should make moving around the trade count a bit simpler. Thanks :)
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: vbgamer45 on January 28, 2010, 08:04:14 PM
Yeah have a new strategy I am using for my new mods to put less code in templates.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: Nibogo on January 28, 2010, 09:00:58 PM
Quick minor update
1.3.1
!Removed Queries from the templates


Nice :)
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: exteeyou on January 30, 2010, 02:25:18 PM
I get an infinate looping error when i try to install this mod

      Apply Filter: Only show the error messages of this member  Savage
Apply Filter: Only show the error messages of this IP address 0.0.0.0
     Reverse chronological order of list Today at 03:19:39 PM
Apply Filter: Only show the error messages of this session 05c1f382b6a80c78e39f4e7deb41f3df
Apply Filter: Only show the errors of this type Type of error: General
Apply Filter: Only show the error messages of this URL
http://www.maineairsoft.com/forum/index.php?action=admin;area=packages;sa=install2;package=smftradersystem1.3.1.zip;pid=0
Apply Filter: Only show the errors with the same message
2: feof(): supplied argument is not a valid stream resource
Apply Filter: Only show the errors from this file
File: /home/??/public_html/forum/Sources/Subs-Package.php
Line: 2771
   Apply Filter: Only show the error messages of this member Savage
Apply Filter: Only show the error messages of this IP address 0.0.0.0
     Reverse chronological order of list Today at 03:19:39 PM
Apply Filter: Only show the error messages of this session 05c1f382b6a80c78e39f4e7deb41f3df
Apply Filter: Only show the errors of this type Type of error: General
Apply Filter: Only show the error messages of this URL
http://www.maineairsoft.com/forum/index.php?action=admin;area=packages;sa=install2;package=smftradersystem1.3.1.zip;pid=0
Apply Filter: Only show the errors with the same message
2: fread(): supplied argument is not a valid stream resource
Apply Filter: Only show the errors from this file
File: /home/??/public_html/forum/Sources/Subs-Package.php
Line: 2772


Not sure why - I have to stop and start Apache to end it, otherwise my error log fills up quick - 700,000 errors in a matter of minutes, all the same as above.  i get no errors during tests, so let me know what I need to do please.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: vbgamer45 on January 30, 2010, 07:12:56 PM
Checked those erros.

Those errors are releated to creating a full backup of your smf site each time a mod is installed or uninstalled

Part of Sources/Subs-Package.php
function package_create_backup($id = 'backup')
{


Could be either your backup is getting too large or not enough diskspace or a file was deleted while it was trying to backup and could not do it.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: raiko999 on February 01, 2010, 12:35:38 PM
For some reason, the trade count wont show up in a post, but I can see it when I click the profile. Im using 2.0 RC. What seems to be the problem?
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: vbgamer45 on February 01, 2010, 01:09:57 PM
 Do you have a custom theme? Also where there any install errors when installing the mod?
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: aw06 on February 07, 2010, 06:29:10 PM
Does the new version 1.3 have any other changes other than SMF 2.0 compatibility ? I'm using version 1.2

Having a slight prob, when feed-backs are verified the PM the user gets if they click it they get that an error had occurred..

And it would be great to see a summary page with users with top 10 feed-backs
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: vbgamer45 on February 07, 2010, 06:39:26 PM
Nothing else was added to it yet other than SMF RC 2.0 support
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: aw06 on February 07, 2010, 06:43:21 PM
ok, thanks
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: LondonDragon on February 14, 2010, 06:58:15 AM
Hi guys, I installed the trade system, just having to edit the admin file manually as it gave an error, but on the profile it doesn't display properly, under "Trade Count" its blank (see image), any ideas??

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg197.imageshack.us%2Fimg197%2F1452%2Fimage2ii.jpg&hash=f5975dba53ce7c5e0c313541684aaca7)

Thanks
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: vbgamer45 on February 14, 2010, 10:39:25 AM
What SMF version? Did you edit Profile.php manaually as well?
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: LondonDragon on February 14, 2010, 12:55:02 PM
What SMF version? Did you edit Profile.php manaually as well?

I have checked profile and its fine, it did update that file automatically but I doubled checked to make sure, it works fine under the user name on posts, just on the profile it doesn't display. I am running SMF 2.0 RC2, cheers
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: MordyT on February 15, 2010, 04:23:43 PM
Just a quick note:

Installed this and images do not show up in the profile. Further de-bugging shows that there is a missing "/" in front of the smiley file name...
See screenshot for more info.

If someone could tell me where to add this, I would appreciate it...

Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: Kindred on February 15, 2010, 04:29:41 PM
profile.template.php
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: vbgamer45 on February 15, 2010, 04:36:01 PM
What SMF version? Did you edit Profile.php manaually as well?

I have checked profile and its fine, it did update that file automatically but I doubled checked to make sure, it works fine under the user name on posts, just on the profile it doesn't display. I am running SMF 2.0 RC2, cheers
Fixed in 1.3.2 release


Just a quick note:

Installed this and images do not show up in the profile. Further de-bugging shows that there is a missing "/" in front of the smiley file name...
See screenshot for more info.

If someone could tell me where to add this, I would appreciate it...


Fixed in 1.3.2


Just released 1.3.2 update
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: LondonDragon on February 15, 2010, 05:26:54 PM
What SMF version? Did you edit Profile.php manaually as well?

I have checked profile and its fine, it did update that file automatically but I doubled checked to make sure, it works fine under the user name on posts, just on the profile it doesn't display. I am running SMF 2.0 RC2, cheers
Fixed in 1.3.2 release

Thanks for the update, but its still the same problem, I have manually edited all the files to ensure, according to the instructions for RC2, any more ideas? thanks
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: MordyT on February 15, 2010, 11:34:57 PM
profile.template.php

Perfect! Thanks!
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: LondonDragon on February 16, 2010, 03:19:34 AM
profile.template.php

Perfect! Thanks!
Is your Trade Count working on the profile? From the image on your previous post you had the same issue I did, cheers.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: Cutter65 on February 16, 2010, 09:44:12 AM
Great mod!

I am getting a error when I got to the trader settings in the admin panel.

This is the error.

/forum/index.php?action=admin;area=trader;sa=admin;sesc;b85d80b=429cd3942bc5f0cec301c58e4e2cb965
8: Undefined index: description
Apply Filter: Only show the errors from this file
File: /forum/Themes/default/GenericMenu.template.php
Line: 278

Line 278 in the GenericMenu.template.php has this on it.
<td class="smalltext" style="padding: 2ex;">', !empty($selected_tab['description']) ? $selected_tab['description'] : $tab_context['description'], '</td>

Im running SMF 2.0 RC1.2 with default theme and installed smftradersystem1.3.2

I hope someone knows how to fix this.

This is the error before I Disabled template evaluation.

File: /forum/cache/lang_Trader_english_default.php (generic_menu_dropdown_above sub template - eval?)

Thanks!
Cutter
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: MordyT on February 16, 2010, 11:43:21 AM
profile.template.php

Perfect! Thanks!
Is your Trade Count working on the profile? From the image on your previous post you had the same issue I did, cheers.
No it is not. Good catch...I thought it did? Any ideas?
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: LondonDragon on February 16, 2010, 12:11:02 PM
No it is not. Good catch...I thought it did? Any ideas?
Nope, I have tried a few things to try and mimic the post view coding but so far no luck :(
I wanted to get that working so that I could remove the one below the nickname on posts.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: Cutter65 on February 18, 2010, 05:47:00 AM
Great mod!

I am getting a error when I got to the trader settings in the admin panel.

This is the error.

/forum/index.php?action=admin;area=trader;sa=admin;sesc;b85d80b=429cd3942bc5f0cec301c58e4e2cb965
8: Undefined index: description
Apply Filter: Only show the errors from this file
File: /forum/Themes/default/GenericMenu.template.php
Line: 278

Line 278 in the GenericMenu.template.php has this on it.
<td class="smalltext" style="padding: 2ex;">', !empty($selected_tab['description']) ? $selected_tab['description'] : $tab_context['description'], '</td>

Im running SMF 2.0 RC1.2 with default theme and installed smftradersystem1.3.2

I hope someone knows how to fix this.

This is the error before I Disabled template evaluation.

File: /forum/cache/lang_Trader_english_default.php (generic_menu_dropdown_above sub template - eval?)

Thanks!
Cutter

Bump!

Anyone have any idea's on this error?

Cutter
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: vbgamer45 on February 18, 2010, 11:06:37 AM
New release fixes a couple bugs
And adds
1.4
+Better integration with SMF Classifieds (http://www.smfhacks.com/smf-classifieds.php)
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: Cutter65 on February 18, 2010, 11:44:14 AM
New release fixes a couple bugs
And adds
1.4
+Better integration with SMF Classifieds (http://www.smfhacks.com/smf-classifieds.php)

I installed the new version and it fixed the error I was getting!  ;D

Thank you VB for the update!
Cutter
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: vbgamer45 on February 18, 2010, 11:49:29 AM
Glad to help
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: LondonDragon on February 18, 2010, 04:44:21 PM
New release fixes a couple bugs
And adds
1.4
+Better integration with SMF Classifieds (http://www.smfhacks.com/smf-classifieds.php)

That worked a treat many thanks for all your hard work :)
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: vbgamer45 on February 18, 2010, 04:50:29 PM
Glad it helped!
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: Cutter65 on February 19, 2010, 08:46:11 PM
I'm getting this database error now when I approve a submission with 1.4.

Popup window read:
Unknown column 'm.timeOffset' in 'field list'
File: /forum/Sources/Trader2.php
Line: 704

Error Log Read:
Database Error: Unknown column 'm.timeOffset' in 'field list'
Apply Filter: Only show the errors from this file
File: /forum/Sources/Trader2.php
Line: 704

==>704:     WHERE  f.feedbackid  = $id LIMIT 1");

Cutter

Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: vbgamer45 on February 19, 2010, 08:48:36 PM
change TimeOffset to time_offset for SMF 2.0 will fix that
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: Cutter65 on February 20, 2010, 07:51:55 AM
change TimeOffset to time_offset for SMF 2.0 will fix that

That seems to have fixed it!  ;D

Thanks again for the help!

Cutter
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC2!
Post by: vbgamer45 on February 20, 2010, 07:50:38 PM
change TimeOffset to time_offset for SMF 2.0 will fix that

That seems to have fixed it!  ;D

Thanks again for the help!

Cutter
No problem just released an update to fix this issue.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: vbgamer45 on March 08, 2010, 07:17:50 PM
Release!
1.4.2
SMF 2.0 RC3 support
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: Nick Whetstone on March 08, 2010, 07:26:08 PM
Thanks, vbgamer. :) Still one of the best mods out there.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: Bugo on March 15, 2010, 04:36:28 AM
It seems that you forgot to add a line in smftrader2rc2.xml for Modifications.english *. php:
Code: [Select]
$txt['permissiongroup_simple_smftrader'] = 'SMF Trader';
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: Arantor on March 15, 2010, 08:13:05 AM
Bugo: If you omit the _simple version it should load the non simple version.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: vbgamer45 on March 15, 2010, 12:14:54 PM
It seems that you forgot to add a line in smftrader2rc2.xml for Modifications.english *. php:
Code: [Select]
$txt['permissiongroup_simple_smftrader'] = 'SMF Trader';
Fixed thanks
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: Arantor on March 15, 2010, 12:25:13 PM
Um, not a bug?
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: vbgamer45 on March 15, 2010, 12:25:58 PM
What I have seen in my mods at least up to RC2 was you needed both strings defined I forgot to add the simple version in this case.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: Arantor on March 15, 2010, 12:36:48 PM
You shouldn't need both in RC2+. I found a case in SimpleDesk where I had typo'd the _simple version but the language string was still listed by using the non _simple version.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: BrewserBrad on April 10, 2010, 01:21:21 AM
I am using SMF 1.1.11. When I use Classifieds and leave feedback I get an error - You must select a Classifieds listing that you have bid on or created to leave feedback for this user.

What does that mean? I am in the listing when I select leave feedback.
Please help.
Thanks.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: vbgamer45 on April 10, 2010, 10:03:02 AM
There is an option enabled inside the Classifieds mod called "Trader system feedback only after winning a listing or auction"

If that is checked  you can only leave feedback if the listing/auction is completed and you won the listing/auction.

If it isn't checked anyone can leave feedback at any time.
The reason you get that error is since there is no completed auction/listing there is listings listed in the dropdown menu to select to leave feedback on.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: aw06 on April 10, 2010, 10:17:45 AM
If i upgrade from 1.1.11 to 2.0RC then re-install back trader system will it retain all user ratings ?
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: vbgamer45 on April 10, 2010, 10:18:43 AM
Yes it will keep the ratings.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: Kermit on May 31, 2010, 12:37:57 PM
I don't know if i'm the only who has experienced such an issue,but the thing is when one member made a tradereview and after a while this account is deleted,then from that time on it's no more possible to see that review,which has been made by that deleted member

I think the problem line is here

Code: [Select]
WHERE f.ID_MEMBER = " . $context['traderid'] . " AND f.FeedBackMEMBER_ID = m.ID_MEMBER
especially this part

Code: [Select]
AND f.FeedBackMEMBER_ID = m.ID_MEMBER

PS: Only on 1.1.11, did not try on 2.0 RC3
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: vbgamer45 on June 05, 2010, 06:20:19 PM
I don't know if i'm the only who has experienced such an issue,but the thing is when one member made a tradereview and after a while this account is deleted,then from that time on it's no more possible to see that review,which has been made by that deleted member

I think the problem line is here

Code: [Select]
WHERE f.ID_MEMBER = " . $context['traderid'] . " AND f.FeedBackMEMBER_ID = m.ID_MEMBER
especially this part

Code: [Select]
AND f.FeedBackMEMBER_ID = m.ID_MEMBER

PS: Only on 1.1.11, did not try on 2.0 RC3
Fixed released new update

1.5
!Fix bug not showing reviews if a member deleted their account
!Fixed missing language string on delete rating added Short Comment
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: Siirist on July 19, 2010, 07:19:45 PM
Hello, :)

Simply didn't want to read through 24 pages of replies.  :(

Is this stand-alone, or do I need something else so members can buy and sell online?

Thanks in advance, ;)
Cloud 8)
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: vbgamer45 on July 19, 2010, 07:33:27 PM
This does not do like selling or buying of items. It is more of a feedback system for users to rate other users. Some people have like for sale boards on their forums and would use a system like this to sell items.

If you want selling items I have classifieds system that ties into the Trader System at
http://www.smfhacks.com/smf-classifieds.php
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: Cutter65 on July 23, 2010, 11:54:04 AM
Running 2.0 RC3 and trader 1.5 installed.

I get the following 2 errors in my error log each time I visit the trader settings in the admin area.

Anyone have any idea as to how to fix this issue? Happens with both custom theme and the default.

index.php?action=admin;area=trader;sa=admin;sesc;sa=admin;b684f0cf=2442c18dd0a18a1f6ca5b5b58ecf5cc5
8: Undefined offset: 119
File: /forum/Themes/default/Trader2.template.php
Line: 399

This is what on that line.
==>399:  <input type="checkbox" name="trader_approval" ' . ($modSettings['trader_approval'] ? ' checked="checked" ' : '') . ' />' . $txt['smftrader_trader_approval'] . ' <a href="', $scripturl, '?action=helpadmin;help=trader_approval" onclick="return reqWin(this.href);" class="help"><img src="', $settings['images_url'], '/helptopics.gif" alt="', $txt[119], '" align="top" /></a><br />

index.php?action=admin;area=trader;sa=admin;sesc;sa=admin;b684f0cf=2442c18dd0a18a1f6ca5b5b58ecf5cc5
8: Undefined offset: 119
File: /forum/Themes/default/Trader2.template.php
Line: 400

This is whats on that line.
==>400:  <input type="checkbox" name="trader_use_pos_neg" ' . ($modSettings['trader_use_pos_neg'] ? ' checked="checked" ' : '') . ' />' . $txt['trader_use_pos_neg'] . ' <a href="', $scripturl, '?action=helpadmin;help=trader_use_pos_neg" onclick="return reqWin(this.href);" class="help"><img src="', $settings['images_url'], '/helptopics.gif" alt="', $txt[119], '" align="top" /></a><br />

Thanks!
Cutter
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: vbgamer45 on July 23, 2010, 11:55:10 AM
$txt[119] is not defined in SMF 2 safe to ignore though
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: Cutter65 on July 23, 2010, 11:57:58 AM
$txt[119] is not defined in SMF 2 safe to ignore though

Roger!

Thanks for the quick reply!
Cutter
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: CMDCMD on July 23, 2010, 05:41:05 PM
Is there someone that got this in Swedish or exactly where is the files located that I can translate manualy? Please give me xact directorys and files so I know what to translate into Swedish from English.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: vbgamer45 on July 23, 2010, 05:44:41 PM
Themes/default/languages
trader.english.php
and
text added to modifications.english.php
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: CMDCMD on July 23, 2010, 06:26:47 PM
Thanks! :)
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: vbgamer45 on July 23, 2010, 06:57:59 PM
Glad to help
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: MoreBloodWine on August 28, 2010, 07:27:23 PM
Does the 2.0 RC3 version have all the custom mods you built in a custom version for me a few years back like approive comments and all that other stuff if you remember any of it ?
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: vbgamer45 on August 28, 2010, 08:29:46 PM
It should have it all. It has comment approval.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: venex on September 05, 2010, 05:18:17 AM
Awesome mod :D...

Just a question... is there anyway to just display the info (What it says "Trade Count:" in the profile in every post) in just certain boards? It's because I have a section in my forum dedicated to trade... and I would want it to be in that section only.

Thanks in advance :).
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: Kindred on September 05, 2010, 08:21:12 AM
you would have to add a conditional in the code which is added to display.template.php
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: venex on September 05, 2010, 02:53:33 PM
you would have to add a conditional in the code which is added to display.template.php
Thanks for the answer,

I'm not good at all with PHP so I have no idea what to add... can you help me out with the code and just guide me where to put it and I'll do it.. That will help me a lot.

PS: I just received and PM from one of my users saying that he was trading with another user and the other user stole him 50 dollars.. so with that, I really want to put this (but just in that section) so this won't happen again.

Thank you.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: vbgamer45 on September 05, 2010, 05:19:12 PM

Code: [Select]
global $board;

if ($board == '#boardidhere')
{
// Show trade count
}
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: venex on September 15, 2010, 01:32:53 AM

Code: [Select]
global $board;

if ($board == '#boardidhere')
{
// Show trade count
}
Thanks a lot and sorry for the lateness haha...

just one more question and I'll give you peace for the rest of the topic hahaha...

Do I have to replace, add next, add previous anything?? or I just add it anywhere in the display.template.php??

Thanks!
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: vbgamer45 on September 15, 2010, 01:34:50 AM
You just add replace with your board id and just add the code in the display.template.php wher eyou want it to show up look for trade count in that code for an idea.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: venex on September 15, 2010, 10:51:15 PM
Thanks a lot!!! =D
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: Pandos on September 22, 2010, 08:21:44 AM
Thanks for this nice Mod.
Is it possible to display the tradecount in Postings only for Members in additional_groups (e.g. 95)?
By default viewing it is enabled for everyone.

Thanks
Sven
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: Kindred on September 22, 2010, 10:00:38 AM
modify display.template.php and add a conditional just before the display call...   I have mine modified so that it only shows the tradecount if tradecount <> 0
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: Pandos on September 22, 2010, 10:15:52 AM
I've tried with the following that is working:


Code: [Select]
if ($context['user']['is_logged'])

But my wish is to how it only to certain additional_groups.


Thanks in advance


Sven
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: Kindred on September 22, 2010, 10:26:31 AM
the data is stored in: $context['user']['groups']

so....
Code: [Select]
if (in_array(9, $user_info['groups']))

-edit- corrected array name
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: Pandos on September 22, 2010, 10:37:49 AM
This is not working. Only Admins/Globals now can see the link. 
The desired group is an additional group.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: Pandos on September 24, 2010, 07:48:58 AM
Some other ideas?

Thx

Sven
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: Kindred on September 24, 2010, 10:02:40 AM
well, obviously, you have to use the correct number for the group, in place of the "9"
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: Pandos on September 24, 2010, 10:22:31 AM
The number of the desired additional group is 95. So when i use it, only Globals and Admin can see the link. But group_id is not additional group.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: Kindred on September 24, 2010, 10:40:52 AM
but the array for GROUPS doesn't care if it's the primary or an additional group.
(when I look at the array, I see that my account is part of 8 different groups.

the first one in the list is the primary group....

    [groups] => Array
        (
           
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: darkspreader on September 29, 2010, 04:03:34 PM
Is there a way to disable PM notification? I've been looking through the code but I can't figure it out.

Thanks in advance.

Edit: Is this what I have to remove in Trader.php?

Code: [Select]
function SendTraderPMByID($id)
{
global $db_prefix, $sourcedir, $txt, $scripturl;

$request = db_query("
SELECT
m.realName, f.comment_short, f.ID_MEMBER
FROM
({$db_prefix}feedback AS f, {$db_prefix}members as m)
WHERE f.FeedBackMEMBER_ID = m.ID_MEMBER AND f.feedbackid  = $id LIMIT 1", __FILE__, __LINE__);


$row = mysql_fetch_assoc($request);

mysql_free_result($request);


$pm_register_recipients = array(
'to' => array($row['ID_MEMBER']),
'bcc' => array(),
);

require_once($sourcedir . '/Subs-Post.php');

sendpm($pm_register_recipients, $txt['smftrader_newrating'], $row['comment_short'] .  "\n\n" . $txt['smftrader_commentmadeby'] . $row['realName'] . "\n" . "{$scripturl}?action=profile");

}

Edit2: Found that when I went to submit new ratings, there was a PHP error that SendTraderPMByID was undefined or something, so I went back into Trader.php, looked for SendTraderPMByID, then removed the whole line that it was in, and it seems to be working now.

Can anyone confirm that this is the right way to disable PM notifications? I'm not really a pro at PHP, just really good at copying and pasting, lol.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: vbgamer45 on September 29, 2010, 04:10:49 PM
Just remove
Code: [Select]
   sendpm($pm_register_recipients, $txt['smftrader_newrating'], $row['comment_short'] .  "\n\n" . $txt['smftrader_commentmadeby'] . $row['realName'] . "\n" . "{$scripturl}?action=profile");
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: darkspreader on September 29, 2010, 05:31:21 PM
Thanks!

I have one last question. I would like to display the member's trade count in a PHP block in Tinyportal. I took the code from profile.template.php and edited it a little to get this:

Code: [Select]
<b><a href="' . $scripturl .  '?action=trader&id=' . $context['member']['id'] . '">' . $txt['smftrader_profile'] . ' (' . ($modSettings['trader_use_pos_neg'] ? ($tradecount > 0 ? '+' . $tradecount : $tradecount)  : $tradecount) . ')</a></b>
However, when it shows up on the block, the number inside the parentheses is missing, and when I click on the link, the member ID is missing from the link. What can I do to fix this?
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: venex on October 02, 2010, 03:26:32 PM
Any ideas why when I install this MOD it hides the comments on the profiles of users??

The MOD i use for the comments is this one: http://custom.simplemachines.org/mods/index.php?mod=436
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: vbgamer45 on October 02, 2010, 03:40:38 PM
Probably because they both modify the same code
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: venex on October 02, 2010, 05:17:34 PM
Probably because they both modify the same code
Any way to have them both?
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: vbgamer45 on October 02, 2010, 05:20:07 PM
Yeah you would have to install one and then install the other and then look in the code for profile.template.php and see where the conflict is
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: BlownShovel on October 03, 2010, 06:35:54 AM
SMF 1.1.11
Trader System 1.2

The fellow helping us with mySQL was looking at DB connections and performance and noticed that trader feedback board has
its own DB table and the table is MyISAM.

We are thinking we should change that to InnoDB like the others as long as there is no requirements that it be myISAM 

It appeared to have a lot of table locks earlier in the day.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: vbgamer45 on October 03, 2010, 11:21:01 AM
It probably won't make much of a difference that table isn't queried that much.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: BlownShovel on October 03, 2010, 11:46:53 AM
Thanks for the feedback.  I think we will make the change to be consistent with our other tables.  I just didn't want to break anything by changing it.  I'll let the DB guy know.  Thanks
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: venex on October 03, 2010, 01:49:04 PM
the conflict is in Trader2.php =/
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: vbgamer45 on October 03, 2010, 02:21:20 PM
Trader2.php no other script should modify that code.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: darkspreader on October 04, 2010, 10:42:46 PM
Thanks!

I have one last question. I would like to display the member's trade count in a PHP block in Tinyportal. I took the code from profile.template.php and edited it a little to get this:

Code: [Select]
<b><a href="' . $scripturl .  '?action=trader&id=' . $context['member']['id'] . '">' . $txt['smftrader_profile'] . ' (' . ($modSettings['trader_use_pos_neg'] ? ($tradecount > 0 ? '+' . $tradecount : $tradecount)  : $tradecount) . ')</a></b>
However, when it shows up on the block, the number inside the parentheses is missing, and when I click on the link, the member ID is missing from the link. What can I do to fix this?
Do you have any idea on this? I noticed that when I go to the actual trader information page, the link works fine, and the number shows up as well. Anywhere but that, it doesn't show.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: vbgamer45 on October 04, 2010, 10:44:10 PM
Well $context['member']['id']   and $tradecount are not set in your portal block you need to fill hose in there is a call in Trader.php to get the tradercount by member id so you need to place the member id.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: darkspreader on October 04, 2010, 11:02:34 PM
Sorry, but how would I go about doing this? I'm not the best in PHP. :P
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: superjugadores on October 24, 2010, 01:46:33 AM
Ok this is driving me nuts right now... i have a couple of hours trying to give my moderators permission to approve/unnaprove feedbacks.

Is there a way to code something like "give user id=34 permission to approve feedbacks".

Common guys i't can't be that hard...
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: aw06 on October 26, 2010, 05:27:15 PM
Where can i find and edit the message that gets sent after a users feedback has been approved ..
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: vbgamer45 on October 26, 2010, 06:04:34 PM
In Trader.english.php
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: eyo on November 25, 2010, 07:54:53 PM
will this work with rc4? im getting a warning when i install

"Execute Modification    ./Themes/default/Display.template.php    Test failed"

i also get this with some of the rc4 compatible mods out there as well. anyone know what's wrong before i accidentally wipe out my forum again? lol

ty guys. smf is awesome.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: vbgamer45 on November 25, 2010, 08:05:49 PM
Yes it should work with RC4 if you have error on that file. Please make the change to that file manually.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: eyo on November 25, 2010, 08:16:27 PM
im embarrassed to ask but, how do i start doing the manual file change? really new to this all. ty
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: vbgamer45 on November 26, 2010, 08:59:21 PM
Go to the mod's page http://mods.simplemachines.org/index.php?mod=346
Then there is a link to get manual install instructions select your SMF version then follow the file edits that the site gives.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: aw06 on January 06, 2011, 10:43:22 PM
In Trader.english.php

Here is the problem i am having ... when a feedback is sent the message the user gets reads ...

Quote
This is a Feedback

Comment made by: User
http://xxxx.com/forum/index.php?action=profile

Is the link really suppose to point to http://xxxx.com/forum/index.php?action=profile ??
How can i make it point to the actual trader page of the person

eg. http://xxxx.com/forum/index.php?action=trader&id=27 ... 27 being the member number
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: vbgamer45 on January 06, 2011, 10:49:36 PM
Yes it goes to their profile so they can see what members left on it.
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: aw06 on January 06, 2011, 10:54:15 PM
Yes it goes to their profile so they can see what members left on it.

So not possible to have it point directly to the persons trader page ??

Problem is i have Titled Links installed and it changes the link to the profile ... so the message actually reads..

Quote
Comment made by: User
An Error has Occurred

Any Idea how i can fix ?
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: vbgamer45 on January 06, 2011, 11:35:39 PM
Quote
So not possible to have it point directly to the persons trader page ??
You could just you would have to change the code
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: aw06 on January 07, 2011, 12:02:47 AM
Quote
So not possible to have it point directly to the persons trader page ??
You could just you would have to change the code

ok, if not too much trouble, can you advise me on which code to change ... 8)
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: aw06 on January 07, 2011, 06:40:49 PM
Also .. if i upgrade from 1.1.12 to 2.0 how can i retain all the feedbacks ??
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: vbgamer45 on January 07, 2011, 09:21:10 PM
On upgrade all feedback are saved in the database so its safe
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: aw06 on January 07, 2011, 11:23:10 PM
On upgrade all feedback are saved in the database so its safe

OK kool :P

any info with this

Quote
So not possible to have it point directly to the persons trader page ??
You could just you would have to change the code

ok, if not too much trouble, can you advise me on which code to change ... 8)
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: vbgamer45 on January 07, 2011, 11:42:09 PM
It would be in Sources/ProfilesComments.php
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: aw06 on January 09, 2011, 09:13:48 AM
It would be in Sources/ProfilesComments.php

I have no such file in Sources  :-\ and what would i change ??
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: vbgamer45 on January 09, 2011, 09:49:46 AM
I am sorry meant Trader.php
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: aw06 on January 09, 2011, 10:43:34 AM
I am sorry meant Trader.php

and what page do i point it to get a persons trader page..

action=trader&id=?

What do i put for the trade id ???
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: vbgamer45 on January 09, 2011, 01:55:13 PM
id is the member's id
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: aw06 on January 09, 2011, 02:05:14 PM
id is the member's id

Yeah but how do i enter the url so that it will go the the member that will click ...
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: vbgamer45 on January 09, 2011, 02:14:27 PM
Use $ID_MEMBER or $user_info['id']
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: aw06 on January 09, 2011, 03:11:42 PM
Use $ID_MEMBER or $user_info['id']

How ???

action=trader&$user_info['id']
action=trader&$ID_MEMBER

Have to see with me .. not quite sure ?  :-[
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: impreza on January 09, 2011, 03:14:24 PM
Cool addition
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: kodbg on January 19, 2011, 04:12:31 AM
Hi,
I need some help with some coding. In the display template, I only want the trader info to show up if it's in a certain board.
I couldn't figure it out. :(

// Show the trader info
            echo '
               <b>' . $txt['smftrader_profile'] . ' </b>
               (<a href="' . $scripturl .  '?action=trader&id=' . $message['member']['id'] . '">', $modSettings['trader_use_pos_neg'] ? ($tradecount > 0 ? '+' . $tradecount : $tradecount)  : $tradecount  , '</a>)<br />';

Before this, i need something like:
if ($board['id'] == '53')
or
if ($category['id'] = '6')

Oops, i'm done:
global $board;
 if ($board == '53' || $board == '73')
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: aw06 on January 21, 2011, 06:43:37 PM
Use $ID_MEMBER or $user_info['id']

How ???

action=trader&$user_info['id']
action=trader&$ID_MEMBER

Have to see with me .. not quite sure ?  :-[

Any Help with this ???
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: vbgamer45 on January 28, 2011, 04:27:54 PM
1.6
!Do not show listings in submit feedback if already rated the listing - SMF Classifieds
integration
!Do not show the submit feedback link for yourself
!Do not ask for short topic url if classifieds option says you require to select a listing
 - SMF Classifieds integration
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: hcfwesker on January 29, 2011, 03:45:16 PM
Is there any chance there could be a linked page that could have the list of all members with feedback, from highest to lowest.  Kinda like the shop MOD, with the richest members?

Also, can a members feedback table in the regular profile, be added to ultimate profiles?
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: aw06 on February 14, 2011, 07:16:18 AM
I am sorry meant Trader.php

Yes it goes to their profile so they can see what members left on it.

Use $ID_MEMBER or $user_info['id']

Here is my Trader.php,.. Can you add so that a link to the members trader page is sent and not a link to their profile..

Code: [Select]
<?php
/*
SMF Trader System
Version 1.2
by:vbgamer45
http://www.smfhacks.com
*/

if (!defined('SMF'))
die('Hacking attempt...');

function 
tradermain()
{
loadtemplate('Trader');

// Load the language files
if (loadlanguage('Trader') == false)
loadLanguage('Trader','english');

// Trader actions
$subActions = array(
'main' => 'main',
'report' => 'Report',
'report2' => 'Report2',
'submit' => 'Submit',
'detail' => 'ViewDetail',
'delete' => 'Delete',
'delete2' => 'Delete2',
'submit2' => 'Submit2',
'admin' => 'AdminSettings',
'admin2' => 'AdminSettings2',
'approve' => 'ApproveRating',
'bulkactions' => 'BulkActions',
);

@$sa $_GET['sa'];

// Follow the sa or just go to administration.
if (!empty($subActions[$sa]))
$subActions[$sa]();
else
$subActions['main']();
}
function 
main()
{
global $context$txt$db_prefix$scripturl$modSettings;

$context['sub_template']  = 'main';

@$memid = (int) $_REQUEST['id'];

if (empty($memid))
fatal_error($txt['smftrader_nomemberselected'], false);

$request db_query("
SELECT 
realName FROM 
{$db_prefix}members
WHERE ID_MEMBER = 
$memid LIMIT 1"__FILE____LINE__);
$row mysql_fetch_assoc($request);

$mcount db_affected_rows();

if ($mcount != 1)
fatal_error($txt['smftrader_nomemberselected'], false);

$context['traderid'] = $memid;
$context['tradername'] = $row['realName'];


db_query("
SELECT 
feedbackid 
FROM 
{$db_prefix}feedback 
WHERE approved = 1 AND ID_MEMBER =" 
$context['traderid'], __FILE____LINE__);
$context['tradecount'] = db_affected_rows();



$result db_query("
SELECT 
COUNT(*) AS total,salevalue 
FROM 
{$db_prefix}feedback 
WHERE approved = 1 AND ID_MEMBER = " 
$context['traderid'] . " GROUP BY salevalue" __FILE____LINE__);
$context['neturalcount'] = 0;
$context['pcount'] = 0;
$context['ncount'] = 0;
while($row mysql_fetch_assoc($result))
{
if ($row['salevalue'] == 0)
{
$context['pcount'] = $row['total'];
}
else if ($row['salevalue'] == 2)
{
$context['ncount'] = $row['total'];
}
else if ($row['salevalue'] == 1)
{
$context['neturalcount'] = $row['total'];
}

}
mysql_free_result($result);

$context['tradecount_nonetural'] = ($context['pcount'] +  $context['ncount']);

// Get the view type
@$view = (int) $_GET['view'];
if (empty($view))
$view 0;


$queryextra '';
switch($view)
{
case 0:
$queryextra '';
break;
case 1:
$queryextra ' AND f.saletype = 1';

break;
case 2:
$queryextra ' AND f.saletype = 0';
break;
case 3:
$queryextra ' AND f.saletype = 2';

break;
default:
fatal_error($txt['smftrader_invalidview'], false);
break;
}


$context['start'] = (int) $_REQUEST['start'];


$dbresult db_query("
SELECT 
COUNT(*) AS total 
FROM 
{$db_prefix}feedback AS f,{$db_prefix}members AS m 
WHERE f.ID_MEMBER = " 
$context['traderid'] . " AND f.FeedBackMEMBER_ID = m.ID_MEMBER  AND f.approved = 1 $queryextra "__FILE____LINE__);
$row mysql_fetch_assoc($dbresult);
$total $row['total'];
mysql_free_result($dbresult);

$dbresult db_query("
SELECT 
f.saletype, f.feedbackid, f.FeedBackMEMBER_ID,  f.topicurl, 
f.comment_short, f.salevalue, f.saledate, m.realName 
FROM 
{$db_prefix}feedback AS f,{$db_prefix}members AS m 
WHERE f.ID_MEMBER = " 
$context['traderid'] . " AND f.FeedBackMEMBER_ID = m.ID_MEMBER  AND f.approved = 1 $queryextra ORDER BY f.feedbackid DESC LIMIT $context[start]," $modSettings['trader_feedbackperpage'], __FILE____LINE__);
$context['trader_feedback'] = array();
while ($row mysql_fetch_assoc($dbresult))
{
$context['trader_feedback'][] = $row;
}
mysql_free_result($dbresult);

$context['page_index'] = constructPageIndex($scripturl '?action=trader;id=' $context['traderid'] . ';view=' $view $_REQUEST['start'], $total$modSettings['trader_feedbackperpage']);



// Set the page title
$context['page_title'] = $txt['smftrader_feedbacktitle'] . ' - ' $row['realName'];


}
function 
Submit()
{
global $context$txt$db_prefix$ID_MEMBER;

is_not_guest();

// Check if they are allowed to submit feedback
isAllowedTo('smftrader_feedback');


$context['sub_template']  = 'submit';

@$memid = (int) $_GET['id'];

if (empty($memid))
fatal_error($txt['smftrader_nomemberselected'],false);

$request db_query("
SELECT 
realName FROM 
{$db_prefix}members
WHERE ID_MEMBER = 
$memid LIMIT 1"__FILE____LINE__);
$row mysql_fetch_assoc($request);

$mcount db_affected_rows();

if ($mcount != 1)
fatal_error($txt['smftrader_nomemberselected'],false);

if ($ID_MEMBER == $memid)
fatal_error($txt['smftrader_errfeedbackself'] ,false);

$context['traderid'] = $memid;
$context['tradername'] = $row['realName'];


$context['page_title'] = $txt['smftrader_submittitle'] . ' - ' $row['realName'];

}
function 
Submit2()
{
global $db_prefix$ID_MEMBER$txt$modSettings;

is_not_guest();

// Check if they are allowed to submit feedback
isAllowedTo('smftrader_feedback');


// Get the trader id
$traderid = (int) $_REQUEST['id'];


if ($ID_MEMBER == $traderid)
fatal_error($txt['smftrader_errfeedbackself'] ,false);

// Check if comment posted
$shortcomment htmlspecialchars(substr($_REQUEST['shortcomment'], 0100),ENT_QUOTES);

if ($shortcomment== '')
fatal_error($txt['smftrader_errshortcoment'],false);


$topicurl htmlspecialchars($_REQUEST['topicurl'],ENT_QUOTES);
$salevalue = (int) $_REQUEST['salevalue'];
$saletype = (int) $_REQUEST['saletype'];
$longcomment htmlspecialchars($_REQUEST['longcomment'],ENT_QUOTES);
switch($saletype)
{
case 0:
break;

case 1:
break;

case 2:

break;

default:
fatal_error($txt['smftrader_errsaletype'],false);
break;
}
switch($salevalue)
{
case 0:
break;

case 1:
break;

case 2:
break;

default:
fatal_error($txt['smftrader_errsalevalue'],false);
break;
}

// Get the date
$tradedate time();



// Get the approval
if ($modSettings['trader_approval'] == 1)
{
$approval = (allowedTo('smftrader_autorating') ? 0);
}
else 
$approval 1;

// Admin's always approved
if (allowedTo('admin_forum'))
$approval 1;

// Finally Insert it into the db
db_query("INSERT INTO {$db_prefix}feedback
(ID_MEMBER, comment_short, comment_long, topicurl, saletype, salevalue, saledate, FeedBackMEMBER_ID, approved)
VALUES (
$traderid, '$shortcomment', '$longcomment', '$topicurl',$saletype$salevalue$tradedate$ID_MEMBER,$approval)"__FILE____LINE__);

$id db_insert_id();

if ($approval == 1)
{

SendTraderPMByID($id);



redirectexit('action=trader;id=' $traderid);
}
else
fatal_error($txt['smftrader_form_notapproved'], false);

}
function 
Report()
{
global $context$txt$db_prefix;

is_not_guest();

$context['sub_template']  = 'report';

@$feedid = (int) $_GET['feedid'];
if (empty($feedid))
fatal_error($txt['smftrader_errnofeedselected'], false);

$context['feedid'] = $feedid;


$context['page_title'] = $txt['smftrader_reporttitle'];
}
function 
Report2()
{
global $db_prefix$ID_MEMBER$webmaster_email$sourcedir$scripturl$txt$sourcedir$modSettings;

include $sourcedir '/Subs-Post.php';

is_not_guest();

@$comment htmlspecialchars($_REQUEST['comment'],ENT_QUOTES);

if ($comment == '')
fatal_error($txt['smftrader_errnocomment'], false);

// Add link to trader to comment field.
@$feedid = (int) $_REQUEST['feedid'];

$result "
SELECT f.saletype, f.feedbackid, f.ID_MEMBER, f.FeedBackMEMBER_ID, f.comment_short,
f.topicurl, f.comment_long, f.salevalue, f.saledate, m.realName
FROM 
{$db_prefix}feedback AS f,{$db_prefix}members AS m
WHERE f.feedbackid = 
$feedid AND f.FeedBackMEMBER_ID = m.ID_MEMBER";

$dbresult db_query($result__FILE____LINE__);
$row mysql_fetch_assoc($dbresult);
mysql_free_result($dbresult);
$comment .= "\n"  $txt['smftrader_commentmadeby'] . '[url=' $scripturl '?action=profile;u=' $row['FeedBackMEMBER_ID'] . ']' $row['realName'] . '[/url]';
$comment .= "\n\n" '[url=' $scripturl '?action=trader;id=' $row['ID_MEMBER'] . ']' $txt['smftrader_viewtrader'] . '[/url]';


$comment .= "\n\n" $txt['smftrader_title'];


require_once($sourcedir '/Subs-Post.php');
$dbresult db_query("
SELECT 
m.ID_MEMBER 
FROM 
{$db_prefix}membergroups AS g,{$db_prefix}members AS m 
WHERE m.ID_GROUP = g.ID_GROUP AND m.ID_GROUP IN (" 
$modSettings['trader_membergroupspm'] . ")"__FILE____LINE__);
while($row2 mysql_fetch_assoc($dbresult))
{
$pm_register_recipients = array(
'to' => array($row2['ID_MEMBER']),
'bcc' => array(),
);



sendpm($pm_register_recipients,$txt['smftrader_title'] . ' ' $txt['smftrader_badfeedback'],$comment);
}
mysql_free_result($dbresult);

//if (!sendmail($webmaster_email, $txt['smftrader_title'] . ' ' . $txt['smftrader_badfeedback'],$comment))
// fatal_error($txt['smftrader_failedreport'],false);

redirectexit('action=trader;id=' $row['ID_MEMBER'] );
}
function 
ViewDetail()
{
global $context$db_prefix$txt;


$context['sub_template']  = 'detail';

@$feedid = (int) $_REQUEST['feedid'];
if (empty($feedid))
fatal_error($txt['smftrader_errnofeedselected'], false);

$context['page_title'] = $txt['smftrader_title'] . ' - ' $txt['smftrader_detailedfeedback'] ;
$context['feedid'] = $feedid;


$result "
SELECT 
f.saletype, f.feedbackid, f.ID_MEMBER, f.FeedBackMEMBER_ID, f.topicurl, 
f.comment_long, f.salevalue, f.saledate, m.realName 
FROM 
{$db_prefix}feedback AS f,{$db_prefix}members AS m 
WHERE f.feedbackid = " 
$context['feedid'] . " AND f.FeedBackMEMBER_ID = m.ID_MEMBER";

$dbresult db_query($result__FILE____LINE__);
$row mysql_fetch_assoc($dbresult);
mysql_free_result($dbresult);

$context['trading_detail'] = $row;

}
function 
Delete()
{
global $context$db_prefix$txt;

// Check if they are allowed to delete feedback
isAllowedTo('smftrader_deletefeed');

@$feedid = (int) $_REQUEST['feedid'];
if (empty($feedid))
fatal_error($txt['smftrader_errnofeedselected'], false);

$context['feedid'] = $feedid;

$context['sub_template']  = 'delete';
$context['page_title'] = $txt['smftrader_title'] . ' - ' $txt['smftrader_deletefeedback'];

$result "SELECT f.saletype, f.feedbackid, f.ID_MEMBER, f.FeedBackMEMBER_ID, 
f.comment_short,  f.topicurl, f.comment_long, f.salevalue, f.saledate, m.realName 
FROM 
{$db_prefix}feedback AS f,{$db_prefix}members AS m 
WHERE f.feedbackid = " 
$context['feedid'] . " AND f.FeedBackMEMBER_ID = m.ID_MEMBER";

$dbresult db_query($result__FILE____LINE__);
$row mysql_fetch_assoc($dbresult);
mysql_free_result($dbresult);

$context['trader_feedback'] = $row;


}
function 
Delete2()
{
global $context,  $txt;

// Check if they are allowed to delete feedback
isAllowedTo('smftrader_deletefeed');

@$feedid = (int) $_REQUEST['feedid'];
if (empty($feedid))
fatal_error($txt['smftrader_errnofeedselected'],false);

@$redirectid = (int) $_REQUEST['redirect'];
if (empty($redirectid))
fatal_error($txt['smftrader_notrader'], false);

DeleteByID($feedid);


redirectexit('action=trader;id=' $redirectid);
}
function 
AdminSettings()
{
global $context$txt,  $mbname$db_prefix$scripturl;

isAllowedTo('admin_forum');

adminIndex('trader_settings');

$context['page_title'] = $mbname ' - ' $txt['smftrader_title'] . ' - ' $txt['smftrader_text_settings'];
$context['sub_template']  = 'settings';


$context['start'] = (int) $_REQUEST['start'];


$dbresult db_query("
SELECT 
COUNT(*) AS total 
FROM 
{$db_prefix}feedback 
WHERE approved = 0"
__FILE____LINE__);
$row mysql_fetch_assoc($dbresult);
$total $row['total'];
mysql_free_result($dbresult);

$dbresult db_query("
SELECT 
f.saletype, f.feedbackid, f.FeedBackMEMBER_ID,  f.topicurl, f.comment_short,
f.salevalue, f.saledate, m.realName, f.ID_MEMBER, u.realName mainName 
FROM (
{$db_prefix}feedback AS f)
LEFT JOIN 
{$db_prefix}members AS m ON (f.FeedBackMEMBER_ID = m.ID_MEMBER)
LEFT JOIN 
{$db_prefix}members AS u ON (f.ID_MEMBER= u.ID_MEMBER)
WHERE f.approved = 0 LIMIT 
$context[start],10"__FILE____LINE__);

$context['trader_appoval'] = array();

while ($row mysql_fetch_assoc($dbresult))
{
$context['trader_appoval'][] = $row;
}
mysql_free_result($dbresult);

$context['page_index'] = constructPageIndex($scripturl '?action=trader;sa=admin' $_REQUEST['start'], $total10);

}
function 
AdminSettings2()
{
global $db_prefix;

isAllowedTo('admin_forum');

$trader_approval =  isset($_REQUEST['trader_approval']) ? 0;
$trader_use_pos_neg = isset($_REQUEST['trader_use_pos_neg']) ? 0;
$trader_feedbackperpage = (int) $_REQUEST['trader_feedbackperpage'];

updateSettings(
array(
'trader_approval' => $trader_approval,
'trader_feedbackperpage' => $trader_feedbackperpage,
'trader_use_pos_neg' => $trader_use_pos_neg,

));

redirectexit('action=trader;sa=admin');
}
function 
ApproveRating()
{
global $db_prefix;

isAllowedTo('admin_forum');

$id = (int) $_REQUEST['id'];


ApproveByID($id);

redirectexit('action=trader;sa=admin');
}
function 
SendTraderPMByID($id)
{
global $db_prefix$sourcedir$txt$scripturl;

$request db_query("
SELECT
 m.realName, f.comment_short, f.ID_MEMBER
FROM 
(
{$db_prefix}feedback AS f, {$db_prefix}members as m)
WHERE f.FeedBackMEMBER_ID = m.ID_MEMBER AND f.feedbackid  = 
$id LIMIT 1"__FILE____LINE__);


$row mysql_fetch_assoc($request);

mysql_free_result($request);


$pm_register_recipients = array(
'to' => array($row['ID_MEMBER']),
'bcc' => array(),
);

require_once($sourcedir '/Subs-Post.php');

sendpm($pm_register_recipients$txt['smftrader_newrating'], $row['comment_short'] .  "\n\n" $txt['smftrader_commentmadeby'] . $row['realName'] . "\n" "{$scripturl}?action=profile");

}

function 
BulkActions()
{
isAllowedTo('admin_forum');

if (isset($_REQUEST['ratings']))
{

$baction $_REQUEST['doaction'];

foreach ($_REQUEST['ratings'] as $value)
{

if ($baction == 'approve')
ApproveByID($value);
if ($baction == 'delete')
DeleteByID($value);

}
}

// Redirect to approval list
redirectexit('action=trader;sa=admin');
}

function 
DeleteByID($id)
{
global $db_prefix;

// Delete the comment
db_query("
DELETE FROM 
{$db_prefix}feedback
WHERE feedbackid = 
$id"__FILE____LINE__);
}
function 
ApproveByID($id)
{
global $db_prefix;

db_query("UPDATE {$db_prefix}feedback
SET approved = 1
WHERE feedbackid = 
$id LIMIT 1"__FILE____LINE__);

SendTraderPMByID($id);

SendCommenterPMByID($id);
}


function 
SendCommenterPMByID($id)
{
global $db_prefix$sourcedir$txt$scripturl;

$request db_query("
SELECT
 m.realName, f.comment_short, f.ID_MEMBER,f.FeedBackMEMBER_ID, u.realName MainName, m.timeOffset 
FROM 
(
{$db_prefix}feedback AS f)

LEFT JOIN 
{$db_prefix}members as m ON (f.FeedBackMEMBER_ID = m.ID_MEMBER)
LEFT JOIN 
{$db_prefix}members as u ON (f.ID_MEMBER = u.ID_MEMBER)

WHERE  f.feedbackid  = 
$id LIMIT 1"__FILE____LINE__);


$row mysql_fetch_assoc($request);

mysql_free_result($request);


$pm_register_recipients = array(
'to' => array($row['FeedBackMEMBER_ID']),
'bcc' => array(),
);

require_once($sourcedir '/Subs-Post.php');

$finaltime timeformat(forum_time(false));
$finaltime strip_tags($finaltime);

sendpm($pm_register_recipientssprintf($txt['smftrader_commenter_subject'],$row['MainName']), 
sprintf($txt['smftrader_commenter_body'],$row['MainName'],$finaltime));

}
?>
Title: Re: SMF Trader System (1.3 Released) Now Supports SMF 2.0 RC3!
Post by: aw06 on February 17, 2011, 12:52:55 AM
vbgamer45 i want to change the message that is send via pm

From
Quote
Comment made by: User
Link to Profile

To
Quote
Comment made by: User
Please log onto your Profile Page to view all new Feedbacks

Can you help me
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: vbgamer45 on February 17, 2011, 09:42:13 AM
Check the Trader.english.php file to change
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: aw06 on February 17, 2011, 10:27:48 AM
Check the Trader.english.php file to change

Yes but how do i stop it from putting the link to the profile .. ??

The link comes up with an error , so i want to remove the link..
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: vbgamer45 on February 17, 2011, 10:44:47 AM
Have to edit Sources/Trader.php
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: aw06 on February 17, 2011, 10:54:45 AM
Have to edit Sources/Trader.php

I have no clue what line to erase  :-[
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: vbgamer45 on February 17, 2011, 10:57:13 AM
Search the language text string and look code line by line to figure it out.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: imatt87 on February 18, 2011, 01:37:11 PM
How do i change the text from  SMF Trader System - Submit Feedback to Ace Reptiles Trader System - Submit Feedback
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: vbgamer45 on February 18, 2011, 01:44:18 PM
Modify themes/default/languages/trader.english.php
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: imatt87 on February 18, 2011, 01:53:49 PM
Modify themes/default/languages/trader.english.php

What do i need to change ?

<?php
/*
SMF Trader System
Version 1.4
by:vbgamer45
http://www.smfhacks.com
*/

$txt['smftrader_rating'] = 'Rating';
$txt['smftrader_comment'] = 'Comment';
$txt['smftrader_from'] = 'From';
$txt['smftrader_to'] = 'To';
$txt['smftrader_detail'] = 'Detail';
$txt['smftrader_date'] = 'Date';
$txt['smftrader_report'] = 'Report';
$txt['smftrader_approve'] = 'Approve';
$txt['smftrader_options'] = 'Options';
$txt['smftrader_invalidview'] = 'Invalid view...';
$txt['smftrader_viewdetail'] = 'View Detail';
$txt['smftrader_delete'] = 'Delete';
$txt['smftrader_submitfeedback2'] = 'Submit Feedback';
$txt['smftrader_reportfeedback'] = 'Report Feedback';
$txt['smftrader_detailedfeedback'] = 'Detailed Feedback';
$txt['smftrader_detailedcomment'] = 'Detailed Comment';
$txt['smftrader_commentby'] = 'Comment by: ';
$txt['smftrader_returntoratings'] = 'Return to Trader Ratings';
$txt['smftrader_shortcomment2'] = 'Short Comment';
$txt['smftrader_deletefeedback'] = 'Delete Feedback';

$txt['smftrader_nomemberselected'] = 'No member selected';
$txt['smftrader_errfeedbackself'] = 'You can not leave feedback for yourself.';
$txt['smftrader_errshortcoment'] = 'You did not enter a short comment!';
$txt['smftrader_errnocomment'] = 'You did not place a comment for this feedback.';

$txt['smftrader_errsaletype'] = 'Invalid sale type.';
$txt['smftrader_errsalevalue'] = 'Invalid sale value.';
$txt['smftrader_errnofeedselected'] = 'No feedback selected.';
$txt['smftrader_failedreport'] = 'Failed to report trader rating comment.';
$txt['smftrader_badfeedback'] = 'Bad Feedback';

$txt['smftrader_notrader'] = 'No trader.';
$txt['smftrader_viewtrader'] =  'View Trader';
$txt['smftrader_commentmadeby'] = 'Comment made by: ';


$txt['smftrader_set_permissionnotice'] = 'Lastly! Do not forget to make the permissions are set for each group, in order for them to use the trader system.';
$txt['smftrader_set_editpermissions'] = 'Edit Permissions';
$txt['smftrader_text_settings'] = 'Settings';
$txt['smftrader_text_permissions'] = 'Permissions';

$txt['smftrader_save_settings'] = 'Save Settings';

$txt['trader_feedbackperpage'] = 'Number of feedback to show on each page';
$txt['trader_use_pos_neg'] = 'Use positive/negative total trade count on display page';

$txt['smftrader_trader_approval'] = 'Trader Rating Approval';
$txt['smftrader_form_notapproved'] = 'Your rating will not appear in the user\'s trader profile to others until it is approved.';
$txt['smftrader_text_pages'] = 'Pages: ';

$txt['smftrader_newrating'] = 'You have a new comment on your feedback profile';

$txt['smftrader_commenter_subject'] ='Your comment for %s has been approved';
$txt['smftrader_commenter_body'] ='The comment you left for %s on %s has been approved.';

$txt['smftrader_text_withselected'] = 'With Selected';
$txt['smftrader_text_performaction'] = 'Perform Action';
$txt['smftrader_bulk_approveratings'] = 'Approve';
$txt['smftrader_bulk_deleteratings'] = 'Delete';

$txt['smftrader_classifieds_listing'] = 'Classifieds Listing: ';

$txt['smftrader_err_classifieds_listing'] = 'You must select a Classifieds listing that you have bid on or created to leave feedback for this user.';

$txt['smftrader_err_no_classifieds_listing'] = 'You do not have any completed listings waiting to be rated';

?>
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: vbgamer45 on February 18, 2011, 01:56:22 PM
To change it completely you need to modify Trader.php
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: imatt87 on February 18, 2011, 02:07:17 PM
I dont know what i need to Modify in there thats what im asking, isnt there a simple way to alter the name without recoding it all ?
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: vbgamer45 on February 18, 2011, 02:15:42 PM
No there isn't since that text is combined from multiple text srings.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: imatt87 on February 18, 2011, 02:20:30 PM
Right ok so what do i have to alter in the trader.php file to get this to work, i understand what needs to be changed in the language file now so its just the changes in the trader.php file.......
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: vbgamer45 on February 18, 2011, 02:24:53 PM
Search for where the text is used in the trader.php file
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: imatt87 on February 18, 2011, 02:50:41 PM
I did and i couldnt find it, the only reference is the module name at the top of the trader.php file where the code begins nothing else
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: Kindred on February 18, 2011, 03:06:37 PM
modifications.english.php
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: imatt87 on February 19, 2011, 03:33:02 PM
modifications.english.php

Thank you so much im so greatful, works wonders will be recommending this mod  :laugh:
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: hcfwesker on March 07, 2011, 08:45:17 PM
Any way to add selected membergroups to approve ratings, too?  Instead of only admins.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: vbgamer45 on March 07, 2011, 08:56:02 PM
Not at the moment would require a couple edits.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: hcfwesker on March 11, 2011, 02:47:10 AM
I found a work around, and got other staff in the trader admin page :)

vb, I can't find the db tables that trader feedbacks get record as, in phpMyAdmin ... what do I look under?  Or does it not have it's own table in the database?
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: vbgamer45 on March 11, 2011, 01:24:55 PM
Store in believe smf_feedback
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: teamvtec on March 11, 2011, 07:25:18 PM
Great mod! I've used it for a few years now
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: lmbuehrer on March 15, 2011, 07:38:25 PM
Is there any way to make it so regular members cannot delete feedback given to them? I'm using this as a rep thing, so if someone gives them bad feedback and they delete it.. Then it looks like they've never "scammed' anyone.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: Kindred on March 15, 2011, 07:42:18 PM
permissions...
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: lmbuehrer on March 15, 2011, 07:51:30 PM
permissions...

I know that, I looked, but there's 3 permissions nothing about making it so they can't delete feedback..
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: vbgamer45 on March 15, 2011, 08:03:02 PM
Give them only permission to add feedback and nothing else then they can't remove it.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: lmbuehrer on March 15, 2011, 08:12:26 PM
Okay, right now I have this :

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi52.tinypic.com%2F2qa3f55.png&hash=bf9aa1bbf68c614607644b6e2db712a3)

It still lets you delete any feedback givin to you.. Regular members can delete feedback givin to them.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: vbgamer45 on March 15, 2011, 08:20:16 PM
What SMF Version? And are you doing this as an admin or logged in as a normal member
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: lmbuehrer on March 15, 2011, 08:21:37 PM
What SMF Version? And are you doing this as an admin or logged in as a normal member

A regular member was doing this.

2.0 rc5
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: vbgamer45 on March 15, 2011, 08:27:29 PM
Checked code it is checking the deleted feed permission as long as they don't have the delete feed permission in their membergroups or any submembergroups they should be fine.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: lmbuehrer on March 15, 2011, 08:41:07 PM
I'll test it again I guess
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: Dreadfear on March 19, 2011, 12:48:56 PM

I added SMF trader system. It works fine but... Anyone can add feedback to whoever they want and how much they want.
This way they can destroy anyones reputation by just putting false details. Is there or is it possible to make that if someone wants to sell someone anything then he must press button " Initate transaction ". After pressing it the seller has new message in his feedback system(profile). He must accept if he has contacted buyer and is fine with his offer. After that they only can give each other feedbacks.

Example: mmoexchange.net

You can see that in every theard after Username there is "Initate transaction".

Thank you !
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: vbgamer45 on March 19, 2011, 12:52:23 PM
Maybe in the future as an option
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: Kindred on March 19, 2011, 03:21:29 PM
the smfbay mod links up with this one.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: venex on March 20, 2011, 01:54:11 PM

Code: [Select]
global $board;

if ($board == '#boardidhere')
{
// Show trade count
}
Hello!!! Going back to this question that I had... Do you know a way to add another board? I originally wanted it in just one board but now I want to put it in a second one. If I put "1,3" as board id, it doesn't show it anywhere. What should I do?

Thanks!
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: vbgamer45 on March 20, 2011, 01:56:28 PM
$board == 1 || $board == 3
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: venex on March 21, 2011, 12:25:00 AM
Thank you :)...

I have another issue now D:

I installed Trader System and I noticed that Profile Comments weren't showing the comments. So, both MODs are overlapping somewhere that if you install Trader System, it will not let you see the profile comments... Since both MODs are yours, maybe you know the reason (and possibly a solution).

Thanks a lot! :)
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: colour on April 04, 2011, 08:29:21 PM
keep getting an execute modification error for profile.template.php and its chmod is 777
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: vbgamer45 on April 04, 2011, 09:12:00 PM
You might have to install it manually on that file check modsite for manual install instructions
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: JordG10 on April 20, 2011, 05:04:52 AM
hey i installed smf trader system but where do i activate it ?
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: jaychris on April 20, 2011, 11:16:29 PM
NM.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: JordG10 on April 22, 2011, 07:23:36 AM

I added SMF trader system. It works fine but... Anyone can add feedback to whoever they want and how much they want.
This way they can destroy anyones reputation by just putting false details. Is there or is it possible to make that if someone wants to sell someone anything then he must press button " Initate transaction ". After pressing it the seller has new message in his feedback system(profile). He must accept if he has contacted buyer and is fine with his offer. After that they only can give each other feedbacks.

Example: mmoexchange.net

You can see that in every theard after Username there is "Initate transaction".

Thank you !

id love to see this too please!
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: MoreBloodWine on April 30, 2011, 07:08:26 PM
Just reinstalled this on my RC5 site and seems to be ok, wont know til a user submits feedback. In any case, to make things look more uniformed might I suggest that on next update you change the data below // Show the trader info to the following. Mind you I hardcoded Feedback: because I didnt think to edit the language file.

Here's a page you can look at to see what it looks like on my site, I find it more streamlined.

http://www.eojmarket.com/index.php?topic=668.msg12227#msg12227

Code: [Select]
      // Show the trader info
            echo '<li>
               Feedback:
               ', $modSettings['trader_use_pos_neg'] ? ($tradecount > 0 ? '+' . $tradecount : $tradecount)  : $tradecount  , '
<br />
(<a href="' . $scripturl .  '?action=trader&id=' . $message['member']['id'] . '">View</a> l <a href="' . $scripturl .  '?action=trader;sa=submit&id=' . $message['member']['id'] . '">Add</a>)
</li>';

      //END SMF Trader System
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0 RC4!
Post by: aw06 on April 30, 2011, 10:15:59 PM
For Future versions can you make it so that the Feedback is more bold in post view ? Like use a bigger text and have a Red/Green Medal,.. juts want to make it more visible to users.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: vbgamer45 on June 11, 2011, 08:49:02 PM
Added install support for SMF 2.0 final
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Witchboard on June 20, 2011, 08:13:22 PM
I'm currently running 1.1 on SMF 1.1.14 and plan on updating Trader to 1.6.  Is it an in place update, or do I need to uninstall 1.1, then install 1.6?  Sorry if this was covered.  I didn't see any info on update information on the mod page or first post of this support topic.  Thanks.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: vbgamer45 on June 20, 2011, 08:26:14 PM
Perfered is uninstall if possible then install new version
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Witchboard on June 20, 2011, 11:34:47 PM
Thanks.  I'll give it a shot.

Bah!  I'm getting a ton of errors on the uninstall...  Probably because I installed it so long ago and SMF has been updated several times.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: jshamm on July 03, 2011, 11:54:00 AM
This is a great mod!  Thanks.  I do have a few questions:

1.  How do I intergrate this with Ultimate Profile?  I installed UP and now the trader rating system is gone.

2.  Can I easily modify this to remove buyer and seller option?  My use for this would simply be trades.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Kindred on July 03, 2011, 01:07:00 PM
Well, since this mod changes the basic profile section and the ultimate profile mod replaces that......   Of course the two are not going to display together. You would have to figure put the proile code edits and then figure out where to put it in the UP mod....
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: jshamm on July 03, 2011, 01:41:53 PM
Well, since this mod changes the basic profile section and the ultimate profile mod replaces that......   Of course the two are not going to display together. You would have to figure put the proile code edits and then figure out where to put it in the UP mod....

that makes sense.  Thanks.  Have you seen this done anywhere before?  I'm lacking in coding ability.
Title: Trader2.template.php
Post by: srgsng25 on July 06, 2011, 01:36:29 PM
getting these errors

http://www.specialchildexchange.org/smf/index.php?action=admin;area=trader;sa=admin;sesc;afd1ef12e=84287ed060ca6d32a839c19eda3ebe50

8: Undefined offset: 119

File: /home/content/N/o/i/Noijoey/html/smf/Themes/default/Trader2.template.php
Line: 417


http://www.specialchildexchange.org/smf/index.php?action=admin;area=trader;sa=admin;sesc;afd1ef12e=84287ed060ca6d32a839c19eda3ebe50

8: Undefined offset: 119

File: /home/content/N/o/i/Noijoey/html/smf/Themes/default/Trader2.template.php
Line: 416

thanks for anyhelp
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: vbgamer45 on July 06, 2011, 01:53:14 PM
You might be missing a language string $txt['smftrader_buyer']

Or it could be wrong line that is mentioned make sure you disable temp eval to find true error line in case
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: hcfwesker on July 06, 2011, 08:28:33 PM
I'm trying to find what column, or table, the member info for this gets saved under, in phpMyadmin.  I couldn't find "Trader" or anything like that.  Can you help, please.

EDIT:

my bad, 1 minute after posting this i found smf_feedback
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: srgsng25 on July 06, 2011, 08:40:07 PM
the elevated template fixed my errors looks like
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: MiY4Gi on July 08, 2011, 11:18:28 PM
How do I unbold "Trade Count: "?
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: vbgamer45 on July 08, 2011, 11:38:23 PM
Open display.template.php
Find the trader code
Then remove the <b> or <strong> tags in the trade count display
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: MiY4Gi on July 08, 2011, 11:51:51 PM
Thanks. That did the trick. Also, you might want to move the trade count below the post count, because where it is at the moment, it's in a rather awkward position above the avatar, between the membergroup title and the postcount title (or at least I think it was there - I can't remember since I moved it myself to the position below the post count).
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: jshamm on July 09, 2011, 06:50:56 PM
Has anyone been able to incorporate this with a profile mod like Ultimate Profile?  I'd really love to use both and have gone over and over again through the code (admittedly unfamiliar with php) and I cannot find a way to have both.  any tips at all would be really appreciated.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: SN95Forums on July 29, 2011, 05:51:00 PM
Hey all,

Im having an issue, I exported my database with this deactivated but not un-installed.

What I need to know is what does this modify in my database so I can MANUALLY erase it?

Thanks in advance,
Matt
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Shorti25 on August 15, 2011, 06:48:48 PM
Hello,
how can i increase/decrease the values of the trade count ?

Before using trader system we used the karma to give point to users.
If an users karma is 30 positiv i want to make the start in trader system with 30.

Where can i do this ?
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: vbgamer45 on August 15, 2011, 07:11:39 PM
No way to do that. It is based upon the number of feedback entries.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Shorti25 on August 15, 2011, 07:30:25 PM
 :-\ okay thx for fast reply
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: MoreBloodWine on September 21, 2011, 04:43:18 AM
Hey VB, two things I'd like to bring up... the first is a suggestion and the other is a bug in the profile edit that's been here for as long as I can remember this mod existed.

Suggestion
I was wondering if you would consider taking the following bit of code from the Display.template.php edit...
Code: [Select]
// Show the trader info
echo '<li>
<b>' . $txt['smftrader_profile'] . ' </b>
(<a href="' . $scripturl .  '?action=trader&id=' . $message['member']['id'] . '">', $modSettings['trader_use_pos_neg'] ? ($tradecount > 0 ? '+' . $tradecount : $tradecount)  : $tradecount  , '</a>)</li>';

and changing it to this...
Code: [Select]
// Show the trader info
echo '<li>
Feedback:
', $modSettings['trader_use_pos_neg'] ? ($tradecount > 0 ? '+' . $tradecount : $tradecount)  : $tradecount  , '
<br />
(<a href="' . $scripturl .  '?action=trader&id=' . $message['member']['id'] . '">View</a> l <a href="' . $scripturl .  '?action=trader;sa=submit&id=' . $message['member']['id'] . '">Add</a>)
</li>';

That makes it output like this...

Feedback: 0
(View l Add)

I find it to be easier for people to navigate / use the trader system, that and I think it looks better but that's just my opinion.

Bug ?
Ok, this has been here a number of years but the profile edit breaks the layout of the profile by not adding in an <hr> or something.

Ok, I tried to find and fix the code for proof but soemthins weird... I can't, the cloest I came is figuring out that it's with the <dl></dl>'s or something.

In any event, the profile edit is bugged in the following two ways.

1) In 2.0 the Profile.template.php edit needs to be added after this / before the show signature stuff...

Code: [Select]
// Are there any custom profile fields for the summary?
if (!empty($context['custom_fields']))
{
$shown = false;
foreach ($context['custom_fields'] as $field)
{
if ($field['placement'] != 2 || empty($field['output_html']))
continue;
if (empty($shown))
{
$shown = true;
echo '
<div class="custom_fields_above_signature">
<ul class="reset nolist">';
}
echo '
<li>', $field['output_html'], '</li>';
}
if ($shown)
echo '
</ul>
</div>';
}

If not, the way it works now is that Last Active and the custom fields will be added after the SMF Trader display stuff.

2) There's no <hr> above the Trader stuff to break it apart from Last Active / custom field stuff.

Here's what it looks like on my fresh 2.0 install site.
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.eojmarket.com%2FNonForumStuff%2Fimages%2Ftrader1.png&hash=921c5a2479d7afc77260101ae349f4f2)

Here's what it should look like (edited via PS)...
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.eojmarket.com%2FNonForumStuff%2Fimages%2Ftrader2.png&hash=8c5bfb8c2700a823b24e8a4faf0bce48)

-------

Oh, and for what it's worth... on 2.0 which this whole post is about, the Display.template.php edit fails on the core theme. Don't see a need for the core edit but thought I'd toss it out there.

Haven't been able to test it on other themes because I'm playing with a new site.

and while I'm at it...

The site bugs on uninstall because of the feedback thing you got in there.

Edit:

Also, you might want to move the trade count below the post count, because where it is at the moment, it's in a rather awkward position above the avatar, between the membergroup title and the postcount title (or at least I think it was there - I can't remember since I moved it myself to the position below the post count).

I alo can confirm this and would like to suggest it be placed above the pos count / below the avatar since if it's below the post count it can still look out of place if you have stuff like show gender, karma etc showing.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: hcfwesker on March 11, 2012, 04:47:30 AM
smf 2.0.2

I'm trying to make one addition to this.  when viewing the trader Details, it shows the long comment, and who posted it.  I'd also like to add the members name of who it belongs to , up in the title. 

the only thing I can get close to is displayng the members id using the code below, but have tried every angle and possible i can think of but cant get the actual name to show.

Code: [Select]
', $context['trading_detail']['ID_MEMBER'], '
this is what shows the person who sent the long comment

Code: [Select]
<td align="left">' . parse_bbc($context['trading_detail']['comment_long']) . '<br />',$txt['smftrader_commentby'],'<a href="',$scripturl, '?action=profile;u=', $context['trading_detail']['FeedBackMEMBER_ID'],'">',$context['trading_detail']['real_name'],  '</a><br /></td>
I want to add the person's name that the long comment was SENT TO in this part where i have it labeled HERE

Code: [Select]
<td height="26" align="center">',$txt['smftrader_title'],' - ',$txt['smftrader_detailedfeedback'],' - HERE</td>
Any suggestion would be greatly appreciated :)

Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: MadTogger on March 11, 2012, 11:34:44 AM
A few other people have mentioned about the;

'An Error Has Occurred!'

message that appears when a member submits feedback that needs approval.

This message is really deceiving as there is no error that has occurred.

I think I have found the piece of code in Trader2.php that causes this to display but I am stuck as to how to change it to something more appropriate.

Here is the code from the 'submit2' function:

Code: [Select]
else
fatal_error($txt['smftrader_form_notapproved'], false);

How can I change this so that it does show a FATAL ERROR but a more fitting title like 'Sent For Approval'?

Also I don't really like the 'back' link displayed at the bottom of this error page with the;

Code: [Select]
history.go(-1)
function, where can I change the actual link address for this so I can make the link point to somewhere more appropriate?

Regards..,

MT
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: hcfwesker on March 11, 2012, 04:26:43 PM
That's another issue that i wanted to ask about as well.  Should just have a box about with a title like "Feedback Pending approval"
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: MadTogger on March 11, 2012, 06:21:01 PM
That's another issue that i wanted to ask about as well.  Should just have a box about with a title like "Feedback Pending approval"

Yes, that would be great.

Just having a small popup displayed when the 'submit' button is pressed that says like you have said 'Your feedback is pending approval'

I think the 'An Error Has Occurred!'  will confuse the heck out of my forum users.

Also a better solution to the 'back' link would be that clicking the 'OK' button on a message popup would take the user back to the forum index page not back to the submit feedback page.

Regards..,
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: hcfwesker on March 11, 2012, 07:13:17 PM
Seeing as this issue was brought up almost 4 years, which the mod author said he would some kinda fix for that, but still not.  :(

I'm gonna look into this and see what I can do, and perhaps make it redirect to the user's feedback stats page, and have one of those green box displays, like when you report a post and after sending it you get redirected back to the post with the green box above saying something like   [ Report Sent ].  But instead have it says soemthing like

[ Feedback Pending Approval :  $txt['smftrader_form_notapproved']

Like in the attached pic below.

No promises, but if I get something to work, I'll post back here with the results.

and, I'm still looking for help on this issue if anyone knows how.  http://www.simplemachines.org/community/index.php?topic=98912.msg3291401#msg3291401
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: hcfwesker on March 11, 2012, 11:20:11 PM
I am very happy.  got this to work :)

This edit will remove the "Error Has Occurred" screen for members who submit feedback that needs to be approved, and instead, take the member back to the members feedback page they were submitting for, and have a highlighted green box message.  depending on what you use for $txt['smftrader_form_notapproved']

Ex.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.simplemachines.org%2Fcommunity%2Findex.php%3Faction%3Ddlattach%3Btopic%3D98912.0%3Battach%3D199141%3Bimage&hash=511e9aa88488d3f010cdbee21f22d517)

Sources/Trader.php

Find
Code: [Select]
fatal_error($txt['smftrader_form_notapproved'], false);
Replace with
Code: [Select]
                redirectexit('action=trader&id=' . $traderid . ';added');
Themes/default/Trader2.template.php

Find
Code: [Select]
function template_main_trader()
{
global $txt, $context, $scripturl, $modSettings, $user_info;

Add After
Code: [Select]
    echo isset($_REQUEST['added']) ? '<div id="profile_success" style="border-radius: 4px; -moz-border-radius: 4px; -webkit-border-radius: 4px;"><strong>Feedback Pending Approval:</strong> ' . $txt['smftrader_form_notapproved'] . '</div>' : '';
^^ You can change 'Feedback Pending Approval:' to whatever you like in the above line, or remove it.  Whatever you have in your text string will appear after it.


I found a solution for this, hoping someone can come along and help me with this : http://www.simplemachines.org/community/index.php?topic=98912.msg3291401#msg3291401


Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: MadTogger on March 12, 2012, 05:54:55 AM
I am very happy.  got this to work :)

This edit will remove the "Error Has Occurred" .....

Thank you very much hcfwesker, this is a perfect solution, very straight forward.

Now I am attempting to implement this further by using similar code to check whether the member trying to leave feedback has filled out the necessary fields in the submission form.

Following your example I have got it to work somewhat but have run in to a small issue.

Firstly, here is the code I am using:

In Trader.english.php find:
Code: [Select]
?>
Add Before:
Code: [Select]
$txt['smftrader_errnourl'] = 'You have to enter the Topic URL.';
In Trader2.php find:
Code: [Select]
if ($shortcomment == '')
fatal_error($txt['smftrader_errshortcoment'],false);

Replace with:
Code: [Select]
if ($shortcomment == '')
redirectexit('action=trader;sa=submit&id=' . $traderid . ';noshrtcomm');

Find:
Code: [Select]
$topicurl = htmlspecialchars($_REQUEST['topicurl'],ENT_QUOTES);
Add After:
Code: [Select]
if ($topicurl== '')
                redirectexit('action=trader;sa=submit&id=' . $traderid . ';notpcurl' );

In Trader2.template.php find:
Code: [Select]
function template_submit()
{
global $txt,  $context, $scripturl, $modSettings;

Add After:
Code: [Select]
echo isset($_REQUEST['noshrtcomm']) ? '<div id="profile_error" style="border-radius: 4px; -moz-border-radius: 4px; -webkit-border-radius: 4px;"><strong>Information Missing:</strong> ' . $txt['smftrader_errshortcoment'] . '</div>' : '';

echo isset($_REQUEST['notpcurl']) ? '<div id="profile_error" style="border-radius: 4px; -moz-border-radius: 4px; -webkit-border-radius: 4px;"><strong>Information Missing:</strong> ' . $txt['smftrader_errnourl'] . '</div>' : '';

Now, although this does work the problem is that the page refreshes and all previously entered information in the form's fields is lost leaving the user to have to renter all the info.

I would like to be able to just show the warning to the user without a page refresh occurring.

I have found some information on the redirectexit() function here (http://support.simplemachines.org/function_db/index.php?action=view_function;id=224;smf_version=1.0+RC1) and is does show a parameter $refresh but I cannot seem to get this to work.

Any help would be appreciated.

Regards..,  ;)

Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: hcfwesker on March 12, 2012, 12:35:30 PM
Once I figure out my problem on this mod, I'll try and take a look at it.  But, for those, I was just use the fatal_error, so they have the Back key to click and all information should still be there
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: MadTogger on March 12, 2012, 03:21:02 PM
Once I figure out my problem on this mod, I'll try and take a look at it.  But, for those, I was just use the fatal_error, so they have the Back key to click and all information should still be there

Hi hcfwesker,

cheers for all your help, hopefully I can return the favour.

Where you are trying to add the persons name that feedback was sent to, isn't their ID stored in:

Code: [Select]
$traderid
maybe you can utilise this variable in the same way as:

Code: [Select]
<td align="left">' . parse_bbc($context['trading_detail']['comment_long']) . '<br />',$txt['smftrader_COMMENTTO'],'<a href="',$scripturl, '?action=profile;u=', $context['trading_detail'] . $traderid . '">',$context['trading_detail']['real_name'],  '</a><br /></td>
The code above may need a little playing with and you would need to add:

Code: [Select]
$txt['smftrader_COMMENTTO']
to the language file.

Hopefully you can see what I am getting at.  ;)

Regards..,

Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: hcfwesker on March 12, 2012, 05:23:05 PM
I've tried that as well as every other angle where both names appear, like in the admin approval page.

Problem is, the database value it pulls in the function_Detail part, it only pulls the m.real_name once , and assigns the FeedBackMEMBER_ID to it ( the one who sent it)

Where in the admin function, it pulls it twice, once as m.real_name , and u.real_name mainName

Thing is, I can't replicate that call in the Detail function Tader2.php

Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: MadTogger on March 12, 2012, 05:28:19 PM
I've tried that as well as every other angle where both names appear, like in the admin approval page.

Problem is, the database value it pulls in the function_Detail part, it only pulls the m.real_name once , and assigns the FeedBackMEMBER_ID to it ( the one who sent it)

Where in the admin function, it pulls it twice, once as m.real_name , and u.real_name mainName

Thing is, I can't replicate that call in the Detail function Tader2.php

Cheers, i'll have a play around with that. ;)
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: MadTogger on March 13, 2012, 05:05:32 AM
Well, I got it working somewhat, not exactly pretty but it does do the trick.

In Trader2.template.php I changed my previous code:

Code: [Select]
echo isset($_REQUEST['noshrtcomm']) ? '<div id="profile_error" style="border-radius: 4px; -moz-border-radius: 4px; -webkit-border-radius: 4px;"><strong>Information Missing:</strong> ' . $txt['smftrader_errshortcoment'] . '</div>' : '';

echo isset($_REQUEST['notpcurl']) ? '<div id="profile_error" style="border-radius: 4px; -moz-border-radius: 4px; -webkit-border-radius: 4px;"><strong>Information Missing:</strong> ' . $txt['smftrader_errnourl'] . '</div>' : '';

to:

Code: [Select]
echo isset($_REQUEST['noshrtcomm']) ? '<div id="profile_error" style="border-radius: 4px; -moz-border-radius: 4px; -webkit-border-radius: 4px;"><center><strong><u>Information Missing:</u> ' . $txt['smftrader_errshortcoment'] . '</strong></center></br>Please correct this error by returning to the previous screen <a href="javascript:history.back();">HERE</a>.</div>' :'';

echo isset($_REQUEST['notpcurl']) ? '<div id="profile_error" style="border-radius: 4px; -moz-border-radius: 4px; -webkit-border-radius: 4px;"><center><strong><u>Information Missing:</u> ' . $txt['smftrader_errnourl'] . '</strong></center></br>Please correct this error by returning to the previous screen <a href="javascript:history.back();">HERE</a>.</div>' : '';

Changing the code to the above adds the 'history.back()' link where the user is easily able to navigate to the previous state of the feedback submission form, thus retaining any already entered data.

Like I said, not pretty but working.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: hcfwesker on March 13, 2012, 03:24:58 PM
Very nice.  And,  my issue with the name not appearing the details page was fixed by help from a good friend.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: MadTogger on March 13, 2012, 03:44:02 PM
Very nice.  And,  my issue with the name not appearing the details page was fixed by help from a good friend.

How did you get it to work in the end then?
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: hcfwesker on March 13, 2012, 08:10:49 PM
In Sources/Trader2.php

under the ViewDetail functio of the code ...

Find
Code: [Select]
$dbresult = $smcFunc['db_query']('', $result);
$row = $smcFunc['db_fetch_assoc']($dbresult);
$smcFunc['db_free_result']($dbresult);

$context['trading_detail'] = $row;

Replace with
Code: [Select]
$dbresult = $smcFunc['db_query']('', $result);
$row = $smcFunc['db_fetch_assoc']($dbresult);

         global $memberContext;
        if (!isset($memberContext[$row['ID_MEMBER']])) {
                loadMemberData(array($row['ID_MEMBER']));
                loadMemberContext($row['ID_MEMBER']);
        }
        $row['member_one'] = $memberContext[$row['ID_MEMBER']];

$smcFunc['db_free_result']($dbresult);

$context['trading_detail'] = $row;
$context['tradername'] = $row['real_name'];

To make the names appear, For the member that sent the feedback, in trader2.template.php use

Code: [Select]
',$context['tradername'], '
for the owner, that received the feedback, use ...

Code: [Select]
',$context['trading_detail']['member_one']['name'], '

Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: hcfwesker on March 31, 2012, 10:35:08 PM
Not expecting a reply for this, but gonna take a shot.    I've made a menu button for the Trader, and have a sub menu link for Unapproved Feedback.  Is there a way for a number count to show on the button for unapproved feedback waiting to be approved?
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: vbgamer45 on March 31, 2012, 11:10:16 PM
You could do it with a mysql query to fetch from trader ratings table and get a count of the number of items that are not approved.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: hcfwesker on April 11, 2012, 08:46:10 PM
Got another issue.  Trying to let other staff members approve feedback.  I've made a custom permission, tested and it works when testing it with other permission features on the site.  but for some reason it won't use the permission setting on Trader Admin page. 

yhe ONLY way a member can get into the trader admin page is with the permission "allow to admin the forum and database"

This is the permission I made, 'trader_mod'

and these are the locations I tried changing every listing of 'admin_forum' to 'trader_mod' from Trader2.php

Code: [Select]
function AdminSettings()
{
global $context, $txt,  $mbname, $smcFunc, $scripturl;

isAllowedTo('admin_forum');

@$context[$context['admin_menu_name']]['tab_data'] = array(
'title' => $txt['smftrader_admin'],
'description' => '',
'tabs' => array(
'admin' => array(
'description' => '',
),


),
);

Code: [Select]
function AdminSettings2()
{
isAllowedTo('admin_forum');

$trader_approval =  isset($_REQUEST['trader_approval']) ? 1 : 0;
$trader_use_pos_neg = isset($_REQUEST['trader_use_pos_neg']) ? 1 : 0;
$trader_feedbackperpage = (int) $_REQUEST['trader_feedbackperpage'];

updateSettings(
array(
'trader_approval' => $trader_approval,
'trader_feedbackperpage' => $trader_feedbackperpage,
'trader_use_pos_neg' => $trader_use_pos_neg,

));

redirectexit('action=admin;area=trader;sa=admin');
}

Code: [Select]
function ApproveRating()
{

isAllowedTo('admin_forum');

$id = (int) $_REQUEST['id'];


ApproveByID($id);

redirectexit('action=admin;area=trader;sa=admin');
}

Code: [Select]
function BulkActions()
{
isAllowedTo('admin_forum');

if (isset($_REQUEST['ratings']))
{

$baction = $_REQUEST['doaction'];

foreach ($_REQUEST['ratings'] as $value)
{

if ($baction == 'approve')
ApproveByID($value);
if ($baction == 'delete')
DeleteByID($value);

}
}

// Redirect to approval list
redirectexit('action=admin;area=trader;sa=admin');
}

And, to take it a step further i tried adding it in the Admin.php settings as well

Code: [Select]
// Define all the menu structure - see Subs-Menu.php for details!
$admin_areas = array(
'forum' => array(
'title' => $txt['admin_main'],
'permission' => array('admin_forum', 'manage_permissions', 'moderate_forum', 'manage_membergroups', 'manage_bans', 'send_mail', 'edit_news', 'manage_boards', 'manage_smileys', 'manage_attachments','manage_shop', 'trader_mod'),

Doing all of these didnt change anything.  How would i make it so other staff can use the trader admin page to approve/delete feedback, without having to have the 'admin_forum' permission.

Thanx.

Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: SMFHacks.com Team on May 12, 2012, 11:44:26 AM
hcfwesker having one my developers to look over this topic and see what features/ideas to incorporate in the next versions.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Stun on May 30, 2012, 03:45:28 PM
Hello,
I have maybe a newbie question, but I can't find an answer for this.
I have moved out my SMF forum to another hosting company and after that I can't see trader points from a user. When I try to access the trader link on his profile (under his name) (eg. myforum.com/index.php?action=trader&id=2250), it loads the index page on the forum.
I use SMF 2.0.2 and Trader System 1.6. Is there some permissions that I have to work on?

Thank you in advance!
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: vbgamer45 on May 30, 2012, 03:54:27 PM
Is it still installed? Can you access it via the admin panel?
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Stun on May 31, 2012, 02:30:25 AM
Hello vbgamer45,
Yes, it's installed and I can access it from admin panel.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: vbgamer45 on May 31, 2012, 10:34:07 AM
Attach your main index.php and will see if trader is listed as an action.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Stun on May 31, 2012, 10:42:36 AM
Trader array (
Code: [Select]
'trader' => array('Trader2.php', 'tradermain'), ) was missing. Now I saw that.
It seems now it works!
Thank you for giving me this idea!

Cheers mate!
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: vbgamer45 on May 31, 2012, 11:04:31 AM
Glad you were able to get it working.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Maxtor on June 21, 2012, 10:19:30 AM
The submition form does not contain any hashing parametres, and therefore I asume it does not check where the form was submited from or its validity. This would enable the form to be sumbited from other websites, which could be used to create fake reviews about trades from other forum users without them knowing.

how to fix this?
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Paracelsus on July 02, 2012, 04:34:07 PM
I've tried installing this MOD (SMF 1.1.16) and got no fails on test install but afterwards all my profile pages returned a 404 error. Has anyone had this problem before? Can it be because of Ultimate Profile I have installed?
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: vbgamer45 on July 02, 2012, 04:48:04 PM
Could be you would have to see the forum error logs or apache error logs.

Could just be a file permission issue. Or a mod_security issue.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Skaty on December 21, 2012, 05:40:29 PM
Hi,  how can i change the pm sender. it always send from admin (user id:1) can i change it ?

thanks
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: vbgamer45 on December 21, 2012, 06:01:44 PM
You would have to modify the calls to sendpm in Sources/Trader.php and change the member id.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Skaty on December 22, 2012, 06:08:29 AM
exactly how, from here ?

      SendTraderPMByID($id);

Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: vbgamer45 on December 22, 2012, 11:42:19 AM
The code below will give you the area to change

Change
Code: [Select]

$pm_register_recipients = array(
'to' => array($row['ID_MEMBER']),
'bcc' => array(),
);

require_once($sourcedir . '/Subs-Post.php');

sendpm($pm_register_recipients, $txt['smftrader_newrating'], $row['comment_short'] .  "\n\n" . $txt['smftrader_commentmadeby'] . $row['real_name'] . "\n" . "{$scripturl}?action=profile");

To

Code: [Select]

$pm_register_recipients = array(
'to' => array($row['ID_MEMBER']),
'bcc' => array(),
);


$pm_from = array(
'id' => 0,
'username' => 'usernamehere',
'name' =>'displaynamehere',
);

require_once($sourcedir . '/Subs-Post.php');

sendpm($pm_register_recipients, $txt['smftrader_newrating'], $row['comment_short'] .  "\n\n" . $txt['smftrader_commentmadeby'] . $row['real_name'] . "\n" . "{$scripturl}?action=profile",false,$pm_from);
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Skaty on December 23, 2012, 11:17:25 PM
thank you so much :)
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: vbgamer45 on December 23, 2012, 11:25:11 PM
Glad to help.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Skaty on December 24, 2012, 05:13:16 PM
One more thing.  How can i do this option ''required''.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2F6aiEi.jpg&hash=113c9b3652865588af70a2406f69e236)
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: hcfwesker on December 26, 2012, 02:12:11 AM
Just a guess.

Sources/Trader2.php

Find
Code: [Select]
// Check if comment posted
$shortcomment = htmlspecialchars(substr($_REQUEST['shortcomment'], 0, 100),ENT_QUOTES);

if ($shortcomment == '')
fatal_error($txt['smftrader_errshortcoment'],false);

$ID_LISTING = 0;
$topicurl = htmlspecialchars($_REQUEST['topicurl'],ENT_QUOTES);
$salevalue = (int) $_REQUEST['salevalue'];
$saletype = (int) $_REQUEST['saletype'];
$longcomment = htmlspecialchars($_REQUEST['longcomment'],ENT_QUOTES);


Replace with
Code: [Select]
// Check if comment posted
$shortcomment = htmlspecialchars(substr($_REQUEST['shortcomment'], 0, 100),ENT_QUOTES);

if ($shortcomment == '')
fatal_error($txt['smftrader_errshortcoment'],false);

// Check if URL posted
$topicurl = htmlspecialchars($_REQUEST['topicurl'],ENT_QUOTES);

if ($topicurl == '')
fatal_error($txt['smftrader_errtopicurl'],false);

$ID_LISTING = 0;
$salevalue = (int) $_REQUEST['salevalue'];
$saletype = (int) $_REQUEST['saletype'];
$longcomment = htmlspecialchars($_REQUEST['longcomment'],ENT_QUOTES);

You'll need to goto the Trader language files and add this, or reword it

Code: [Select]
$txt['smftrader_errtopicurl'] = 'URL references must be added';
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Skaty on December 26, 2012, 07:27:36 AM
Works like a charm :)

Thank you @hcfwesker.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Skaty on December 27, 2012, 12:58:04 PM
The code below will give you the area to change

Change
Code: [Select]

$pm_register_recipients = array(
'to' => array($row['ID_MEMBER']),
'bcc' => array(),
);

require_once($sourcedir . '/Subs-Post.php');

sendpm($pm_register_recipients, $txt['smftrader_newrating'], $row['comment_short'] .  "\n\n" . $txt['smftrader_commentmadeby'] . $row['real_name'] . "\n" . "{$scripturl}?action=profile");

To

Code: [Select]

$pm_register_recipients = array(
'to' => array($row['ID_MEMBER']),
'bcc' => array(),
);


$pm_from = array(
'id' => 0,
'username' => 'usernamehere',
'name' =>'displaynamehere',
);

require_once($sourcedir . '/Subs-Post.php');

sendpm($pm_register_recipients, $txt['smftrader_newrating'], $row['comment_short'] .  "\n\n" . $txt['smftrader_commentmadeby'] . $row['real_name'] . "\n" . "{$scripturl}?action=profile",false,$pm_from);

One more thing again. Pm for notification is okay. But there is another pm for approval and that is still coming from admin (ID:1).

Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Skaty on January 04, 2013, 02:36:23 PM
How can i change the pm sender for approval trade ?
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: vbgamer45 on January 04, 2013, 02:58:27 PM
Quick check scan the code for the sendpm function there should be a member id that you can change to the other. Like i did for the other one.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Skaty on January 05, 2013, 05:02:02 PM
Quick check scan the code for the sendpm function there should be a member id that you can change to the other. Like i did for the other one.

i did something like this but it didn't work like before.

Code: [Select]
$pm_register_recipients = array(
'to' => array($row['FeedBackMEMBER_ID']),
'bcc' => array(),
);


$pm_from = array(
'id' => 1916,
'username' => 'usernamehere',
'name' =>'displaynamehere',
);

require_once($sourcedir . '/Subs-Post.php');

$finaltime = timeformat(forum_time(false));
$finaltime = strip_tags($finaltime);

sendpm($pm_register_recipients, sprintf($txt['smftrader_commenter_subject'],$row['MainName']),
sprintf($txt['smftrader_commenter_body'],$row['MainName'],$finaltime));
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: vbgamer45 on January 06, 2013, 11:35:43 PM
Change
sendpm($pm_register_recipients, sprintf($txt['smftrader_commenter_subject'],$row['MainName']),
To
sendpm($pm_register_recipients, sprintf($txt['smftrader_commenter_subject'],$row['MainName']),
   sprintf($txt['smftrader_commenter_body'],$row['MainName'],$finaltime),$pm_from);
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Skaty on January 07, 2013, 08:04:27 AM
Change
sendpm($pm_register_recipients, sprintf($txt['smftrader_commenter_subject'],$row['MainName']),
To
sendpm($pm_register_recipients, sprintf($txt['smftrader_commenter_subject'],$row['MainName']),
   sprintf($txt['smftrader_commenter_body'],$row['MainName'],$finaltime),$pm_from);

done. but when i approove a feedback, pm is still sending from admin.

Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Skaty on January 23, 2013, 04:37:44 PM
How can i delete this member name ?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2FxUw2Xfw.jpg&hash=c702f86a60318855b1b09ac51031b83e)
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: vbgamer45 on January 23, 2013, 05:16:37 PM
What page is that shown on?
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Skaty on January 23, 2013, 05:22:02 PM
What page is that shown on?

Ultimate profile, member's profile.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: hcfwesker on January 23, 2013, 09:11:34 PM
Skaty, This MOD doies not add to ultimate profile, it's a custom add-in you added from the ultimate profile support topic.  So, it would be best if you pasted the code you're using from that file to help others see what you're using and can tell you more specifically what to do.  just keep in mind to add every detail possible when you ask for support, especially when it's something done custom.  ;)

My best guess would be top remove the line of code just below where you added the call to that image button. ;)  But won't know exactly for sure unless I can see the exact code.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Skaty on January 24, 2013, 07:31:11 AM
i find it :)  i add this image from modification.php file, just replaced it with the words :)

to delete the member name find this code and replace it from profile template or ultim.prof.temp.

find
Code: [Select]
<dt class="clear"><a href="' . $scripturl .  '?action=trader&sa=submit&id=' . $context['member']['id'] . '">' . $txt['smftrader_submitfeedback'] . $context['member']['name'] . '</a></dt>
replace
Code: [Select]
<dt class="clear"><a href="' . $scripturl .  '?action=trader&sa=submit&id=' . $context['member']['id'] . '">' . $txt['smftrader_submitfeedback'] . $context['name'] . '</a></dt>
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: vbgamer45 on January 24, 2013, 08:58:06 AM
Glad you were able to figure it out.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Kindred on February 20, 2013, 12:41:05 PM
just added the trader info as a block in the ultimate profile mod (without this block, there is not good way to access the trader details)

Code: (Add to the end of UltimateProfile.template.php) [Select]
function up_block_trader() {
  global $context, $settings, $options, $scripturl, $modSettings, $txt, $user_info, $sourcedir;

   // Start SMF Trader System
   include_once $sourcedir . '/Trader2.php';
 
   $tradecount = GetTraderCount($context['member']['id']);
 
   GetTraderInformation($context['member']['id']);
 
   $context['neturalcount'] = 0;
   $context['pcount'] = 0;
   $context['ncount'] = 0;
   foreach($context['trader_mem_data'] as $row)
   {
     if ($row['salevalue'] == 0)
     {
       $context['pcount'] = $row['total'];
     }
     else if ($row['salevalue'] == 2)
     {
       $context['ncount'] = $row['total'];
     } 
     else if ($row['salevalue'] == 1)
     {
       $context['neturalcount'] = $row['total'];
     }
   }
 
   $context['tradecount_nonetural'] = ($context['pcount'] +  $context['ncount']);
   if ($modSettings['trader_use_pos_neg'])
     $tradecount = ($context['pcount'] -$context['ncount']);

    echo '
    <div id="up_trader">
      <h3 class="catbg">
        <span class="left"></span>
        ', $txt['smftrader_title'] ,'
      </h3>
      <div class="windowbg creator">
        <span class="topslice"><span></span></span>
      <div class="content">
      <dl>
          <dt><strong>' . $txt['smftrader_profile'] . ' :</strong> </dt>
          <dd>(<a href="' . $scripturl .  '?action=trader&id=' . $context['member']['id'] . '">' . ($modSettings['trader_use_pos_neg'] ? ($tradecount > 0 ? '+' . $tradecount : $tradecount)  : $tradecount) . '</a>)</dd>
          <dt><strong>' . $txt['smftrader_positivefeedbackpercent']  . ' :</strong> </dt>
          <dd>' , $context['tradecount_nonetural'] != 0 ? round(($context['pcount'] / $context['tradecount_nonetural']) * 100, 2) : 0 , '%</dd>
          <dt><strong>' . $txt['smftrader_positivefeedback'] . ' :</strong> </dt>
          <dd>' . $context['pcount'] . '&nbsp;<img src="' .  $modSettings['smileys_url'] . '/default/smiley.gif" alt="positive" /></dd>
          <dt><strong>' . $txt['smftrader_neutralfeedback']  . ' :</strong> </dt>
          <dd>' .  $context['neturalcount'] . '&nbsp;<img src="' . $modSettings['smileys_url'] . '/default/undecided.gif" alt="neutral" /></dd>
          <dt><strong>' . $txt['smftrader_negativefeedback']  . ' :</strong> </dt>
          <dd>' .  $context['ncount'] . '&nbsp;<img src="' .  $modSettings['smileys_url'] . '/default/angry.gif" alt="negative" /></dd>
          <dt><strong>' . $txt['smftrader_totalfeedback']  . ' :</strong> </dt>
          <dd>' .  ($context['pcount'] - $context['ncount']) . '</dd>';
            if ($user_info['id'] != $context['member']['id'])
            echo '
              <br /><dt class="clear"><a href="' . $scripturl .  '?action=trader&sa=submit&id=' . $context['member']['id'] . '">' . $txt['smftrader_submitfeedback'] . $context['member']['name'] . '</a></dt>';
  echo '
    </dl>
        </div>
        <span class="botslice"><span></span></span>
      </div>
    </div>';
   
    return true;
  //  } else
  //  return false;
   
   // END SMF Trader System

}

and then, add the line
     'trader',
to any of the ultimate profile column definition lists (at the top of the file)
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Game.ruler on February 23, 2013, 03:42:59 PM
Please help me.
I have "Broken Links List" mod installed. Now when i am installing this mod and opening then getting this error:
"Fatal error: Cannot redeclare delete() (previously declared in /home/******/public_html/Sources/Trader2.php:481) in /home/*******/public_html/Sources/BrokenLinksList.php on line 353".
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Kindred on February 23, 2013, 03:50:59 PM
looks like both mods are using the same function name. You probably won't be able to run both mods together unless one of the authors is willing to re-write it.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Game.ruler on February 24, 2013, 04:25:01 AM
hi kindred, if there is any way i can rename function name to something else, i just need some guidence to do this.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: hcfwesker on February 24, 2013, 05:37:52 PM
hi kindred, if there is any way i can rename function name to something else, i just need some guidence to do this.

maybe try this ...


Sources/Trader2.php

Find
Code: [Select]
$context['sub_template']  = 'delete';Replace with
Code: [Select]
$context['sub_template']  = 'deletetr';
default/Trader2.template.php

Find
Code: [Select]
function template_delete()Replace with
Code: [Select]
function template_deletetr()
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Game.ruler on February 25, 2013, 04:40:38 AM
Hi hcfwesker, thanks for reply. But these changes dint work. Then i changed only "function Delete()" to "function Deleter()" , then it worked fine. Is this change is good, or will it cause some problems?
Because i dont know their effects after renaming some function.
Thanks.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Arantor on February 25, 2013, 10:34:40 AM
You can't just rename the function you have to rename the places where it calls that function so it's calling the *right* one.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Game.ruler on February 25, 2013, 12:48:51 PM
oh, i thought its fine. Coz after renaming i was able to open SMFTrader tab in admin panel.
I will check all codes and rename the function wherever its called.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Arantor on February 25, 2013, 12:49:46 PM
You can't just blindly rename *all* of them, you have to rename all of them in only one mod ;)
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: hcfwesker on February 26, 2013, 01:39:02 AM
Hi hcfwesker, thanks for reply. But these changes dint work. Then i changed only "function Delete()" to "function Deleter()" , then it worked fine. Is this change is good, or will it cause some problems?
Because i dont know their effects after renaming some function.
Thanks.

I went with those cause your error you posted showed delete() , so i went with the lower cased one.  For the capitol Delete() , there's only two locations in the Trader MOD where they're listed.

Sources/Trader2.php

find
Code: [Select]
'delete' => 'Delete',Replace with
Code: [Select]
'delete' => 'Deleter',
Find
Code: [Select]
function Delete()Replace with
Code: [Select]
function Deleter()
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Skaty on March 04, 2013, 05:45:39 AM
Please help me.
I have "Broken Links List" mod installed. Now when i am installing this mod and opening then getting this error:
"Fatal error: Cannot redeclare delete() (previously declared in /home/******/public_html/Sources/Trader2.php:481) in /home/*******/public_html/Sources/BrokenLinksList.php on line 353".

i'm using them both, and i didn't do customization for it. if help i was installed broken link list first.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Skaty on April 07, 2013, 07:35:11 AM
Hi, i want to do something usefull, can you help me guys ? i want to shown member's trader reliability in his trader post. in post background or aroung the post with a little graphic. it have to shown only in trader board. can we do such a thing ? is it to inconvenient ?

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fi.imgur.com%2Fjq895R5.jpg&hash=2f1aa81801202964b2ea11723dbad8ce)
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Neo_TE on July 02, 2013, 12:13:04 PM
How to prevent guests from viewing the actual feedback list?

As of now, the trading feedback of each user is listed in all posts.

I made the following edit in "display.template.php" to hide the trader feedback from posts.

Code: [Select]
// Show the trader info
if(!$context['user']['is_guest'])                <= I added this line to check if the user is guest
echo '<li>
<b>' . $txt['smftrader_profile'] . ' </b>
(<a href="' . $scripturl .  '?action=trader&id=' . $message['member']['id'] . '">', $modSettings['trader_use_pos_neg'] ? ($tradecount > 0 ? '+' . $tradecount : $tradecount)  : $tradecount  , '</a>)</li>';


But still, anyone who knows the link to the actual feedback, i.e.

hxxp://www.----.com/community/index.php?action=trader&id=[USER_ID]

So the guest can access the feedback of any user if they know the user id (which will be displayed in each post).

I don't want guests to view the feedback list of any user. Only users who have logged-in should be able to view the feedback list.


Could someone please help. Thanks.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: vbgamer45 on July 02, 2013, 12:14:51 PM
You would need to edit the Sources/Trader.php

And add the command
is_not_guest();

To functions in that file.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Neo_TE on July 02, 2013, 12:21:33 PM
It worked. Thank you very much. :D
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: vbgamer45 on July 02, 2013, 12:30:11 PM
Glad to help!
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Maxtor on July 26, 2013, 03:56:35 PM
1) what if only one admin have to approve 1k of approvals? will need a lot of time to check each one if its legit of fake.
2) also there is no antispam protection (1 feedback each 2 hours example, like karma mod) , currently a membergroup can easily abuse feedback and leave thousands of feedbacks to their friends . (if set to autoaproval) .

ps. you have great mods, but when its on big forums, some more problems occur.

my idea is to add thes permissions:

1) auto accept feedbacks (if set to enabled , this membergroup will auto accept feedbacks without need of aproval)
2) can approve feedbacks (access to approval page) simple moderators will help admins in approvals.

Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: vbgamer45 on July 26, 2013, 04:07:38 PM
Good ideas but I would have to write code for them.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Maxtor on July 26, 2013, 04:10:40 PM
Good ideas but I would have to write code for them.
make a Trader System pro version and i will buy it :D
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: vbgamer45 on July 26, 2013, 04:11:11 PM
I do not have the time at the moment have bigger projects that I am part of.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Kindred on July 26, 2013, 06:23:25 PM
I have this used on a huge forum.... and we have no issues with any of that. If any user abuses the system, they get banned. So far, no one has tested our resolve and they have all followed the written rules.
(it's always better to get buyin form the users than to try and programtically force things, IMO)
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Maxtor on July 27, 2013, 07:58:16 PM
I have this used on a huge forum.... and we have no issues with any of that. If any user abuses the system, they get banned. So far, no one has tested our resolve and they have all followed the written rules.
(it's always better to get buyin form the users than to try and programtically force things, IMO)
actually i have already 56 pages of approval requests, many of them are double, some of them are pure spam and some are fake and less legit. ive got huge marketing going on my site and this mod lacks of some features.
if i set autoapproval on, then im definetely sure i will get some thousands of feedbacks, because my members average age are 16-18 years old.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Kindred on July 27, 2013, 09:13:19 PM
are you allowing guests to submit reviews?

That would be your problem, then...   I only allow members to post feedback and I have no problems at all (with over 35,000 users including many teenagers (our forum is related to a miniatures wargame, played by lots of teens)
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Maxtor on July 29, 2013, 06:19:49 PM
are you allowing guests to submit reviews?

That would be your problem, then...   I only allow members to post feedback and I have no problems at all (with over 35,000 users including many teenagers (our forum is related to a miniatures wargame, played by lots of teens)
i allow all groups except guests. but autoapproval is disabled. so all aproves must be done manually. i have to spend some time to check if all are valid. (no doubles, no friend feedbacks, no fake feedbacks)
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Kindred on July 29, 2013, 06:34:36 PM
I have no problems at all (with over 35,000 users including many teenagers (our forum is related to a miniatures wargame, played by lots of teens)
I think that you are making more work for yourself than you need to....
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: hcfwesker on August 01, 2013, 02:21:32 PM
2) can approve feedbacks (access to approval page) simple moderators will help admins in approvals.

I've coded this into my site, so staff could help.  coulda sworn I posted the edits somewhere in this topic.

EDIT::

Nm, I posted my attempts (http://www.simplemachines.org/community/index.php?topic=98912.msg3312030#msg3312030), but forgot to share the edits when I got it to work.  i'll try and dig up the edits from my files.   

@ Maxtor :  Is there a certain place you'd like a quick menu link to the Trader admin menu?  Like under the 'Moderate' tab for staff members?  Or do you want these members to be able to goto the 'Admin' menu and select the Trader mod adminpage from there?



Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: rrdein on September 06, 2013, 05:31:33 AM
Does this work with any mods besides the default mod?
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Kindred on September 06, 2013, 07:27:37 AM
what?

that did not make any sense......


However, This mod is integrated into SMF Bay and SMF Classifieds
I have also integrated this into Ultimate Profile.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Mandr4ke on November 14, 2013, 12:56:39 PM
Thank you for a great mod, I'm testing it under 2.0.6 with no issues so far - or just theme specific issues I've been sorting out manually.

I have a question that has appeared before in a similar fashion. I'm running a forum with a trading feedback section, so far based on individual members threads updated every time there's new feedback. Of course that requires manual updates of the corresponding fields in users profiles, and hence automating the process will be extremely helpful. I'm ready to manually introduce in the SMF Trader System all the feedback reported so far, since I'm aware that modifying the database is not an option.  Question is how to proceed in order to do this.

Does the feedback have to be introduced necessarily from the corresponding user's forum session? I was thinking about enabling a temporary input field in the feedback form, to include the username submitting the feedback along with the type of feedback and comments. And once all the existing feedback has been migrated to the Trader System, and before enabling Trader System permissions for members, revert the form to default.

I'm learning php basics the hard way and I would really appreciate any suggestions on how to proceed about this.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Kindred on November 14, 2013, 01:01:32 PM
why is modifying the database note an option?
That would seem to be the BEST option...

export the feedback and put it into a table with the correct columns (user being reviewed, user doing the review, feedback content, etc -- check the actual database tabel for the exact columns

and then run an import and put it into the database
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: Mandr4ke on November 14, 2013, 01:22:41 PM
Maybe I ruled out the option of modifying the database when I read this comment (http://www.simplemachines.org/community/index.php?topic=98912.msg2251158#msg2251158) and the reply (http://www.simplemachines.org/community/index.php?topic=98912.msg2251375#msg2251375). I see now I misunderstood and the "No way for admin to change the feedback" refers to the admin forum interface.

So thank you for the heads up. I cannot really "export" the feedback since it's in forum posts, but I can type it manually into a proper database template, then import the csv. Do you know if any sample of the Trader System database columns has been posted here so far?  - or nevermind if I should simply download mine once the mod is installed, locate the Trader fields and append the manually introduced data.
Title: Re: SMF Trader System (1.6 Released) Now Supports SMF 2.0!
Post by: vbgamer45 on November 14, 2013, 01:32:10 PM
If you want to change someones comments/feedback that would be though the database requires some sql knowledge and access to a tool such as phpMyAdmin
Title: Re: SMF Trader System (1.7 Released) Now Supports SMF 2.0!
Post by: SMFHacks.com Team on May 30, 2014, 11:31:54 PM
Update
1.7
!Fixed undefined errors in settings area for SMF 2.0.x
!Fixed icon for trader system in admin area for SMF 2.0
Title: Re: SMF Trader System (1.7 Released) Now Supports SMF 2.0!
Post by: loose-cannon on October 13, 2014, 07:20:18 AM
Odd issue..

My trader system was operating correctly until recently, but I am now receiving an error when you click on a members feedback rating to either view or submit new feedback.  The page displays  (An error has occurred) and (no member selected). 

About the only thing that has changed an seo mod..  I really dont know if the seo mod is at fault here, but if anyone has any ideas please help.  Thanks in advance.  :(
Title: Re: SMF Trader System (1.7 Released) Now Supports SMF 2.0!
Post by: vbgamer45 on October 13, 2014, 07:25:31 AM
Can you send me a link to a page where I can click it?
Title: Re: SMF Trader System (1.7 Released) Now Supports SMF 2.0!
Post by: loose-cannon on October 13, 2014, 07:34:51 AM
I PMed you a link....  hope thats ok, if not please let me know.
Title: Re: SMF Trader System (1.7 Released) Now Supports SMF 2.0!
Post by: vbgamer45 on October 13, 2014, 08:09:30 AM
Thanks took look and appears to be a conflict with the seo mod. The orginal link works but not the prettied url does not.
Title: Re: SMF Trader System (1.7 Released) Now Supports SMF 2.0!
Post by: loose-cannon on October 13, 2014, 10:27:41 AM
Thanks...  I fixed it by disabling "pretty actions".
Title: Re: SMF Trader System (1.7 Released) Now Supports SMF 2.0!
Post by: vbgamer45 on October 13, 2014, 10:53:12 AM
Yeah I do that in pretty urls too. Normally I just use seo on topics and boards
Title: Re: SMF Trader System (1.7 Released) Now Supports SMF 2.0!
Post by: saurabh82 on June 10, 2015, 04:10:25 PM
I have installed mod smf trader system but it is not showing.
But trader is not showing on any profile checked almost all sections but there is no option of setting it up.
Any help would be appreciated
Title: Re: SMF Trader System
Post by: Bobby Z on August 14, 2016, 01:13:48 PM
Can someone tell me where are this package files into forum root so i can edit something ?

For example i want rename Trade Count in profile to something else. Thank you.
Title: Re: SMF Trader System
Post by: Kindred on August 14, 2016, 01:18:08 PM
No...  That would be the installation files...   

The file he wants is in the languages directory...
Title: Re: SMF Trader System
Post by: vbgamer45 on August 14, 2016, 01:54:37 PM
The language files would be in themes/default/languages/modifications.*.php files
and or trader.english.php
Title: Re: SMF Trader System
Post by: blunted on October 24, 2016, 10:21:10 PM
ive got an seo mod installed

everything works but for some reason the submit feedback links in smf trader loop back
Title: Re: SMF Trader System
Post by: vbgamer45 on October 24, 2016, 11:02:09 PM
Loop back to where?
Title: Re: SMF Trader System
Post by: lukonic on February 25, 2017, 12:29:25 PM
Hello. i am using this awesome mod, but it doesn't show the feedbacks in the forum, next to the posts. Is that how it is supposed to be? i can only see the feedbacks  if i go to user's profile. i am using SMF 2.0.13 and GamingNation template.

i have noticed that on the default template it works. How can i move it to GamingNation template?

i fixed it myself. Apparently i'm just sucky with understanding the basics x3
Title: Re: SMF Trader System
Post by: vbgamer45 on February 25, 2017, 12:50:27 PM
Glad you have it figured out!
Title: Re: SMF Trader System
Post by: Alex_Hypnose on June 30, 2018, 09:21:07 PM
Hey vbgamer45, great mod!

I was wondering if it would be possible to display the score like this "Feedback score (x) p%"?
What I would find useful would be to insert in that line the percentage from iTrader profile - Positive Feedback: p%

Thanks!
Title: Re: SMF Trader System
Post by: vbgamer45 on June 30, 2018, 09:47:39 PM
Possible but requires manual code changes.
Title: Re: SMF Trader System
Post by: Alex_Hypnose on July 01, 2018, 01:55:07 PM
Did someone managed to do it, or are you thinking on implementing it as a paid feature?

Title: Re: SMF Trader System
Post by: vbgamer45 on July 01, 2018, 02:27:49 PM
I don't believe so I might able to do it as a paid job.
Title: Re: SMF Trader System
Post by: trator on September 13, 2018, 10:57:10 AM
Hello I am having hard time using this mod.

I am using NightBreeze theme.

I have installed the mod then I got...
Configuration > Trader Settings... > Trader Settings

(https://i.imgur.com/b85NmPL.png)

I took care of permission as well...

(https://i.imgur.com/Vb1CWRJ.png)

But I do not see any feedback to show in users profile or anywhere. What am I missing?
Title: Re: SMF Trader System
Post by: Kindred on September 13, 2018, 11:01:43 AM
did you install it into your custom theme?
Title: Re: SMF Trader System
Post by: trator on September 13, 2018, 11:04:20 AM
did you install it into your custom theme?
I guess I did. How do I check it mate?
Title: Re: SMF Trader System
Post by: vbgamer45 on September 13, 2018, 11:08:35 AM
You should see it on post display under the username

If not you have to make edits to your custom theme file upload the mod to https://www.smfhacks.com/smf-package-parser.html and get the theme edits.
Title: Re: SMF Trader System
Post by: Kindred on September 13, 2018, 11:29:11 AM
it shows like this for me (I added mine to the Ultimate Profile mod, which replaces my normal profiles)

and it shows here in permissions (second attachment)
Title: Re: SMF Trader System
Post by: trator on September 13, 2018, 11:29:20 AM
You should see it on post display under the username

If not you have to make edits to your custom theme file upload the mod to https://www.smfhacks.com/smf-package-parser.html and get the theme edits.
I did not need to go through this. I realized the at the time of installation I did not check the theme. Now I installed it again and it's working. Thanks mate for information. You are awesome.
Title: Re: SMF Trader System
Post by: vbgamer45 on September 13, 2018, 11:33:35 AM
Glad you have it working. I do wish we had a way with SMF to reapply a mod to a custom theme after the mod has been installed.
Title: Re: SMF Trader System
Post by: Kindred on September 13, 2018, 01:40:18 PM
I do wish we had a way with SMF to reapply a mod to a custom theme after the mod has been installed.


Add a request/issue on Github :) maybe for the release after 2.1
Title: Re: SMF Trader System
Post by: SMFHacks.com Team on October 18, 2018, 12:14:11 AM
Update!

2.0
+Improved SMF 2.0 style in some areas of the trader system.
+Listing is now shown on the detail page if you have SMF Classifieds installed.
+Listing Title now shown above short comment if you have SMF Classifieds installed.
+Buyer/Seller now in bold on trader feedback listing page
!Better support for UTF8 characters SMF 2.0
!Fixed an issue with sometimes allowing the same SMF Classifieds listing to be allowed to be rated twice.
Title: Re: SMF Trader System
Post by: SMFHacks.com Team on March 01, 2019, 05:31:01 PM
2.0a
+Added support for SMF 2.1.x
Title: Re: SMF Trader System
Post by: SMFHacks.com Team on March 30, 2019, 04:34:40 PM
Update
2.0.1
!Do not show trader link for guests posts
Title: Re: SMF Trader System
Post by: njtweb on June 18, 2019, 07:05:40 AM
I've never used this and would like to remove it. I'm getting the following test failed errors but they don't make sense. They fail and say to replace with the same failed file.

Can I safely remove this mod without worry?

Thank you for your help.
Title: Re: SMF Trader System
Post by: vbgamer45 on June 18, 2019, 08:50:30 AM
That is safe to ignore. Happens when mods add to those langauge files.
Title: Re: SMF Trader System
Post by: njtweb on June 18, 2019, 11:58:46 AM
That is safe to ignore. Happens when mods add to those langauge files.

Thank you, I removed it and didn't get any errors but Trader count is still there in the post bit user info. Can I manually remove that from display.template? If so, can you direct me which chunk of code to remove?

Thank you
Title: Re: SMF Trader System
Post by: vbgamer45 on June 18, 2019, 12:12:22 PM
Yes in display.template.php remove
Code: [Select]
// Start SMF Trader System
if (!empty($message['member']['id']))
{
global $sourcedir;
include_once $sourcedir . '/Trader2.php';

GetTraderInformation($message['member']['id']);


$context['neturalcount'] = 0;
$context['pcount'] = 0;
$context['ncount'] = 0;
foreach($context['trader_mem_data'] as $row)
{
if ($row['salevalue'] == 0)
{
$context['pcount'] = $row['total'];
}
else if ($row['salevalue'] == 2)
{
$context['ncount'] = $row['total'];
}
else if ($row['salevalue'] == 1)
{
$context['neturalcount'] = $row['total'];
}

}



if ($modSettings['trader_use_pos_neg'])
$tradecount = ($context['pcount'] - $context['ncount']);
else
$tradecount = $context['pcount'] + $context['ncount'] + $context['neturalcount'];



// Show the trader info
echo '<li>
<b>' . $txt['smftrader_profile'] . ' </b>
(<a href="' . $scripturl .  '?action=trader&id=' . $message['member']['id'] . '">', $modSettings['trader_use_pos_neg'] ? ($tradecount > 0 ? '+' . $tradecount : $tradecount)  : $tradecount  , '</a>)</li>';

}
//END SMF Trader System
Title: Re: SMF Trader System
Post by: njtweb on June 18, 2019, 12:22:31 PM
I removed the trader system. I dumped the SMF file cache. I did a shift F5 and a cntrl F5. I looked in Display.template and none of the SMF trader system code is there. But the Trader bit is still on the front end?
Title: Re: SMF Trader System
Post by: vbgamer45 on June 18, 2019, 12:34:36 PM
check default theme files.
Title: Re: SMF Trader System
Post by: njtweb on June 18, 2019, 12:39:42 PM
check default theme files.

Default curve? That is my default theme.
Title: Re: SMF Trader System
Post by: njtweb on June 18, 2019, 01:17:59 PM
Update - I don't know why I didn't see it with a cntrl F but I went line by line and found it. It's gone now.
Title: Re: SMF Trader System
Post by: shadav on August 17, 2019, 07:38:12 PM
ok i'm blind or something, I added this to 2.0.15 but I can not find anywhere in the admin to set it on/off or anything...
it's showing up on members pages and post info but as far as I can tell there is nothing in the admin for settings and whatnots....


nevermind, my install got a bit botched up... fixed the admin file
Title: Re: SMF Trader System
Post by: vbgamer45 on August 17, 2019, 07:50:56 PM
there should be an admin setting called trader settings in the dropdiwns