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 
*New* problem in inserting personal header in guestbook  XML
Forum Index » Advanced Guestbook Forum
Author Message
Z. Mulls
Newbie

Joined: 11/09/2006 15:13:09
Messages: 1
Location: Pennsylvania
Offline

I read the forums and FAQs, and was able to accomplish, including my own header.php in the guestbook code (instead of the one provided). My header comes up and the guestbook appears as part of my page.

I ran into one problem I didn't see covered by the forums. My own header.php is strict HTML, except I had a snippet of php code inside it.

<? php
code;
code;
code;
?>


This code inside my included header.php did not translate and was not accepted. I finally deleted it so it would work. (The code only grabbed a random number to choose a picture randomly).

How can I include php code in the included header.php? Or do I need to split my header in to header1 and header2, and hard-code the php into the guestbook in between two includes?
[WWW]
Carbonize
Master
[Avatar]

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

You cannot I'm afraid. You're only options, as I see it, are to either use Lazarus and it's gbinclude file or us javascrip for displaying the random picture. Or I suppose you could have the random image selected when the template is loaded by template.class.php.

Carbonize
I am not the maker of the Advanced Guestbook

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