Welcome to Egypt Forums Mark forums read | Egypt Main Page
Egypt Forums



Mods for 3.7.x vBulletin Mods for 3.7, vBulletin hacks, vBulletin modification, vBulletin 3.7

Mods for 3.7.x Thread, [AJAX] Threads rating in Mods; [AJAX] Threads rating Futures: - Now it is not necessary to delete elements from a template - You can choose ...

Short Link: http://forum.egypt.com/enforum/showthread.php?t=3882


Reply
LinkBack Thread Tools Display Modes
[AJAX] Threads rating
 
 
The God Father
Developer's Avatar

Reply With Quote
 
Join Date: Jul 2008
Location: NDC
Posts: 5,416
29-09-2008, 01:09 PM
 
[AJAX] Threads rating

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 stars" in the threads or forums 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:
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:
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
www.mixplay.ru/forum.php // choose any thread
user: Test
pass: 123456
Attached Files
File Type: zip Thread Rating Eng 1.2.zip (8.6 KB, 7 views)
File Type: zip Thread Rating Eng 1.4.1.zip (15.0 KB, 11 views)
__________________
I Love Walking In The Rain Cuz Nobody Know I'm Crying !!
 
 
 
Reply

Mods for 3.7.x Thread, [AJAX] Threads rating in Mods; [AJAX] Threads rating Futures: - Now it is not necessary to delete elements from a template - You can choose ...

Short Link: http://forum.egypt.com/enforum/showthread.php?t=3882


Bookmarks

Tags
ajax, rating, threads


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[AJAX] Album Next & Prev Links Use AJAX Developer Mods for 3.8.x 0 02-12-2008 12:36 AM
Mass Tag Threads Developer Mods for 3.7.x 0 25-09-2008 11:27 PM
vBorg Thread Rating Developer Mods for 3.6.x 0 22-09-2008 10:46 PM
Automatically close threads after X repliesProduct name: Automatically close threads Developer Mods for 3.7.x 0 15-09-2008 09:30 PM
Help others by rating How To Set Username 'Color/Font/Style' Per Usergroup. Developer Articles 0 13-09-2008 01:24 AM