The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[AJAX] Threads rating Details »» | |||||||||||||||||||||||||
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:
PHP Code:
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 Thread Rating T?rk?e 1.4.1.zip Click Install, if you like this mod Show Your Support
|
Comments |
#192
|
||||
|
||||
If you want move box with rating, open Threads rating Maintains and look on string
PHP Code:
|
#193
|
|||
|
|||
Does this work 3.8.x ??
|
#194
|
||||
|
||||
|
#195
|
|||
|
|||
Not working for me. It shows whilie i vote then it disappears
|
#196
|
|||
|
|||
I'm getting 404 errors - /threadratinginfo.php?threadid=36
How do I fix that? |
#197
|
||||
|
||||
All files is uploaded?
|
#198
|
|||
|
|||
Hi,
Can you help me chang code to vote from this to this . Thanks , |
#199
|
|||
|
|||
The mod is great - thanks! But I have a problem and my friends too.
My forum is on dedicated server, but the ratings is very slow. When I'm clicking on one of stars to rate - I must wait 3-4 seconds to see the rate, but I see that in your forum I have waited 1 second! Can you help me with it? |
#200
|
||||
|
||||
F4VN,
I've changed the template to meet your needs. I wanted it as well. Replace the trate_main template with this: Code:
<if condition="$show['threadrating']"> <if condition="$show['ratethread']"> <div class="quickajaxrating" style="text-align:center; padding-bottom: 5px; background: #FFDC84; color:#000;""> <span id="oneclick_container"> <if condition="!$rated"> <noscript> $vbphrase[rating]: </noscript> <form action="threadrate.php?t=$threadid" method="post" id="oneclick_vote_one"> <input type="hidden" name="s" value="$session[dbsessionhash]" /><input type="hidden" name="t" value="$threadid" /><input type="hidden" name="pp" value="$perpage" /><input type="hidden" name="page" value="$pagenumber" /><input type="hidden" name="vote" value="1" /><input type="submit" value="1" style="display:none;"/> <noscript> <input type="submit" value="1" /> </noscript> </form> <form action="threadrate.php?t=$threadid" method="post" id="oneclick_vote_two"> <input type="hidden" name="s" value="$session[dbsessionhash]" /><input type="hidden" name="t" value="$threadid" /><input type="hidden" name="pp" value="$perpage" /><input type="hidden" name="page" value="$pagenumber" /><input type="hidden" name="vote" value="2" /><input type="submit" value="1" style="display:none;"/> <noscript> <input type="submit" value="2" /> </noscript> </form> <form action="threadrate.php?t=$threadid" method="post" id="oneclick_vote_three"> <input type="hidden" name="s" value="$session[dbsessionhash]" /><input type="hidden" name="t" value="$threadid" /><input type="hidden" name="pp" value="$perpage" /><input type="hidden" name="page" value="$pagenumber" /><input type="hidden" name="vote" value="3" /><input type="submit" value="1" style="display:none;"/> <noscript> <input type="submit" value="3" /> </noscript> </form> <form action="threadrate.php?t=$threadid" method="post" id="oneclick_vote_four"> <input type="hidden" name="s" value="$session[dbsessionhash]" /><input type="hidden" name="t" value="$threadid" /><input type="hidden" name="pp" value="$perpage" /><input type="hidden" name="page" value="$pagenumber" /><input type="hidden" name="vote" value="4" /><input type="submit" value="1" style="display:none;"/> <noscript> <input type="submit" value="4" /> </noscript> </form> <form action="threadrate.php?t=$threadid" method="post" id="oneclick_vote_five"> <input type="hidden" name="s" value="$session[dbsessionhash]" /><input type="hidden" name="t" value="$threadid" /><input type="hidden" name="pp" value="$perpage" /><input type="hidden" name="page" value="$pagenumber" /><input type="hidden" name="vote" value="5" /><input type="submit" value="1" style="display:none;"/> <noscript> <input type="submit" value="5" /> </noscript> </form> <script type="text/javascript"> <!-- var threadid = $threadinfo[threadid]; document.write('<table cellpadding="$stylevar[cellpadding]" cellspacing="0" border="5" width="100%"><tr><td align="right" width="45%" nowrap="nowrap"><div><strong>$vbphrase[trate_rateit]</strong></div></td><td align="left" width="$widthcolumn%" nowrap="nowrap"><div class="current-rating" style="width:$current_rating;"><label for="vote5"><input type="radio" name="vote" id="oneclick_vote_five_submit" value="5" $votechecked[5] />$vbphrase[excellent]</label><label for="vote4"><input type="radio" name="vote" id="oneclick_vote_four_submit" value="4" $votechecked[4] />$vbphrase[good]</label><label for="vote3"><input type="radio" name="vote" id="oneclick_vote_three_submit" value="3" $votechecked[3] />$vbphrase[average]</label><label for="vote2"><input type="radio" name="vote" id="oneclick_vote_two_submit" value="2" $votechecked[2] />$vbphrase[bad]</label><label for="vote1"><input type="radio" name="vote" id="oneclick_vote_one_submit" value="1" $votechecked[1] />$vbphrase[terrible]</label></div></div></td>$evr</tr></table>'); --> </script> <script type="text/javascript" src="clientscript/vbulletin_ajax_oneclick_threadrate.js?v=$vboptions[simpleversion]"> </script> <script type="text/javascript"> <!-- var threadid = $threadinfo[threadid]; vB_AJAX_OneClick_ThreadRate_Init('oneclick_vote_one'); vB_AJAX_OneClick_ThreadRate_Init('oneclick_vote_two'); vB_AJAX_OneClick_ThreadRate_Init('oneclick_vote_three'); vB_AJAX_OneClick_ThreadRate_Init('oneclick_vote_four'); vB_AJAX_OneClick_ThreadRate_Init('oneclick_vote_five'); --> </script> <else /> <div align="center" style="font-size: 15px; font-family: verdana; font-weight: bold;">You have already rated this thread!</div> </if> <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="$widthcolumn%" nowrap="nowrap"> <ul class="star-rating" title="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>"> <li class="current-rating" style="width:$current_rating;"> </li> </ul> </td>$evr </tr> </table> </if> </span> <span id="oneclick_threadrating_current"></span> <span id="oneclick_threadrating_response"></span> </div> </if> <br/> |
#201
|
|||
|
|||
hi, i'm using this mod and i really love it!
is there a way to have the thread rating with 10 stars instead of 5? thanks |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|