![]() |
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 =) |
All times are GMT. The time now is 06:15 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|