PDA

View Full Version : Why I can modificate variables in Headincludes Template?


Jhonnyf
05-05-2009, 12:33 AM
I try to modifycate $vboptions[keywords] that it's call in headincludes template and I can't.... i use a plugin and this code

$vbulletin->options['keywords'] ='New keyords';

after I put a custom variable as $my_var (headincludes to add more keywords) and I can't change this with a plugin (always show me empty)

I thing that maybe this is precache or something else:confused:

Hooks that I try:

forumdisplay_complete
global_complete

Thank You

Lynne
05-05-2009, 02:21 AM
You need to use a hook location that is before the headincludes template is evaled. Take a look in global.php and find where the headinclude template is evaled and then look to see what hooks are available before that.

Dismounted
05-05-2009, 04:42 AM
I think parse_templates should work.

Jhonnyf
05-05-2009, 11:05 AM
I think parse_templates should work.
thank you, the problem is solved using parse_templates

thank you Lynne, you always reply my questions