The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Rate Thread /Like Vb.org/
Would like to find a mod that is pretty close to this at least. Big fan of how the rating system here at vbulletin.org works, a lot of time it never gets used, but here it is used all the time cause its like BLAM right in your face haha. |
#2
|
||||
|
||||
|
#3
|
||||
|
||||
ill try it out and see if i cant maybe mess with it a bit, thank you for the super fast response.
--------------- Added [DATE]1445206569[/DATE] at [TIME]1445206569[/TIME] --------------- literally so confused , that man does a bad job explaining how to make them template edites, delte this, then add this, and delte this thing u already delted....... dangit. |
#4
|
||||
|
||||
Quote:
boy are you going to have fun if you think this is to confusing.. |
#5
|
||||
|
||||
I have attached an .xml file that uses the code in the cited mod, but requires no template edits. I employed a db query to determine if a user has already rated a thread, and if they have, then they are not asked to rate the thread again, only to be told they have already rated the thread and cannot change their vote.
Simply download the attached file, and then: In AdminCP go to Plugins & Products -> Manage Products -> Add/Import Product. Click on "Choose File" and browse to the product .xml file that you downloaded. Click "Import" You MUST set your settings to enable the mod. |
Благодарность от: | ||
ArcadeSyndicate |
#6
|
||||
|
||||
|
#7
|
||||
|
||||
It appears your custom style affects the background color of unordered list elements. So, I added a CSS selector to override this in the attached add-on.
|
#9
|
||||
|
||||
Code:
<div id="eti_konu_rayting_govde" class="eti_konu_rayting_secenek"> <ul> <li class="popupmenu" id="threadrating"> <h2>Help others by rating<span>{vb:raw threadinfo.title}</span></h2> <div id="eti_konu_reyting" class="blockrow"> <form action="threadrate.php" method="post" id='showthread_threadrate_form'> <ul> <li id="threadrating_current"<vb:if condition="!$show['rating']">class="hidden"</vb:if> title="{vb:rawphrase thread_rating_x_votes_y_average, {vb:raw thread.votenum}, {vb:raw thread.voteavg}}"><label> <span class="rating r{vb:raw thread.rating}<vb:if condition="$thread['rating'] != 5">_{vb:stylevar right}</vb:if>"><font color="white"><b>Current Rating</b></font></span> </label></li> <vb:if condition="$already_rated"> <br> <font color="white"><b>Thanks for your feedback!</b></font> <vb:else /> <li><label for="r5"><span class="rating r5"> {vb:stylevar dirmark}<input type="radio" name="vote" value="5" id="r5" {vb:raw votechecked.5} tabindex="20" />{vb:rawphrase excellent} </span></label></li> <li><label for="r4"><span class="rating r4_{vb:stylevar right}"> {vb:stylevar dirmark}<input type="radio" name="vote" value="4" id="r4" {vb:raw votechecked.4} tabindex="21" /> {vb:rawphrase good} </span></label></li> <li><label for="r3"><span class="rating r3_{vb:stylevar right}"> {vb:stylevar dirmark}<input type="radio" name="vote" value="3" id="r3" {vb:raw votechecked.3} tabindex="22" /> {vb:rawphrase average} </span></label></li> <li><label for="r2"><span class="rating r2_{vb:stylevar right}"> {vb:stylevar dirmark}<input type="radio" name="vote" value="2" id="r2" {vb:raw votechecked.2} tabindex="23" /> {vb:rawphrase bad} </span></label></li> <li><label for="r1"><span class="rating r1_{vb:stylevar right}"> {vb:stylevar dirmark}<input type="radio" name="vote" value="1" id="r1" {vb:raw votechecked.1} tabindex="24" /> {vb:rawphrase terrible} </span></label></li> <li class="formsubmit" style=" margin-left: 80px;"><input type="submit" class="button" value="{vb:rawphrase vote_now}" tabindex="25" /></li> </vb:if> </ul> <input type="hidden" name="s" value="{vb:raw session.sessionhash}" /> <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" /> <input type="hidden" name="t" value="{vb:raw threadid}" /> <input type="hidden" name="pp" value="{vb:raw perpage}" /> <input type="hidden" name="page" value="{vb:raw pagenumber}" /> </form> </div> <script type="text/javascript"> <!-- vB_AJAX_ThreadRate_Init('showthread_threadrate_form', {vb:raw threadinfo.threadid}); //--> </script> </li> </ul> </div> |
#10
|
||||
|
||||
The update I attached in post #8 didn't work on your site?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|