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)

hipgirl 10-11-2007 05:32 PM

Quote:

Originally Posted by Rich (Post 1357430)
I am going to assume that you want the average text displayed beside the results. If that is the case, simply do this:


SHOWTHREAD Template:

Find:


Code:


<span id="threadrating_current"><if condition="$show['rating']">$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" /></if></span>

Replace with:

Code:

<span id="threadrating_current" class="smallfont"><if condition="$show['rating']"><strong>$vbphrase[rating]:</strong> <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" />&nbsp;&nbsp;(<phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase>)</if></span>
In the above code, the smallfont class added to the opening span is optional.

Now you need to edit the phrase: thread_rating_x_votes_y_average in the acp and remove the "Thread Rating:" portion of it and save it.

Great!!! Just applied.

I noticed that somebody said the rating is not shown in 'new post' search. Same here. Is it solved? I'll keep monitoring this thread.

Thanks again for your time. Get well soon.

Michelle

columbusgeek 10-24-2007 12:58 AM

Any updates on djdonx's request about only showing in certain threads? I need the pretty functionality you have created, but really do not want it on every thread.

***NM, went with tDigg instead. That fit my need better. Sorry Rich***

yoyoyoyo 10-28-2007 03:04 AM

here are the template edits in TMS (Template Modification System) XML format - if anyone has TMS installed all they need to do is import this.

mrmike 11-06-2007 02:01 PM

Thanks! :up:

I'm running 3.5.4 and manage to fix this with some tweak :S

Snatch 11-12-2007 05:46 PM

Since I installed this mod I get this DB-Error

Code:

Datenbankfehler in vBulletin 3.6.8:

Invalid SQL:

                SELECT *
                FROM threadrate
                WHERE userid = 1
                        AND threadid =;

MySQL-Fehler : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 4
Fehler-Nr.  : 1064
Datum        : Monday, November 12th 2007 @ 08:44:06 PM


jaks 11-15-2007 11:27 PM

Quote:

Originally Posted by rayphua (Post 1326385)
Hi Rich,

What are the changes done on this new version?

Is the following done?

. Thread rating does not show in search for New Posts.

2. When we set "Required Thread Rating Votes to Show Rating" in Admincp to 2 or more, a single vote still does not do anything. Click on Vote Now and the box still stays there, does not disappear or anything, like nothing is happening.

Hi Rich! I hope all is well with your health.

This will be a great addition to my site however the points made by rayhua I quoted above are still issues. I can live with the rating not showing in the search for now but #2 is a serious issue since it doesn't go past the first vote. When viewing the thread you see the vote box and not the actual rating. No one can can vote now. :(

Has anyone figured out this issue and if so what is the fix?

Thanks
Jon

NFLfbJunkie 11-17-2007 12:12 AM

How can I increase the spacing between the rating selections so there's not a lot ofsapce to the left of the "Excellent" selection and to the right of the "Vote Now" button?

masons 11-17-2007 05:47 AM

Great ad-on!//

3.6.8(2) worked fine and very easy to install!

ctfortner 12-06-2007 12:44 PM

This worked great for my site, 3.6.8 (2). very easy to add, thanks for the mod, LOVE it

tyranny 12-06-2007 12:57 PM

Installed and working perfect. Using it with GARS too and it is exactly what I am looking for.

I added the code below around your voting box so only those who can vote can see it.

Code:

<if condition="$show['threadrating']">
your code here
</if>

Now it is only showing to those who can vote. I also made it show no box after voting and put the average rating inside the post as you mentioned above. Fantastic.

Thanks!


All times are GMT. The time now is 07:46 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.01798 seconds
  • Memory Usage 1,740KB
  • 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
  • (4)bbcode_code_printable
  • (2)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