vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Show Thread Enhancements - [AJAX] Threads rating (https://vborg.vbsupport.ru/showthread.php?t=185117)

TheProphet 07-13-2008 08:46 AM

thx m8, will give this a try..

Q-v-n-s-Q 07-13-2008 08:56 AM

nice mod, thanks

marc2005 07-13-2008 02:33 PM

very useful, thanks!

mad@Max 07-13-2008 07:46 PM

ADDED
Thread Rating + Rating Info Eng

Mark.B 07-13-2008 10:43 PM

This seems to be giving me a Javascript error which is only fixed by removing the first instance of this line (and it's closing </if> tag):
Code:

<if condition="$vboptions['trateglobal']==0 OR (in_array($threadinfo['forumid'], array($vboptions['trateforum'])))">
But this then results in a security token error when trying to rate a thread.

The error is "object expected".

mad@Max 07-13-2008 11:04 PM

I tested, all tags is fine, mb are you delete other part of code?

Mark.B 07-13-2008 11:50 PM

Quote:

Originally Posted by mad@Max (Post 1574599)
I tested, all tags is fine, mb are you delete other part of code?

Well at first I didn't notice it, because I use Firefox which doesn't routinely point out JS errors in the way IE does.

Then I tried using the moderation tools, and when you click the check box in a post, nothing happens.

Suspecting a JS error, I tried it in IE, and sure enough, it's giving "object expected".

From my debugging attempts, it seems to be to do with the inline moderation form being surrounded by that conditional...presumably if the conditional returns false, the form doesn't execute which stops the inline moderation tools working.

You will only notice this issue if you're logged in as a moderator or admin with mod rights for the forum you are viewing.

Hope this is some use, as it's otherwise an excellent mod.

abrecher 07-14-2008 04:54 AM

Used on GARS too and it does not work.

mad@Max 07-14-2008 01:16 PM

I will try add: ajax, future delete given rating from anyone and compatible with GARS.
Mark.B
Replace "</if>" after
PHP Code:

    <if condition="$show['threadrating']">
        <
td class="vbmenu_control" id="threadrating" nowrap="nowrap">
            <
a href="$show[nojs_link]#goto_threadrating"><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" /><else />$vbphrase[rate_thread]</if></span></a>
            <if 
condition="$show['popups']"><script type="text/javascript"vbmenu_register("threadrating"); </script></if>
        </
td>
    </if> 

Must be work.

mad@Max 07-14-2008 05:41 PM

Mod is updated.


All times are GMT. The time now is 02:18 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.01209 seconds
  • Memory Usage 1,744KB
  • 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
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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