Advertisement:

Author Topic: SMF Trader System  (Read 259299 times)

Offline Xarcell

  • SMF Hero
  • ******
  • Posts: 1,684
  • Gender: Male
  • SMF-DP Supporter
Re: SMF Trader System
« Reply #40 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.

Offline Xarcell

  • SMF Hero
  • ******
  • Posts: 1,684
  • Gender: Male
  • SMF-DP Supporter
Re: SMF Trader System
« Reply #41 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.

Offline klaus3

  • Semi-Newbie
  • *
  • Posts: 31
Re: SMF Trader System
« Reply #42 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.

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,670
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMF Trader System
« Reply #43 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.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Ben_S

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 11,725
  • xxx
Re: SMF Trader System
« Reply #44 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.
Liverpool FC Forum with 14 million+ posts.

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,670
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMF Trader System
« Reply #45 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.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline nay27uk

  • Full Member
  • ***
  • Posts: 573
  • Gender: Male
    • Lister Hosting
Re: SMF Trader System
« Reply #46 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

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,670
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMF Trader System
« Reply #47 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.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Greek

  • Full Member
  • ***
  • Posts: 493
  • Gender: Male
    • Πάρε-Δώσε - Αντικαρκινικό Forum
Re: SMF Trader System
« Reply #48 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  :)

Offline Kidsphoenixx

  • Semi-Newbie
  • *
  • Posts: 12
  • Gender: Female
    • ABS - Fabulous Serendipity!
Re: SMF Trader System
« Reply #49 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. :)
T.A.N.S.T.A.A.F.L.

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,670
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMF Trader System
« Reply #50 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.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline choloman05

  • Full Member
  • ***
  • Posts: 620
  • Gender: Male
    • Competition Web Marketing
Re: SMF Trader System
« Reply #51 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.

Offline RoarinRow

  • Full Member
  • ***
  • Posts: 662
  • Gender: Male
  • Ride my AV!
    • Avalanche Style
Re: SMF Trader System
« Reply #52 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. 

SMF 2.0
TP 1.0 RC1.1
Wordpress 3.1.3

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,670
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMF Trader System
« Reply #53 on: December 30, 2006, 12:51:16 AM »
Looks good there too.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline RoarinRow

  • Full Member
  • ***
  • Posts: 662
  • Gender: Male
  • Ride my AV!
    • Avalanche Style
Re: SMF Trader System
« Reply #54 on: December 30, 2006, 12:55:43 AM »
Looks good there too.

Yup, blends in with the post count   8)

SMF 2.0
TP 1.0 RC1.1
Wordpress 3.1.3

Offline WebWorm

  • Semi-Newbie
  • *
  • Posts: 25
Re: SMF Trader System
« Reply #55 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?

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,670
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: SMF Trader System
« Reply #56 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.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline WebWorm

  • Semi-Newbie
  • *
  • Posts: 25
Re: SMF Trader System
« Reply #57 on: January 04, 2007, 08:42:47 PM »
Thanks vbgamer, I appreciate knowing I won't kill something today.  ;D

Offline Cyberclone

  • Semi-Newbie
  • *
  • Posts: 27
Re: SMF Trader System
« Reply #58 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>
« Last Edit: January 15, 2007, 05:03:38 AM by Cyberclone »

Offline Shonick

  • Jr. Member
  • **
  • Posts: 148
    • Blogger Resources
Re: SMF Trader System
« Reply #59 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