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
  #322  
Old 09-08-2004, 01:59 AM
eoc_Jason's Avatar
eoc_Jason eoc_Jason is offline
 
Join Date: Dec 2001
Location: Houston, TX
Posts: 493
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Oops... Man I need to get more sleep... I just updated the .zip again... So now people upgrading from 1.1.0 -> 1.2.0 should go smooth.

Everyone else, just follow the step above, making sure it is "1.2.0" and NOT "v1.x.0"
Reply With Quote
  #323  
Old 09-08-2004, 09:31 AM
oldfan's Avatar
oldfan oldfan is offline
 
Join Date: Jul 2004
Posts: 813
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

eoc_Jason thanks alot for this feature
One question, how could I remove "Wall of Shame" ?
Reply With Quote
  #324  
Old 09-08-2004, 01:46 PM
Watson's Avatar
Watson Watson is offline
 
Join Date: May 2004
Location: Scotland
Posts: 220
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is still the best hack I have used, Thanks very much (if I wasnt an unemployed bum I would donate) It just works so well for my music trading forums
Reply With Quote
  #325  
Old 09-08-2004, 03:25 PM
VodkaFish VodkaFish is offline
 
Join Date: Oct 2003
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by oldfan
eoc_Jason thanks alot for this feature
One question, how could I remove "Wall of Shame" ?
You can remove it by editing the tratings_stats template. Look for the $vbphrase[tratings_wall_of_shame] area. Let's say you wanted to just comment it out so you have just the two other columns, you could do something like this:
Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head><title>$vboptions[bbtitle] - $vbphrase[tratings]</title>
$headinclude
</head>
<body>
$header
$navbar

  <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    <tr>
      <td class="tcat" align="center"><phrase 1="$vbphrase[tratings]">$vbphrase[x_statistics]</phrase></td>
      <td class="tcat" align="center">$vbphrase[tratings_recent_ratings]</td>
      <td class="tcat" align="center">$vbphrase[tratings_find_member]</td>
    </tr>
    <tr>
	<td class="alt1" valign="top">
	<div align="$stylevar[left]">
        <table border="0" cellpadding="5">
          <tr>
            <td>$vbphrase[tratings_total_feedback]:<br>$vbphrase[tratings_members_rated]:</td>
            <td><b>$pginfo[total_ratings]<br>$pginfo[rated_count]</b></td>
          </tr>
          <tr>
            <td>$vbphrase[tratings_feedback_today]:<br>$vbphrase[tratings_average_feedback]:</td>
            <td>$pginfo[ratings_today]<br>$pginfo[ratings_average]</td>
          </tr>
        </table>
	</div>
	</td>
	<td class="alt1" valign="top">
	<div align="$stylevar[left]">
        <table border="0" cellpadding="2" width="100%">
          <tr>
            <td>&nbsp;</td>
            <td align="center">$vbphrase[tratings_past_month]</td>
            <td align="center">$vbphrase[tratings_past_6_months]</td>
            <td align="center">$vbphrase[tratings_past_12_months]</td>
          </tr>
	  <tr>
	    <td colspan="4" class="alt2" style="padding:1px"></td>
	  </tr>
          <tr style="color:#008000">
            <td align="left"><img src="images/icons/icon10.gif" align="absmiddle" alt="$vbphrase[tratings_positive]" /> $vbphrase[tratings_positive]</td>
            <td align="center"><if condition="$userinfo[tradepos30]">$userinfo[tradepos30]<else />0</if></td>
            <td align="center"><if condition="$userinfo[tradepos180]">$userinfo[tradepos180]<else />0</if></td>
            <td align="center"><if condition="$userinfo[tradepos365]">$userinfo[tradepos365]<else />0</if></td>
          </tr>
	  <tr>
	    <td colspan="4" class="alt2" style="padding:1px"></td>
	  </tr>
          <tr>
            <td align="left"><img src="images/icons/icon5.gif" align="absmiddle" alt="$vbphrase[tratings_neutral]" /> $vbphrase[tratings_neutral]</td>
            <td align="center"><if condition="$userinfo[tradeneu30]">$userinfo[tradeneu30]<else />0</if></td>
            <td align="center"><if condition="$userinfo[tradeneu180]">$userinfo[tradeneu180]<else />0</if></td>
            <td align="center"><if condition="$userinfo[tradeneu365]">$userinfo[tradeneu365]<else />0</if></td>
          </tr>
	  <tr>
	    <td colspan="4" class="alt2" style="padding:1px"></td>
	  </tr>
          <tr  style="color:#FF0000">
            <td align="left"><img src="images/icons/icon8.gif" align="absmiddle" alt="$vbphrase[tratings_negative]" /> $vbphrase[tratings_negative]</td>
            <td align="center"><if condition="$userinfo[tradeneg30]">$userinfo[tradeneg30]<else />0</if></td>
            <td align="center"><if condition="$userinfo[tradeneg180]">$userinfo[tradeneg180]<else />0</if></td>
            <td align="center"><if condition="$userinfo[tradeneg365]">$userinfo[tradeneg365]<else />0</if></td>
          </tr>
        </table>
	</div>
	</td>
	<td class="alt1" valign="top">
	<div align="$stylevar[left]">
		<form action="memberlist.php" method="post">
		<input type="hidden" name="s" value="$session[sessionhash]" />
		<input type="hidden" name="do" value="getall" />
			<div class="fieldset">
				$vbphrase[username]:<br />
				<input type="text" class="bginput" size="25" name="ausername" value="" />
			</div>

			<div style="margin-top:$stylevar[cellpadding]px">
				<input type="submit" class="button" value="Search Now" accesskey="s" />
			</div>
		</form>
	</div>
	</td>
    </tr>
  </table>

