Back to vBulletin 3.7 Add-ons

[AJAX] Threads rating
Mod Version: 1.5.2, by mad@Max

This modification is in the archives.
vB Version: 3.7.x Rating: (28 votes - 4.64 average) Installs: 145
Released: 12 Jul 2008 Last Update: 15 Jan 2009 Downloads: 1289
Not Supported Uses Plugins Auto-Template Code Changes Additional Files  

This mod merge of three old mods:
vB.org Rating System Replica
[AJAX] Your One Click Thread Ratings
Who Rated This Thread / Delete Who Rated

Futures:
- Now it is not necessary to delete elements from a template
- You can choose id forums, where a rating threads to display it is necessary or not necessary
- On click rating icon in the threads you get info about voting
- You can delete vote from thread rating
- Realisation with AJAX

Install:

Extract all files from folder "Upload" in forum root directory

Find in file threadrate.php on youre server:

PHP Code:
        $xml->add_tag('voteavg'process_replacement_vars("$vbphrase[rating]: <img class=\"inlineimg\" src=\"$stylevar[imgdir_rating]/rating_$thread[rating].gif\" alt=\"" construct_phrase($vbphrase['thread_rating_x_votes_y_average'], $thread['votenum'], $thread['voteavg']) . "\" border=\"0\" />")); 
Replace with:

PHP Code:
        $currate = ($thread['voteavg']*25 px);
        
$xml->add_tag('voteavg'process_replacement_vars("<table cellpadding=\"$stylevar[cellpadding]\" cellspacing=\"0\" border=\"0\" width=\"100%\"><tr><td align=\"right\" width=\"45%\" nowrap=\"nowrap\"><div><strong>$vbphrase[trate_currate]</strong></div></td><td align=\"left\" width=\"55%\" nowrap=\"nowrap\"><ul class=\"star-rating\" title=\"" construct_phrase($vbphrase['thread_rating_x_votes_y_average'], $thread['votenum'], $thread['voteavg']) . "\"><li class=\"current-rating\" style=\"width:$currate;\"></li></td></tr></table>")); 
Using the Product Manager, upload the Product that came with this modification.

Admincp > Plugins and Products > Manage Products > [Add/Import Product] >

product-trate.xml

Update:

Uninstall old mod and import product (v1.3)

Upload stars.png in folder your style, by default /images/rating/

Enjoy!

DEMO
http://www.mixplay.ru/forum.php // choose any thread
user: Test
pass: 123456

&d=1220348854

Click Install, if you like this mod

Download

This modification is archived, downloads are still allowed.

File Type: %1$s Thread Rating Eng 1.2.zip (8.6 KB, 70 downloads)
File Type: %1$s Thread Rating Eng 1.4.2.zip (15.0 KB, 235 downloads)
File Type: %1$s [AJAX] Threads Rating Eng 1.5.2.zip (14.9 KB, 359 downloads)

Screenshots

Click image for larger version
Name:	trate2.jpg
Views:	1815
Size:	10.1 KB
ID:	84058   Click image for larger version
Name:	trate3.jpg
Views:	1506
Size:	9.4 KB
ID:	84059   Click image for larger version
Name:	trate_set.jpg
Views:	971
Size:	26.7 KB
ID:	85097   Click image for larger version
Name:	tratevid.gif
Views:	1322
Size:	337.2 KB
ID:	85424  


vblts.ru supports vBulletin®, 2022-2024