dartho
11-09-2006, 09:41 AM
I am trying to write a plugin which will add code to the very start of the HEADER template. I though of searching for <!-- logo --> and adding above this, but there may be other code already there or that comment may have even been removed. Any hook locations which will do this one?
Any help appreciated!
Thanks
---------------------------------------------------------------------------------------
OK, I sorted this one out:
$vbulletin->templatecache['header'] ='my code' . vbulletin->templatecache['header'];
Now I would like to add the 'my code' via admincp - bit it may include single quotes, double quotes, questions marks etc - does the addslashes function escape everything that needs escaping?
Any help appreciated!
Thanks
---------------------------------------------------------------------------------------
OK, I sorted this one out:
$vbulletin->templatecache['header'] ='my code' . vbulletin->templatecache['header'];
Now I would like to add the 'my code' via admincp - bit it may include single quotes, double quotes, questions marks etc - does the addslashes function escape everything that needs escaping?