Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Trader Ratings v1.2.0 Details »»
Trader Ratings v1.2.0
Version: 1.2.0, by eoc_Jason eoc_Jason is offline
Developer Last Online: Jan 2020 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 05-31-2004 Last Update: 11-14-2004 Installs: 254
DB Changes
 
No support by the author.

Trader Ratings - A user feedback hack
Copyright ?2004 Jason Rabel, All Rights Reserved.
__________________________________
Latest TR Verson: 1.2.0
vB Versions: 3.0.0 - 3.0.9
Author: Jason Rabel
Contact: PM me here, I'll respond.
Site: EXTREME Overclocking
??????????????????????????????????

Updates:
??????????????????????????????????
1.2.0 - September 4, 2004
- Added Trader Ratings Stats Page (finally!)
- Added PM notification when someone receives feedback
- Changed how positive feedback percentage score is calculated (bugfix)
- Ability to "close" the Trader Ratings pages (for maintainence or whatever) - TRATING_CLOSED
- Ability to set the URL field when submitting feedback to required or optional - TRATING_REQ_URL

1.1.0 - June 7, 2004
- Added time-based user edit/delete abilities, set via TRATING_UEDIT constant in traderratings.php file
- Userdate field is now an int field to be consistent with vBulletin
- Userrating field changed to tinyint to save space
- Fixed timeframes for showing historical ratings
- Made some various code consolidation
- Added missing ".TABLE_PREFIX." statement
- Templates.txt file shows code for postbit & MEMBERINFO, with conditional examples
- All 3 templates changed heavily
- Added some more phrases & fixed missing phrases

1.0.1 - June 2, 2004
- Fixed a "divide by zero" display error
- Postbit template fixed so guests do not have a trader rating

1.0.0 - June 1, 2004
- Initial Public Release