<br />

<table cellpadding="0" cellspacing="5" border="0" align="center">
	<tr>
	<td valign="top">
		<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" align="center">
		<tr>
		<td class="tcat" align="center" nowrap="nowrap">$vbphrase[tratings_recent_ratings]</td>
		</tr>
		$pginfo[recent_ratings]
		</table>
	</td>
	<td valign="top">
		<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" align="center">
		<tr>
		<td class="tcat" align="center" nowrap="nowrap">$vbphrase[tratings_top_traders]</td>
		</tr>
		$pginfo[top_rated]
		</table>
	</td>
<!--	<td valign="top">
		<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" align="center">
		<tr>
		<td class="tcat" align="center" nowrap="nowrap">$vbphrase[tratings_wall_of_shame]</td>
		</tr>
		$pginfo[bottom_rated]
		</table>
	</td> -->
	</tr>
</table>

<div align="right" class="smallfont">$vbphrase[tratings] $vbphrase[tratings_version]</div>
$footer

</body>
</html>
Reply With Quote
  #326  
Old 09-08-2004, 05:02 PM
eoc_Jason's Avatar
eoc_Jason eoc_Jason is offline
 
Join Date: Dec 2001
Location: Houston, TX
Posts: 493
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Alternatively if you want it to appear automatically when the first negative rating is given, you can do the conditionals around that block instead of the comments...

like: <if condition="!$pginfo[bottom_rated]">....</if>

(I think that should work, but its not tested).
Reply With Quote
  #327  
Old 09-08-2004, 08:27 PM
VodkaFish VodkaFish is offline
 
Join Date: Oct 2003
Posts: 125
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got rid of it on mine because there's a single negative rating. I know it sounds silly, but for a guy that had one trade go bad, I didn't want to crucify him until he had company
Reply With Quote
  #328  
Old 09-09-2004, 02:43 AM
oldfan's Avatar
oldfan oldfan is offline
 
Join Date: Jul 2004
Posts: 813
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

worked like a charm, thanks !

