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 - vB.org Rating System Replica (https://vborg.vbsupport.ru/showthread.php?t=155701)

ctfortner 12-06-2007 02:42 PM

I cant figure that part out about putting the average rating inside the post, how did you do that? I did apply the code to display the average rating, but dont see how to put it inside the post?

thanks

Sulaiti 12-06-2007 09:16 PM

Great hack ....

I believe you need only update this part

PHP Code:

 
<div align="left"><span class="ratetext">$vbphrase[rate_this_thread] -  <em>$thread[title]</em>.</span></div>
<
a name="goto_threadrating"></a>    
        <
label for="vote5"><input type="radio" name="vote" id="vote5" value="5"  />Excellent</label
        <
label for="vote4"><input type="radio" name="vote" id="vote4" value="4"  />Good</label
        <
label for="vote3"><input type="radio" name="vote" id="vote3" value="3"  />Average</label
        <
label for="vote2"><input type="radio" name="vote" id="vote2" value="2"  />Bad</label
        <
label for="vote1"><input type="radio" name="vote" id="vote1" value="1"  />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="" value="Vote Now!" /></if></div>
        </
td>    
</
tr

to:

PHP Code:

 
<div align="$stylevar[left]"><span class="ratetext">$vbphrase[rate_this_thread] -  <em>$thread[title]</em>.</span></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]/></if></div>
        </
td>    
</
tr

Regards,

tyranny 12-07-2007 03:06 PM

Quote:

Originally Posted by ctfortner (Post 1396215)
I cant figure that part out about putting the average rating inside the post, how did you do that? I did apply the code to display the average rating, but dont see how to put it inside the post?

thanks


I just did this:

https://vborg.vbsupport.ru/showpost....0&postcount=49

and copied his code inside the actual post.

:)

codehack 12-12-2007 11:03 PM

PHP Code:

Invalid SQL:

        
SELECT *
        
FROM threadrate
        WHERE userid 
1
            
AND threadid =;

MySQL Error  You have an error in your SQL syntaxcheck the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 4
Error Number 
1064
Date         
ThursdayDecember 13th 2007 03:01:01 AM
Script       
http://www.xxxx.com/forum/showthread.php?t=1
Referrer     
IP Address   
Username     
Classname    vB_Database 

help me!!:(

davekeats 12-13-2007 06:12 AM

Strange thing - I installed the mod perfectly, and it's appearing. The issue for me is, the rating mod is appearing even in forums for which I have NOT allowed thread ratings to appear.

What do think is up? Is there something I still need to add in the SHOWTHREAD template?

VADOS 12-16-2007 09:23 PM

Hello there!

I've installed your mod, thanx so much, it's great!

But I have a question: is it possible to move the rating table from it's original place (above the first post) to "below the first post"?

I have a template edit to make some table just below the first post (originally it's for adsense) and tried to move it there, but no good results reached. :(

Scamorz 12-24-2007 11:42 PM

Hi, i installed this excellent mod but i don't understand how i can insert the score inside the post and not at external. (like vb.org).

I installed this modify to obtain the number of votes and average: https://vborg.vbsupport.ru/showpost....0&postcount=49

Thanks! ;)

synn 01-03-2008 12:59 AM

Seems to work fine but I must have made a boo-boo :erm:

Under my thread tools drop down the javascript is not right:

Attachment 74091

Can someone help?

alfaowner 01-03-2008 12:04 PM

I have installed this on a 3.6.4 board, all though it shows up, it doesnt alow me to vote, when I hit the button, nothing happens :(

tei727 01-03-2008 08:26 PM

love it! how do i make it show how many people voted like the VB.org does? can this be shown on the new threads?


All times are GMT. The time now is 07:43 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.01195 seconds
  • Memory Usage 1,786KB
  • 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
  • (3)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (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