[AJAX] Threads Rating
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:
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\" />"));
PHP Code:
$currate = ($thread['voteavg']*25 . px);
############################### For ten point system: Open: threadrate.php Find: PHP Code:
if ($vbulletin->GPC['vote'] < 1 OR $vbulletin->GPC['vote'] > 5)
PHP Code:
if ($vbulletin->GPC['vote'] < 1 OR $vbulletin->GPC['vote'] > 10)
Open: /includes/class_dm_threadrate.php Find: PHP Code:
var $max_vote = 5;
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
[AJAX] Threads Rating En v2.0.zip (15.7 KB, 99 downloads) Screenshots |
Similar Mods
Show Thread Enhancements [AJAX] Threads rating | vBulletin 3.7 Add-ons |