Welcome to Geeklog, Anonymous Sunday, September 24 2023 @ 01:32 pm EDT

Geeklog Forums

Run PHP code in the template files?

Status: offline


Forum User
Full Member
Registered: 01/28/04
Posts: 240
Location:United States
I have a custom php routine in my header.thtml file that works great. I tried to add some php to my footer file, but it won't parse out, and then I noticed it's the same for other template files (besides the header). Is there any way for me to get php to run in these files? Maybe some geeklog variables to wrap it in?

Status: offline


Site Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Geeklog only supports PHP in header.thtml. You would have to hack COM_siteFooter if you want to use PHP in footer.thtml

bye, Dirk

All times are EDT. The time is now 01:32 pm.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content