Welcome to Geeklog, Anonymous Friday, April 26 2024 @ 10:19 am EDT

Geeklog Forums

php in thtml files


Status: offline

sornok

Forum User
Newbie
Registered: 03/04/04
Posts: 9
i tried to use some php in a thtml layout file but it doesnt seem to work, is it disabled somehow , if yes can i enable it again ?

thx
 Quote

Status: offline

eyecravedvd

Forum User
Full Member
Registered: 06/09/03
Posts: 152
You can put php into thtml files. Insure that you use the php inclusion code.

Text Formatted Code
<?php

php code here

?>
 

Shane | www.EyeCraveDVD.com
 Quote

Status: offline

Blaine

Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
I believe that will only work in the header.thtml template. That is the only function that inludes an php eval function. The template class used by Geeklog does not support php in templates.
Geeklog components by PortalParts -- www.portalparts.com
 Quote

sornok

Anonymous
I used php in blockheader.thtml , I guess this means that its normal that php didnt work. Any way to enable it ?
 Quote

Status: offline

eyecravedvd

Forum User
Full Member
Registered: 06/09/03
Posts: 152
Thanks for the update Blaine. I've only used PHP in the header.thtml and just assumed that it would work in the others.
Shane | www.EyeCraveDVD.com
 Quote

All times are EDT. The time is now 10:19 am.

  • 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