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)

PoetJA-1975 05-05-2007 04:37 AM

OK - hopefully someone can help me with this code :o
I've a customized template and trying to use the extra "Upgrade" code .
The thing is sometimes both the voting block AND the "you've already voted" block shows at the same time. I'm sure there is an if conditional that will allow a correction for that issue....

At anyrate - the code:

Code:

<!---------------------- / UPGRADE------>
 <if condition="$show['rating'] AND $vbphrase[rate_thread]">
 <table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr>
        <td><img src="$stylevar[imgdir_misc]/_cat-top_lft.gif" alt="" /></td>
        <td width="100%" class="cat-top_x">
 Thank You For Your Rating
 </td>
        <td><img src="$stylevar[imgdir_misc]/_cat-top_rht.gif" alt="" /></td>
  </tr></table>
 <table cellpadding="4" cellspacing="1" width="100%" border="0" class="tborder" align="center">
                <tr>
                        <td class="alt1">
                                <div align="center" id="threadrating_current">
 You have already rated this thread.  <font color="#8B008B"><strong><phrase 1="$thread[votenum]" 2="$thread[voteavg]">$vbphrase[thread_rating_x_votes_y_average]</phrase></strong></font>
 </div>
 </td>
 </tr>
 </table>
 <div class="cat-btm_x"><div class="cat-btm_lft"></div><div class="cat-btm_rht"></div></div>
 
 </if>
 <br />
 <!---------------------- / UPGRADE------>

Any help will be appreciated ;)

Thanx,

Jacquii.

jahshaka 05-17-2007 10:06 AM

i think after reading through all the posts in this thread that i am the 3rd person to report that this doesnt work on ie7 - the other 2 people got the same error as me:

"Object doesn't support this property or method"

is there a fix for this?

jahshaka 05-17-2007 10:22 AM

i cashed this down with my debugger in ie7 and got the following, hopew it helps

this is the file that throws the error:
vbulletin_ajax_threadrate.js

this is the routine

/**
* OnReadyStateChange callback. Uses a closure to keep state.
* Remember to use me instead of this inside this function!
*/
this.handle_ajax_response = function()

view the source snd scroll down a few lines to the alert(error) and you can see the loop that its triggered in

4x4 Mecca 05-30-2007 03:43 AM

I too have installed this and it's working fine to vote, but when I come back later, it doesn't show the rating above the post like it does right after you vote. I tried the edits here. Has anyone gotten that working and which did they use?

4x4 Mecca 06-01-2007 05:20 PM

Quote:

Originally Posted by 4x4 Mecca (Post 1257348)
I too have installed this and it's working fine to vote, but when I come back later, it doesn't show the rating above the post like it does right after you vote. I tried the edits here. Has anyone gotten that working and which did they use?

:confused:

Ronak 06-02-2007 03:45 AM

Nice Hack ...

Quote:

For a demo, scroll up to the big orange rectangle, select "Excellent" then click "Vote Now!"
:D :D :D :D :D

eNforce 06-08-2007 11:22 PM

How do I make the upgrade addition appear after I vote? It appears when someone else votes which makes me unable to vote myself.

(it shows up after Vote, but if I refresh the voting menu comes back!)

Ohiosweetheart 06-13-2007 05:48 PM

Does the rating show on every thread on your forum? Or do you have an option for it to appear only on release threads?

PoetJA-1975 06-14-2007 12:15 AM

Apparently modification is not supported :(

Jacquii.

obmob 06-14-2007 02:57 AM

It's a great idea, but there seems to be missing conditionals in this mod. :(


All times are GMT. The time now is 03:36 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.01177 seconds
  • Memory Usage 1,739KB
  • 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)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