PDA

View Full Version : PHP Include


KoverPL
03-11-2006, 08:49 PM
Hello, how can i include files in footer.tpl ? and metatags where do i need to set it in ?

David
03-11-2006, 09:21 PM
One method is like this:
{php}insert php code here{/php}
You can insert meta tags before </head> in header.tpl

KoverPL
03-11-2006, 09:29 PM
i get error:
Content visible to registered users only.

header.tpl:
Content visible to registered users only.

KoverPL
03-11-2006, 10:30 PM
what can i do ? :(

Optimit
03-11-2006, 10:47 PM
The easiet way is to just give your include a tpl extension, instead of php. Save it into your templates folder, and then insert code like Content visible to registered users only. where you want the include.

KoverPL
03-11-2006, 10:49 PM
in the .tpl file i can use htlk code right ?

Optimit
03-11-2006, 10:50 PM
if you mean html? Yes

KoverPL
03-11-2006, 10:56 PM
yes, works fine thx ;) greetz

Optimit
03-11-2006, 11:17 PM
You are welcome!