Quote:
Originally Posted by VodkaFish
You can remove it by editing the tratings_stats template. Look for the $vbphrase[tratings_wall_of_shame] area. Let's say you wanted to just comment it out so you have just the two other columns, you could do something like this:
Code:
$stylevar[htmldoctype]
<html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]">
<head><title>$vboptions[bbtitle] - $vbphrase[tratings]</title>
$headinclude
</head>
<body>
$header
$navbar

  <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
    <tr>
      <td class="tcat" align="center"><phrase 1="$vbphrase[tratings]">$vbphrase[x_statistics]</phrase></td>
      <td class="tcat" align="center">$vbphrase[tratings_recent_ratings]</td>
      <td class="tcat" align="center">$vbphrase[tratings_find_member]</td>
    </tr>
    <tr>
	<td class="alt1" valign="top">
	<div align="$stylevar[left]">
        <table border="0" cellpadding="5">
          <tr>
            <td>$vbphrase[tratings_total_feedback]:<br>$vbphrase[tratings_members_rated]:</td>
            <td><b>$pginfo[total_ratings]<br>$pginfo[rated_count]</b></td>
          </tr>
          <tr>

            <td>$vbphrase[tratings_feedback_today]:<br>$vbphrase[tratings_average_feedback]:</td>
            <td>$pginfo[ratings_today]<br>$pginfo[ratings_average]</td>
          </tr>
        </table>
	</div>
	</td>
	<td class="alt1" valign="top">
	<div align="$stylevar[left]">
        <table border="0" cellpadding="2" width="100%">
          <tr>
            <td>&nbsp;</td>
            <td align="center">$vbphrase[tratings_past_month]</td>
            <td align="center">$vbphrase[tratings_past_6_months]</td>
            <td align="center">$vbphrase[tratings_past_12_months]</td>
          </tr>
	  <tr>
	    <td colspan="4" class="alt2" style="padding:1px"></td>
	  </tr>
          <tr style="color:#008000">
            <td align="left"><img src="images/icons/icon10.gif" align="absmiddle" alt="$vbphrase[tratings_positive]" /> $vbphrase[tratings_positive]</td>
            <td align="center"><if condition="$userinfo[tradepos30]">$userinfo[tradepos30]<else />0</if></td>
            <td align="center"><if condition="$userinfo[tradepos180]">$userinfo[tradepos180]<else />0</if></td>
            <td align="center"><if condition="$userinfo[tradepos365]">$userinfo[tradepos365]<else />0</if></td>
          </tr>
	  <tr>
	    <td colspan="4" class="alt2" style="padding:1px"></td>
	  </tr>
          <tr>
            <td align="left"><img src="images/icons/icon5.gif" align="absmiddle" alt="$vbphrase[tratings_neutral]" /> $vbphrase[tratings_neutral]</td>
            <td align="center"><if condition="$userinfo[tradeneu30]">$userinfo[tradeneu30]<else />0</if></td>
            <td align="center"><if condition="$userinfo[tradeneu180]">$userinfo[tradeneu180]<else />0</if></td>
            <td align="center"><if condition="$userinfo[tradeneu365]">$userinfo[tradeneu365]<else />0</if></td>
          </tr>
	  <tr>
	    <td colspan="4" class="alt2" style="padding:1px"></td>
	  </tr>
          <tr  style="color:#FF0000">
            <td align="left"><img src="images/icons/icon8.gif" align="absmiddle" alt="$vbphrase[tratings_negative]" /> $vbphrase[tratings_negative]</td>
            <td align="center"><if condition="$userinfo[tradeneg30]">$userinfo[tradeneg30]<else />0</if></td>
            <td align="center"><if condition="$userinfo[tradeneg180]">$userinfo[tradeneg180]<else />0</if></td>
            <td align="center"><if condition="$userinfo[tradeneg365]">$userinfo[tradeneg365]<else />0</if></td>
          </tr>
        </table>
	</div>
	</td>
	<td class="alt1" valign="top">
	<div align="$stylevar[left]">
		<form action="memberlist.php" method="post">
		<input type="hidden" name="s" value="$session[sessionhash]" />
		<input type="hidden" name="do" value="getall" />
			<div class="fieldset">
				$vbphrase[username]:<br />
				<input type="text" class="bginput" size="25" name="ausername" value="" />
			</div>

			<div style="margin-top:$stylevar[cellpadding]px">
				<input type="submit" class="button" value="Search Now" accesskey="s" />
			</div>
		</form>
	</div>
	</td>
    </tr>
  </table>

<br />

<table cellpadding="0" cellspacing="5" border="0" align="center">
	<tr>
	<td valign="top">
		<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" align="center">
		<tr>
		<td class="tcat" align="center" nowrap="nowrap">$vbphrase[tratings_recent_ratings]</td>
		</tr>
		$pginfo[recent_ratings]
		</table>
	</td>
	<td valign="top">
		<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" align="center">
		<tr>
		<td class="tcat" align="center" nowrap="nowrap">$vbphrase[tratings_top_traders]</td>
		</tr>
		$pginfo[top_rated]
		</table>
	</td>
<!--	<td valign="top">
		<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" align="center">
		<tr>
		<td class="tcat" align="center" nowrap="nowrap">$vbphrase[tratings_wall_of_shame]</td>
		</tr>
		$pginfo[bottom_rated]
		</table>
	</td> -->
	</tr>
</table>

<div align="right" class="smallfont">$vbphrase[tratings] $vbphrase[tratings_version]</div>
$footer

</body>
</html>
Reply With Quote
  #329  
Old 09-09-2004, 02:45 AM
oldfan's Avatar
oldfan oldfan is offline
 
Join Date: Jul 2004
Posts: 813
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks again eoc_Jason
BtW has Trader Ratings 1.2.0 been voted a HOTM yet?
If not it should be!

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

1.1.0 was submitted I think for two months... Didn't make #1 pick though...

Maybe this version will get a few more votes if it gets listed again.
Reply With Quote
  #331  
Old 09-10-2004, 06:55 PM
ChrisBaktis ChrisBaktis is offline
 
Join Date: Mar 2004
Location: CT
Posts: 409
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome Upgrade!
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:27 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.07626 seconds
  • Memory Usage 2,362KB
  • 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
  • (2)bbcode_code
  • (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
  • (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