Threads rating

NAZIA

New Member
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 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:
$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
MixPlay Forum // choose any thread
user: Test
pass: 123456


smile.gif

tratevidcd5.gif
 
yes this mod is great

i've request but no reponse !

many thanks nazia :)

can you post the mod "collapsable posbit user info" for 3.7.x from the same coder

thx

(sorry for my english :s)
 
KillaStaff said:
yes this mod is great

i've request but no reponse !

many thanks nazia :)

can you post the mod "collapsable posbit user info" for 3.7.x from the same coder

thx

(sorry for my english :s)
Did you post the request in request forum?
 
have a problem with 3.7.4

The nick under the threadnames are linked to the votewindows who only see the admin...

when i click on a rate he sad no permission
 
Zipfelklatscher said:
have a problem with 3.7.4

The nick under the threadnames are linked to the votewindows who only see the admin...

when i click on a rate he sad no permission
working fine on 3.8 rc1
 
Back
Top