PDA

View Full Version : Rate Thread /Like Vb.org/


trollshrooms
10-18-2015, 08:04 PM
https://vborg.vbsupport.ru/external/2015/10/7.png


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.

ArcadeSyndicate
10-18-2015, 08:09 PM
this comes closest...

https://vborg.vbsupport.ru/showthread.php?t=294135&highlight=rating

trollshrooms
10-18-2015, 08:10 PM
ill try it out and see if i cant maybe mess with it a bit, thank you for the super fast response.

--------------- Added 1445206569 at 1445206569 ---------------

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.

Brandon Sheley
10-18-2015, 09:09 PM
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 whole edits...

boy are you going to have fun if you think this is to confusing..

MarkFL
10-20-2015, 02:36 PM
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.

trollshrooms
10-21-2015, 04:46 PM
https://vborg.vbsupport.ru/external/2015/10/5.png

MarkFL
10-21-2015, 05:06 PM
https://vborg.vbsupport.ru/external/2015/10/5.png

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. :)

ArcadeSyndicate
10-21-2015, 05:08 PM
damn, mark was faster again :D

just wanted to say edit template markfl_visible_thread_rating.css

btw another cool addon :up:

trollshrooms
10-22-2015, 10:19 AM
<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_for m', {vb:raw threadinfo.threadid});
//-->
</script>
</li>
</ul>
</div>

Were do i change to change that color to match.

MarkFL
10-22-2015, 11:51 AM
The update I attached in post #8 didn't work on your site?