PDA

View Full Version : Where do I include something to all pages


kobescoresagain
06-17-2006, 10:54 PM
What file can I include an include statement so that it displays on every single page?

Christine
06-17-2006, 10:58 PM
There are several templates that will do this -- navbar at the top and footer at the bottom come to mind...

kobescoresagain
06-17-2006, 10:59 PM
but can I include an include statement in a template? I didn't think I could

Christine
06-17-2006, 11:02 PM
What are you trying to accomplish?

kobescoresagain
06-17-2006, 11:04 PM
I need to include (like the php include_once) statement for my site stats program. It needs to be on every page.

Christine
06-17-2006, 11:06 PM
Ah.

That might be best served by adding a plugin to the hook global_complete or global_start.

Take a look at the Microstats hack and see if that does what you are looking for -- where you can tap into it. It uses global_complete. https://vborg.vbsupport.ru/showthread.php?t=82900

kobescoresagain
06-17-2006, 11:07 PM
On most websites you have something like a header.php with the includes infomraiton. The header.php is on every page. I need something like that.

Christine
06-17-2006, 11:09 PM
See above...

There used to be a phpinclude_start that hooked into the header. It was replaced by the hook at global_start.

kobescoresagain
06-17-2006, 11:52 PM
Thanks, I looks at the xml file for that hack..... I didn't even really know what those were. But I know php and changed the xml to do what I need it to do. Thanks christine