PDA

View Full Version : ad_location.global_header1 Variable


TheAdminMarket
02-01-2015, 06:38 AM
Hello,

I want to add the content of a variable to: ad_location.global_header1 but can't find any hook there. The template ad_location.global_header1 is empty.

Using the plugin system how I can add:

$templater->register('my_content', $my_content);


Thank you

--------------- Added 1422781816 at 1422781816 ---------------

I think that this:

$templatevalues['my_content'] = $templater->render();
vB_Template::preRegister('ad_global_header_1', $templatevalues);

should works. Found it at:
https://vborg.vbsupport.ru/showthread.php?t=228078

--------------- Added 1422793375 at 1422793375 ---------------

Seems that I'm missing something and it does not works. I've post it at the article's thread:
https://vborg.vbsupport.ru/showpost.php?p=2535498&postcount=300

vBNinja
02-03-2015, 03:49 PM
Try this in parse_templates

require_once(DIR . '/includes/adminfunctions_template.php');
$vbulletin->templatecache['global_header1'] = compile_template($HTML):