slinky
04-28-2009, 01:26 AM
I've been trying to include a file or variable in the header or headinclude templates and cannot get anything to output. I've followed the tutorial with obstart and that didn't even seem to work.
Let's try a simple example. If I had code below in a plugin, hook is global_start:
$mysillystuff = "ridiculous";
Then I should be able to plugin the $mysillystuff variable into the header and it should appear or in headinclude in
<meta name="generator" content="$mysillystuff" />
and it should work... but it doesn't. Personally I'd also like to include a header file in there too so I could have common headers... but let's just start with this example! Thanks in advance.
--------------- Added 1240926885 at 1240926885 ---------------
Done - have no idea why this didn't work before but after drinking more coffee vbulletin decides to work as promised.
Let's try a simple example. If I had code below in a plugin, hook is global_start:
$mysillystuff = "ridiculous";
Then I should be able to plugin the $mysillystuff variable into the header and it should appear or in headinclude in
<meta name="generator" content="$mysillystuff" />
and it should work... but it doesn't. Personally I'd also like to include a header file in there too so I could have common headers... but let's just start with this example! Thanks in advance.
--------------- Added 1240926885 at 1240926885 ---------------
Done - have no idea why this didn't work before but after drinking more coffee vbulletin decides to work as promised.