The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
What is the best hook to use to hook the header so I can pre register, I tried global_bootstrap complete but this does not register the variable before the header.
--------------- Added [DATE]1271277907[/DATE] at [TIME]1271277907[/TIME] --------------- location: global_bootstrap_complete Code:
require_once('/opt/www/riu/staging/featured_articles.php');
$templater = vB_Template::create('custom_featured_articles');
$templater->register('featart', $featured_articles);
$templatevals['featart'] =$templater->render();
//check if we are home
if($_SERVER['REQUEST_URI'] == '/'){
$templatevals['isthehome'] = 'Yes';
}
vB_Template::preRegister('header', $templatevals);
Code:
{vb:raw featart}
![]() Any help is appreciated. --------------- Added [DATE]1271279210[/DATE] at [TIME]1271279210[/TIME] --------------- Ok i fixed that part i changed the hook to parse_templates, now is there a way for this plugin to only load on the homepage rather then on article pages/admin pages etc... |
|
#2
|
||||
|
||||
|
Thank you!
parse_templates hook is the right for me to! |
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|