vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Rate Thread /Like Vb.org/ (https://vborg.vbsupport.ru/showthread.php?t=320554)

trollshrooms 10-18-2015 08:04 PM

Rate Thread /Like Vb.org/
 
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/showthrea...ghlight=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 [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.

Brandon Sheley 10-18-2015 09:09 PM

Quote:

Originally Posted by trollshrooms (Post 2557234)
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

1 Attachment(s)
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

1 Attachment(s)
Quote:

Originally Posted by trollshrooms (Post 2557394)

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

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>

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?


All times are GMT. The time now is 07:59 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01028 seconds
  • Memory Usage 1,761KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete