The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
template cache on specific page.
im trying to cache/fetch a template but only on a certain page, the usercp page, specifically profile.php
this works perfect in global_start, but it gets thrown in the footer on every page, which just isn't needed. Code:
$vbulletin->templatecache['footer'] = $vbulletin->templatecache['footer'] . fetch_template('pb_bg_scrpt'); am i stuck leaving it in global? as usual i found a solution myself, using in global_start Code:
if ($_REQUEST['do'] == 'supreme')$vbulletin->templatecache['footer'] = $vbulletin->templatecache['footer'] . fetch_template('pb_bg_scrpt'); i could have used: Code:
if (THIS_SCRIPT == 'profile') i know i post alot of ?'s here but i try to post answers when i solve them too, hopefully helping someone else having similar issues =) |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|