Ok if you move the plugin to "global_start" AS-IS it will run the code on all pages of the forum.
- each thread, pm, portal, and any other
VB powered page.
To limit the pages this code is ran on:
Code:
Content visible to verified customers only.
- by placeing the code in a IF statment, we can controle what php page of vBulletin the code shows on.
-----------------------------------------------
The 2nd plugin you need to edit:
includes/vbgallery/cache_templates.php
This regulates what templates to cache in order not to add more querries to the mysql question.
Default:
Code:
Content visible to verified customers only.
To make sure the template work also on the FORMDISPLAY we need to include a bit of code to tell vBulletin we need to use that set of template on FORMDISPLAY as well as forum index page.
To limit the page this code is ran on:
EX:
Code:
Content visible to verified customers only.