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 
Using PHP include() in Advanced Guestbook templates  XML
Forum Index » Support Forum
Author Message
Anonymous



Hi everyone!

I've scanned the forums but not found anything

I've edited the various templates (for example header.php) and I need to be able to use the PHP function 'include()'.

E.g.
<?php include("include.php"); ?>

But the above line is written as is in the page source and it is not executed as PHP code.
Does anyone know how to get around this?

I have Advanced Guestbook 2.3.1 installed.

Many thanks!
Carbonize
Master
[Avatar]

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

What are you trying to use include for? I have used it in mine to integrate the guestbook into my site. I places the include codes at the start and end of both index.php and addentry.php.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Anonymous



When you enter the Advanced Guestbook administration section, you can edit the templates via the web. I need to be able to use PHP includes in these templates.

If I understand it, you are doing the opposite of me. I'm integrating my web site into Advanced Guestbook as it suggests by editing it's header.php, footer.php, body.php etc. in templates/
Carbonize
Master
[Avatar]

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

In that case no. The templates are loaded as a string so the only PHP that works in them are the variables.

Carbonize
I am not the maker of the Advanced Guestbook

get Lazarus
[Email] [WWW] [Yahoo!] aim icon [MSN] [ICQ]
Anonymous



Yea, I kinda figured that! Thanks anyway
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum