PDA

View Full Version : How to add Simple PHP code into header of each page?


jarosciak
05-20-2008, 02:35 PM
I want to add a simple php code to a header of each page of my forum.
Problem is that if I edit the template and add something even so simple as:


<?
echo "Welcome...";
?>


, it doesn't work.

Can someone tell me how to go about this?

Boofo
05-20-2008, 02:49 PM
Why not make a phrase and use that?

Lynne
05-20-2008, 02:51 PM
You cannot put php in templates. You would need to use a hook (maybe a global one) to output a variable and then put the variable in the header template.

But, I like Bob's suggestion and that is what I have done on my forums in the past.