vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.6 Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=192)
-   -   Show Thread Enhancements - vBorg Thread Rating (https://vborg.vbsupport.ru/showthread.php?t=142733)

StarBuG 03-23-2007 11:37 AM

Thanks for this

/me clicks install

airborneCAL 03-23-2007 01:53 PM

Quote:

Originally Posted by ngocha85 (Post 1210203)
After DELETE, you can:

FIND:

HTML Code:

<if condition="$show['inlinemod']">
$spacer_close
<form action="inlinemod.php?threadid=$threadinfo[threadid]&amp;p=$postid" method="post" id="inlinemodform">
$spacer_open
</if>

<a name="poststop" id="poststop"></a>

REPLACE with:
HTML Code:

<if condition="$show['threadrating']">
<if condition="$show['ratethread']">
<!-- thread rating menu -->


<!---------------------- / UPGRADE------>
<if condition="$show['rating']">
<table cellpadding="4" cellspacing="1" width="100%" border="0" class="tborder" align="center">
                <tr>
                        <td class="thread">
                                <div align="center" id="threadrating_current">
$vbphrase[rating]: <img class="inlineimg" src="$stylevar[imgdir_rating]/rating_$thread[rating].gif" alt="<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>" border="0" />
</div>
</td>
</tr>
</table>
<br />
<else />
<!---------------------- / UPGRADE------>


<form action="threadrate.php?t=$threadid" method="post" id="showthread_threadrate_form">
        <table cellpadding="4" cellspacing="1" width="100%" border="0" class="tborder" align="center">
                <tr>
                        <td style="background:#FFDC84;color:#000;" id="threadrating">
                                <div align="center" id="threadrating_current">
                                        <div align="left"><b>$vbphrase[rate_this_thread] : <em>$thread[title]</em></b></div>
                                        <a name="goto_threadrating"></a>
                                        <label for="vote5"><input type="radio" name="vote" id="vote5" value="5" $votechecked[5] />$vbphrase[excellent]</label>
                                        <label for="vote4"><input type="radio" name="vote" id="vote4" value="4" $votechecked[4] />$vbphrase[good]</label>
                                        <label for="vote3"><input type="radio" name="vote" id="vote3" value="3" $votechecked[3] />$vbphrase[average]</label>
                                        <label for="vote2"><input type="radio" name="vote" id="vote2" value="2" $votechecked[2] />$vbphrase[bad]</label>
                                        <label for="vote1"><input type="radio" name="vote" id="vote1" value="1" $votechecked[1] />$vbphrase[terrible]</label>
                                        <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="submit" class="button" value="$vbphrase[vote_now]" />
                                </div>
                        </td>
                </tr>
        </table>
       
        <br />
</form>
</if>
<!-- / thread rating menu -->

<script type="text/javascript" src="clientscript/vbulletin_ajax_threadrate.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript">
        <!--
        vB_AJAX_ThreadRate_Init('showthread_threadrate_form');
        var threadid = $threadinfo[threadid];
        window.alert = null;
        //-->

</script>
</if>
</if>

<if condition="$show['inlinemod']">
$spacer_close
<form action="inlinemod.php?threadid=$threadinfo[threadid]&amp;p=$postid" method="post" id="inlinemodform">
$spacer_open
</if>


What does that do?

da420 03-23-2007 03:10 PM

It creates a thread rating system that looks like vbulletin.org's...

airborneCAL 03-23-2007 04:14 PM

Quote:

Originally Posted by da420 (Post 1210423)
It creates a thread rating system that looks like vbulletin.org's...

Thanks, it appears to be working perfectly!

magnus 03-23-2007 05:15 PM

Quote:

Originally Posted by tanyeri24 (Post 1209959)
It would also be glad if vbulletin.org will show us their class data about .new (style of the rating box). In Firefox I can't fix the lines on the borders, it shows like I have <br> in the first line..

Code:

.new{
        background:#FFDC84;
        color:#00000;
}

I included this as style= data, rather than requiring editing the Main CSS.

magnus 03-23-2007 05:20 PM

Quote:

Originally Posted by airborneCAL (Post 1210380)
What does that do?

On threads in which you've already voted on, it will display the rating above the thread.

tanyeri24 03-23-2007 05:31 PM

Quote:

Originally Posted by magnus (Post 1210504)
Code:

.new{
        background:#FFDC84;
        color:#00000;
}

I included this as style= data, rather than requiring editing the Main CSS.

but the are like a <br> in the table of your template edit and here on vbulletin.org not.

magnus 03-23-2007 06:05 PM

Quote:

Originally Posted by tanyeri24 (Post 1210514)
but the are like a <br> in the table of your template edit and here on vbulletin.org not.

It's all CSS. You would need to comb the vBorg CSS and find what margin, padding, et al. is being used.

You can see the entire vBorg CSS here.

hawks_mp 03-23-2007 07:12 PM

How would I fix it if I only wanted to show this thread rating system in 1 forum? I would like to use it in a movie review section, but in the other sections I would like it to be the default rating system.

tanyeri24 03-23-2007 07:34 PM

Quote:

Originally Posted by magnus (Post 1210532)
It's all CSS. You would need to comb the vBorg CSS and find what margin, padding, et al. is being used.

You can see the entire vBorg CSS here.

thx but not easy to find what I have to change..


All times are GMT. The time now is 02:53 PM.

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.01243 seconds
  • Memory Usage 1,771KB
  • 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
  • (2)bbcode_code_printable
  • (2)bbcode_html_printable
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete