Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vb.org Rating System for vb4 Details »»
vb.org Rating System for vb4
Version: 1.00, by eTiKeT? eTiKeT? is offline
Developer Last Online: Nov 2022 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.2.0 Rating:
Released: 01-18-2013 Last Update: Never Installs: 17
Template Edits
Re-useable Code Translations Is in Beta Stage  
No support by the author.

Original: http://vbulletin.web.tr/showthread.p...eyting-Sistemi

Just replace your current SHOWTHREAD template with . That's it

Find showthread template, and delete

PHP Code:
 <vb:if condition="$show['threadrating']">
                <
li class="popupmenu" id="threadrating">
                    <
h6><class="popupctrl" href="javascript://">{vb:rawphrase rate_this_thread}</a></h6>
                    <
div class="popupbody popuphover">
                        <
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>">{vb:rawphrase current_rating}</span>
                                </
label></li>
                                <
vb:if condition="$show['ratethread']">
                                    <
li><label for="r5"><span class="rating r5">
                                        {
vb:stylevar dirmark}<input type="radio" name="vote" value="5" id="r5" {vb:raw votechecked.5tabindex="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.4tabindex="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.3tabindex="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.2tabindex="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.1tabindex="24" /> {vb:rawphrase terrible}
                                    </
span></label></li>
                                    <
li class="formsubmit"><input type="submit" class="button" value="{vb:rawphrase vote_now}" tabindex="25" /></li>
                                <
vb:else />
                                    <
li><label>{vb:rawphrase already_rated_this_thread}</label></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>
            </
vb:if> 
  • Find showthread template again

PHP Code:
{vb:raw template_hook.showthread_above_posts}
{
vb:raw poll
  • Add below

PHP Code:


<vb:if condition="$show['threadrating'] AND $show['ratethread']">

  <
div id="eti_konu_rayting_govde" class="eti_konu_rayting_secenek"
           <
ul>
                <
li class="popupmenu" id="threadrating">
                    <
h2> {vb:rawphrase rate_this_thread}:<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>">{vb:rawphrase current_rating}</span>
                                </
label></li>
                           
                                    <
li><label for="r5"><span class="rating r5">
                                        {
vb:stylevar dirmark}<input type="radio" name="vote" value="5" id="r5" {vb:raw votechecked.5tabindex="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.4tabindex="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.3tabindex="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.2tabindex="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.1tabindex="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>
                          
                            </
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>
      </
vb:if> 
  • additional.css open the template and add the top row

PHP Code:
/* vbulletin.web.tr - konu degerlendir alani
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/

#eti_konu_rayting_govde {
    
border1px solid #E1D47E;
    
border-radius5px 5px 5px 5px;
    
clearboth;
    
margin10px auto 0;
    
padding-bottom0;
    
padding-right10px; }


    
#eti_konu_rayting_govde h2 {
        
clearboth;
        
color#BB0000;
        
displayinline-block;
        
font-size19.5px;
        
font-weightnormal; }
 
    
#eti_konu_rayting_govde span { color: #3E3E3E;margin-left: 10px;}
 
.eti_konu_rayting_secenek {
    
backgroundurl("images/misc/poll_question_mark.png"no-repeat scroll 30px 10px #FFEBBC;
    
padding-left120px; }
 
#eti_konu_reyting .rating {
    
background-imageurl("images/rating/rating-15_1.png");
    
background-repeatno-repeat;
    
displayblock;
    
padding0 0 0 75px; }
 
#eti_konu_reyting .r1_right {
    
background-imageurl("images/rating/rating-15_1.png");
    
background-repeatno-repeat;
    
margin-bottom2px;
    
padding-left80px; }
 
#eti_konu_reyting .r2_right {
    
background-imageurl("images/rating/rating-15_2.png");
    
background-repeatno-repeat;
    
margin-bottom2px;
    
padding-left80px; }
 
#eti_konu_reyting .r3_right {
    
background-imageurl("images/rating/rating-15_3.png");
    
background-repeatno-repeat;
    
margin-bottom2px;
    
padding-left80px; }
 
#eti_konu_reyting .r4_right {
    
background-imageurl("images/rating/rating-15_4.png");
    
background-repeatno-repeat;
    
margin-bottom2px;
    
padding-left80px; }
 
#eti_konu_reyting .r5 {
    
background-imageurl("images/rating/rating-15_5.png");
    
background-repeatno-repeat;
    
margin-bottom2px;
    
padding-left80px; }

/* vbulletin.web.tr - konu degerlendirme alani
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/ 

Screenshots

File Type: jpg konu degerlendir.jpg (45.4 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
3 благодарности(ей) от:
Code Geass, izzet, yilmaz

Comments
  #2  
Old 01-19-2013, 10:11 PM
emresozen emresozen is offline
 
Join Date: May 2012
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks eTiKeTTrafikci258:up:
Reply With Quote
  #3  
Old 01-20-2013, 01:20 PM
Sforums Sforums is offline
 
Join Date: Dec 2010
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no such code in 4.1.0

{vb:raw template_hook.showthread_above_posts}
{vb:raw poll}
Reply With Quote
  #4  
Old 01-20-2013, 04:39 PM
faisaly.com faisaly.com is offline
 
Join Date: Mar 2007
Posts: 226
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

vB Version: 4.2.0 this is for bro!
Reply With Quote
  #5  
Old 01-22-2013, 02:10 PM
yilmaz's Avatar
yilmaz yilmaz is offline
 
Join Date: Sep 2004
Posts: 751
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent MOD!
Reply With Quote
2 благодарности(ей) от:
emresozen, eTiKeT?
  #6  
Old 01-25-2013, 12:44 AM
Winter Sonata Winter Sonata is offline
 
Join Date: Apr 2010
Posts: 232
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What if I don't want to comepletely remove my current SHOWTHREAD template ? I have dome some customization on it, and removing it will cause them to stop working ,, Any ideas ?
Reply With Quote
  #7  
Old 02-11-2013, 06:56 AM
nacaruncr nacaruncr is offline
 
Join Date: Nov 2010
Posts: 318
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You only need delete the first code in the SHOWTHREAD this one:
Code:
 <vb:if condition="$show['threadrating']"> 
                <li class="popupmenu" id="threadrating"> 
                    <h6><a class="popupctrl" href="javascript://">{vb:rawphrase rate_this_thread}</a></h6> 
                    <div class="popupbody popuphover"> 
                        <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>">{vb:rawphrase current_rating}</span> 
                                </label></li> 
                                <vb:if condition="$show['ratethread']"> 
                                    <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"><input type="submit" class="button" value="{vb:rawphrase vote_now}" tabindex="25" /></li> 
                                <vb:else /> 
                                    <li><label>{vb:rawphrase already_rated_this_thread}</label></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> 
            </vb:if>
Regards
Reply With Quote
Благодарность от:
eTiKeT?
  #8  
Old 02-27-2013, 03:57 PM
autoescala autoescala is offline
 
Join Date: Oct 2011
Posts: 101
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Works on 4.2 but I dont like it because every time you load the page again or the thread ask for vote again, once you has voted!!! its not the same as vbulletin.org.
Reply With Quote
  #9  
Old 02-28-2013, 07:28 AM
safakuygur's Avatar
safakuygur safakuygur is offline
 
Join Date: Sep 2007
Posts: 193
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Excellent thanks

http://data-vocabulary.org/rating Sisteminide eklese idiniz keşke
Reply With Quote
  #10  
Old 08-18-2013, 05:03 PM
ArcadeSyndicate's Avatar
ArcadeSyndicate ArcadeSyndicate is offline
 
Join Date: Oct 2008
Location: Germany
Posts: 298
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

on your site it looks even better now, could you share the code with us?

http://d.pr/i/8kpq
Reply With Quote
Благодарность от:
nikosb
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:06 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09187 seconds
  • Memory Usage 2,469KB
  • Queries Executed 27 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (4)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (7)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (1)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete