I realize there is probably a more elegant way to do this, but loading 5 extra files on pages that do not need them is a little much since I only have thread ratings enabled in two forums.
I simply added this conditional to dbtech_trating_header:
Replace X & Y with your forum ID's that you use thread ratings in. The threadinfo bit makes sure you're on a thread page since you don't need the files to load on any pages but forum thread pages.
I simply added this conditional to dbtech_trating_header:
Code:
<vb:if condition="in_array($GLOBALS['forumid'], array(X,Y)) AND $show['threadinfo']">
Replace X & Y with your forum ID's that you use thread ratings in. The threadinfo bit makes sure you're on a thread page since you don't need the files to load on any pages but forum thread pages.
Upvote
0