Back to vBulletin 3.8 Add-ons

[AJAX] Threads Rating
Mod Version: 2.6, by mad@Max

vB Version: 3.8.x Rating: (10 votes - 4.60 average) Installs: 58
Released: 20 Aug 2009 Last Update: 27 Aug 2009 Downloads: 498
Not Supported DB Changes Uses Plugins Auto-Template Additional Files Re-usable Code  

Description:
This is a rewritten version of this version [AJAX] Threads rating. Functionality is same, but working it little bit by another way

Difference between versions 1.x and 2.x:

- much better code (php, js, html)
- eliminated one query on showthread

Compatibility:
3.7.x - 3.8.x

Features:
  • choose forums, where a rating threads to display it is necessary or not necessary
  • view rating statistic
    • choose groups with view permission
    • choose groups with view permission
  • allow/deny rate self threads
  • allow choose 10 point system
  • navigation by page raters
  • fully 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.

###############################

For ten point system:

Open: threadrate.php

Find:

PHP Code:
if ($vbulletin->GPC['vote'] < OR $vbulletin->GPC['vote'] > 5
Replace with:

PHP Code:
if ($vbulletin->GPC['vote'] < OR $vbulletin->GPC['vote'] > 10
--------------------------------------------------------

Open: /includes/class_dm_threadrate.php

Find:

PHP Code:
var $max_vote 5
Replace with:

PHP Code:
var $max_vote 10
###############################

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

product-trate.xml

Update:

Uninstall old mod and replace all files with newest, import product (latest)

Enjoy!

DEMO https://www.youtube.com/watch?v=A3zRjkjQD6k

PS Sorry, the screenshots in russian, but I think, and so everything is clear

Click Install, if you like this mod

Download

File Type: %1$s [AJAX] Threads Rating En v2.0.zip (15.7 KB, 99 downloads)
File Type: %1$s [AJAX] Threads Rating En v2.6.zip (18.2 KB, 446 downloads)

Screenshots

Click image for larger version
Name:	trbitdel.JPG
Views:	1325
Size:	16.6 KB
ID:	103462   Click image for larger version
Name:	trset.JPG
Views:	920
Size:	89.6 KB
ID:	103463   Click image for larger version
Name:	trshow.JPG
Views:	1151
Size:	16.2 KB
ID:	103464   Click image for larger version
Name:	tratevid.gif
Views:	1020
Size:	337.2 KB
ID:	103465  

Similar Mods

Show Thread Enhancements [AJAX] Threads rating vBulletin 3.7 Add-ons

vblts.ru supports vBulletin®, 2022-2024