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
  #52  
Old 06-02-2004, 12:28 PM
Spinball's Avatar
Spinball Spinball is offline
 
Join Date: Feb 2002
Location: Telford, England
Posts: 705
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

One point Jason. If the person given a rating is now deleted, there are empty brackets in the rating screen. Perhaps you could put 'Guest' in there instead? Or whatever the default is for deleted users?
Reply With Quote
  #53  
Old 06-02-2004, 02:17 PM
Beermonster Beermonster is offline
 
Join Date: Dec 2003
Location: England
Posts: 362
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

unbelievable easy to install

[high]* Beermonster clicks install[/high]
Reply With Quote
  #54  
Old 06-02-2004, 02:30 PM
eoc_Jason's Avatar
eoc_Jason eoc_Jason is offline
 
Join Date: Dec 2001
Location: Houston, TX
Posts: 493
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Spinball - It would probably be wiser to edit your postbit and add an <if condition=> for a guest to not display a trader rating link.

I'll make that correction in the code, and also I need to fix a divide by zero that someone posted above. So 1.01 should be released within the next hour or so.

Quote:
Originally Posted by Spinball
One point Jason. If the person given a rating is now deleted, there are empty brackets in the rating screen. Perhaps you could put 'Guest' in there instead? Or whatever the default is for deleted users?
Reply With Quote
  #55  
Old 06-02-2004, 03:20 PM
eoc_Jason's Avatar
eoc_Jason eoc_Jason is offline
 
Join Date: Dec 2001
Location: Houston, TX
Posts: 493
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, v1.01 has been posted. I sent out an email to the list. There are also all the intructions in the readme for upgrading from 1.0->1.01

Anyone who still can't get their TR to work, please PM me or post again with your specific problem, I'm not sure who has fixed their issues and who hasn't in this thread.
Reply With Quote
  #56  
Old 06-02-2004, 03:26 PM
Odoin's Avatar
Odoin Odoin is offline
 
Join Date: Jun 2002
Location: Whos your Jim Bob?
Posts: 98
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This might have been asked... Also this might be simple or hard but I do not understand VB enough to know what it will take.... I want to display the user rating only in the forums that have items for sale or wanted.... Right now it displays in every forum... (postbit). Any ideas?

Thank you for your time.
Reply With Quote
  #57  
Old 06-02-2004, 03:31 PM
Spinball's Avatar
Spinball Spinball is offline
 
Join Date: Feb 2002
Location: Telford, England
Posts: 705
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Jason,
can I bring the other issue we were discussing by PM into the public arena incase there are other people in the same position?
Basically before we installed Jason's excellent hack for vB2, we manually kept records of trader ratings.
Our users naturally want to keep these points.
In the vB2 system, I just incremented their points in the user table the once and that was all that was needed.
Now, however, with the groovy list of ratings, I think an explanation as to where the extra points are from is neccessary.
To test this I have created a dummy entry in the rating table assigning 20 points to myself with the explanation that they were carried over from the manual system.
These points are shown in the posts for users - (excellent!) but not, however, in the ratings page for that user.
Now I appreciate that this might be difficult to achieve with the extra data like 'members who left a positive' and 'members whi left a negative' type statistics.
But would it be possible to make the feedback score at the top be
Quote:
SELECT sum(userrating) FROM user_rate_trade WHERE rateduser = the_user_id
Reply With Quote
  #58  
Old 06-02-2004, 07: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

One issue that comes up when you manually changed it is, you don't know how many were postitive, and how many were negative (or even neutral), nor do you know how many were from unique members. You just have an arbitrary number that sums up to something. Your solution is to simply take the difference of what is stored in the trade table and the rating you created, and create only all pos/neg entries to balance them out.

In all honesty I think it would just be better to drop what numbers you manually changed, and allow users to either re-rate whatever they can truly remember, or just let them live with their new (err, old) score and it can build up if they buy or sell more stuff. I don't consider it a life-altering event if a few points were lost.

However, since you seem intent on keeping their new numbers, your first SQL query that you PMed me will give you the score difference between the new and old. Then for each rating you will need to create the corresponding amount of rating rows in the trade table, which you can use either userid 0 (it should display a blank username) or 1 (which should be yours).

The whole point of the new ratings system is to display mostly by unique members, as to not over inflate a users rating (eBay, among many other sites and software packages do the same). I think it is more correct to see that X person has had X postitive feedback from unique people, rather than the same number from a single person. Changing the feedback score to not count by unique members is not difficult, however in the long run I don't think it should be done just for the sake of the few ratings that had to be manually inserted.

But, to answer your question, with v1.01 you will need to edit the traderratings.php file in two places to adjust the counting method. First at the very bottom in the tratings_user function, this is what recalculates and updates the rating score in the user tabel whenever a rating is added or deleted. Second is in the do=view section near the top, it's similar to the code in the function (In v1.02 I've actually changed it some so that it uses the same function.) But you can basically remove the "DISTINCT" clause out and that will count all entried, not members. But then you should probably change the text on the page accordingly since the pos/neg totals will no longer be by members either. (and the All positive feedback received part will be redudant).

Like I said before, I think it would probably be best just to drop the manual edits and let people gripe and moan for a while until they get over it, so that your ratings will be consistent with everyone elses and you won't have to always hack up code every time I post a new release (since I'm planning on adding a lot more features, I don't know how many will interfere with your plans for how you want it to function).
Reply With Quote
  #59  
Old 06-02-2004, 07:51 PM
eoc_Jason's Avatar
eoc_Jason eoc_Jason is offline
 
Join Date: Dec 2001
Location: Houston, TX
Posts: 493
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oh yeah, I forgot to ask you guys, but would you be interested in me adding the ability for users to rate based on usergroups? It's not terribly hard. I actually use it on my site currently because new users can't use/see the FS/WTB section so it only makes sense for them not to be able to rate people.
Reply With Quote
  #60  
Old 06-02-2004, 10:45 PM
lifesourcerec's Avatar
lifesourcerec lifesourcerec is offline
 
Join Date: Jan 2002
Posts: 429
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

For those with the

PHP Code:
Trader Ratings: () 
issue, try logging out of the forum and re-signing in. Usually works for oue users.
Reply With Quote
  #61  
Old 06-02-2004, 11:11 PM
lifesourcerec's Avatar
lifesourcerec lifesourcerec is offline
 
Join Date: Jan 2002
Posts: 429
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dunno if this is already a feature or not, but how can you make:

Specific URL mandatory and somehow make it where that a link a\can only be used twice (one time for each involved).
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 08:11 AM.


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.05399 seconds
  • Memory Usage 2,329KB
  • 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
  • (1)bbcode_php
  • (2)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
  • (2)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