Description:
??????????????????????????????????
Trader Ratings has evolved from my vB2 Buy/Sell/Trade User Rating System. This is a rating system for when members buy / sell / trade items from each other (presumably on a FS section of your forum). It is based on the honor system since there is no way to truly tell if they did engage in a transaction. (But I'm working on a way to fix that.) Trader Ratings came about because it was a pain to try and maintain a single thread listing good / bad traders and so far has worked out quite well.

Features:
??????????????????????????????????
? Rate another member: Positive / Negative / Neutral
? Specify Buyer, Seller, or Trade
? Leave comments about the deal
? Records date when rating created
? Specify a URL to the deal
? Display ratings over time
? Filter based on Buyer/Seller/Trade/or feedback they left for others
? Users can edit/delete ratings left for others (time based limitation)
? Admins & Mods can edit/delete anyone's ratings (just incase)
? Stats page showing best & worst rated members, and recent ratings
? PM notification when a person is rated

Basic Info:
??????????????????????????????????
I haven't written a FAQ or any real documentation yet, but the way the system works is very simple. The only part that might confuse someone is that the Feedback Score is based only on UNIQUE members. Also, there are simple checks in place to make sure they actually do select proper info and enter a comment. A user is not able to rate themself (obviously). Permissions for viewing / rating are similar to standard forum viewing / posting permissions. Also it checks to make sure users exist and all that good stuff.

Installation Info:
??????????????????????????????????
This hack is very simply to implement requiring only:
? 1 new file
? 5 new templates / 2-3 template changes (navbar, posbit/postbit_legacy, MEMBERINFO, memberlist_resultsbit)
? 52 new phrases
? 1 new DB table / 1 table DB change & index

An install/upgrade PHP file is included to do all the template/phrase/DB stuff, so basically you run that, upload the file, and edit your postbit template. BAM!

Screen Shots / Demos:
??????????????????????????????????
See Screenshots below, or you can view them on my forums: My Trader Rating Page

Standard Disclaimer:
??????????????????????????????????
BACKUP YOUR DATABASE & FILES BEFORE IMPLEMENTING THIS HACK!!!

Forums Using This Hack:
??????????????????????????????????
EXTREME Overclocking Forums
i-Club -- Forums
Accord Tuner
NSX Prime
Honda-Acura.net
Guns Network
PimpRig

(PM me your forum if you want me to add you to the list)

Donations:
??????????????????????????????????
This hack will always be free, however your donations are kindly accepted and will help towards further development. If you donate, please leave me some info (either your forum site or username at vB.org) so that I can thank you.


Plans For Future Releases:
??????????????????????????????????
? rebuttal / followup comments
? item description (possibly instead of thread url)
? button on thread that buyer/seller clicks to tie the transaction to two people

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #352  
Old 09-25-2004, 05:46 AM
wynode wynode is offline
 
Join Date: Aug 2004
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK i've searched this thread but can't seem to find the solution......

Basically there have been a couple of cases where the "Submit Feedback For xxxx" link has not come up in the trader ratings screen.

For example, others have been able to rate myself, but there is at least one user who cannot rate me (the link doesn't come up).

And just now another user reported the same error when trying to rate someone else.

ANy ideas?
Reply With Quote
  #353  
Old 09-25-2004, 01:44 PM
eoc_Jason's Avatar
eoc_Jason eoc_Jason is offline
 
Join Date: Dec 2001
Location: Houston, TX
Posts: 493
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The only permissions a user must have is the "CANPOSTNEW", and also a user can not rate them self. Other than that the link should appear unless you have added custom rules to the <if> statement.
Reply With Quote
  #354  
Old 09-27-2004, 01:47 PM
Jimboj79 Jimboj79 is offline
 
Join Date: Jul 2004
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent mod thankyou
Reply With Quote
  #355  
Old 10-03-2004, 05:15 AM
wynode wynode is offline
 
Join Date: Aug 2004
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by eoc_Jason
The only permissions a user must have is the "CANPOSTNEW", and also a user can not rate them self. Other than that the link should appear unless you have added custom rules to the <if> statement.
Thanks for that!

I had setup a new group and their permissions weren't set properly. That's why some users were affected and not others.

Great work...lovin this hack!
Reply With Quote
  #356  
Old 10-03-2004, 06:35 AM
andrew67 andrew67 is offline
 
Join Date: Dec 2001
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great hack Jason, I have it working on my test board wonderfully. But on trying to install it to my functional board I got the following errors.

Quote:
Database error in vBulletin 3.0.3:

Invalid SQL:
CREATE TABLE user_rate_trade (
userrateid int(10) unsigned NOT NULL auto_increment,
rateduser int(10) unsigned NOT NULL default '0',
userid int(10) unsigned NOT NULL default '0',
userrating smallint NOT NULL default '0',
usercomments varchar(80) NOT NULL default '',
userdate int(10) unsigned NOT NULL default '0',
userbuysell tinyint(1) unsigned NOT NULL default '0',
userurl varchar(255) NOT NULL default '',
PRIMARY KEY (userrateid),
KEY rateduser (rateduser,userrating),
KEY rateduser_2 (rateduser,userdate,userrating),
KEY rateduser_3 (rateduser,userbuysell,userdate,userrateid),
KEY userdate (userdate)
) TYPE=MyISAM AUTO_INCREMENT=1

mysql error: Table 'user_rate_trade' already exists

mysql error number: 1050

Date: Sunday 03rd of October 2004 04:08:53 PM
This I attempted to fix by search replacing all "user_rate_trade"'s in the php file with "vb3_user_rate_trade".

Then attempted to install again.
And received the following.
Quote:
Database error in vBulletin 3.0.3:

Invalid SQL: INSERT INTO phrase (languageid, varname, text, phrasetypeid) VALUES (0, 'tratings', 'Trader Ratings', 1)
mysql error: Duplicate entry 'tratings-0-1' for key 2

mysql error number: 1062
Which I then fixed by removing all the phrases that were added by the php file.

Then went to install a third time and received.

Quote:
Database error in vBulletin 3.0.3:

Invalid SQL: ALTER TABLE user ADD ratetradetotal SMALLINT(5) DEFAULT '0' NOT NULL
mysql error: Duplicate column name 'ratetradetotal'

mysql error number: 1060
Any ideas?

My next approach is to change the "vb3_user_rate_trade" to something else again and change the "ratetradetotal" to something else as I can't actually remove the tables (no access).
Cheers
andrew
Reply With Quote
  #357  
Old 10-03-2004, 01:27 PM
Vixion Vixion is offline
 
Join Date: Jul 2004
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am thinking about using this modification on my own forum. But I need to have something clear.

The screenshots attached in the first post, are very clear, they look like eBay, but does the system work with a unique feedback score?
I.E.
Person A. makes a trade with Person B. Because of a good trade, Person A. leave a feedback for Person B.
After 2 weeks Person A. and B. trade again. And after that trade they leave a feedback again.

Now my question;
Does every feedback counts to the total (I.E. Person A. (30)) or does the feedback-score only displays the UNIQUE trades, with UNIQUE people?
Reply With Quote
  #358  
Old 10-03-2004, 03:08 PM
newb1e_'s Avatar
newb1e_ newb1e_ is offline
 
Join Date: Sep 2004
Location: UK
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi all,

looking at some of the previous question's I'm a little embaressed to ask this (ultra obvious I imagine but here goes)

in the templates editing area of the readme it says

Quote:
- Add somewhere:

<if condition="$post['userid']"><div>Trader Rating: (<a href="traderratings.php?$session[sessionurl]u=$post[userid]">$post[ratetradetotal]</a>)</div></if>
Could someone give me a quick idea where I should place the code in postbit/postbit_legacy/MEMBERINFO? Please help a newbie

thanks in advance, be gentle :surprised:
Reply With Quote
  #359  
Old 10-03-2004, 03:34 PM
Lord Brar's Avatar
Lord Brar Lord Brar is offline
 
Join Date: Jul 2004
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Gee. Thanks Dude! I really needed something like this for SellAdSpace.com! The installation was Really Easy!

Wonderful Hack. Thanks!
Reply With Quote
  #360  
Old 10-03-2004, 03:35 PM
Lord Brar's Avatar
Lord Brar Lord Brar is offline
 
Join Date: Jul 2004
Posts: 102
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Forgot to add - *Clicks Install*
Reply With Quote
  #361  
Old 10-03-2004, 04:31 PM
JazzleBug JazzleBug is offline
 
Join Date: Feb 2004
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is excellent and will save us much time. Thanks for the hard work and support! Super easy installation!

Something I'd like to see in the future if you continue to develop this is complete admincp integration where the admin can alter the numbers without having to manually create new entries. Having seen the code and the database, I don't imagine that this would be incredibly easy as the numbers come from counting individual entries, correct? I'm certainly not a programmer (though, it's fun to think I am lol), so I don't have a clue what goes into coding something like this. I do think that it might bypass the need for a full conversion script (assuming everyone is just running around with one long thread of feedback on their forum). 'K - I'll shut up.

Thanks for the script!

Steph
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:40 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05597 seconds
  • Memory Usage 2,330KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (3)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete