View Single Post
Old January 12th, 2007, 08:17 AM   #6 (permalink)
Zachariah
Registered User
Verified Customer
 
Zachariah's Avatar
 
Join Date: Nov 2005
Location: Canoga Park, CA
Posts: 3,243
Send a message via ICQ to Zachariah Send a message via AIM to Zachariah Send a message via MSN to Zachariah Send a message via Skype™ to Zachariah
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.
Zachariah is offline   Reply With Quote