If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
PHP commands within guestbook templates  XML
Forum Index » Advanced Guestbook Modifications
Author Message
Funny Bong
Newbie

Joined: 11/04/2006 18:16:15
Messages: 1
Offline

Hi. Is there any way to put PHP commands within the template files used by the guestbook? I have PHP functions to create the header and nav bar on my site, and I would like it to look the same in the guestbook. I tried surrounding my PHP code with the <?php and ?> tags like I usually would in a PHP file, but it didn't work. I looked at the HTML code that the server was creating and I saw my PHP commands in the code as if the server did not interpret them. Is there any way to work around this problem?

Elias
Carbonize
Master
[Avatar]

Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline

You would have to put the commands into the script it's self. Loading your header as a variable and then calling the variable where needed in the template.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
 
Forum Index » Advanced Guestbook Modifications
Go to:   
Based on the open source JForum