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 
Path problem when including a guestbook into another page  XML
Forum Index » Support Forum
Author Message
geo
Beginner

Joined: 08/11/2004 17:41:00
Messages: 5
Offline

If the guestbook is included in a web page using, for example,

<?php include("./guestbook/index.php"); ?>

then the images don't show because the path is now wrong, ie. the image path is relative to the calling directory instead of the guestbookdirectory.
If the include uses the full url then images show but the guestbook links (eg. post a new entry) don't work.

Is there a way around this?

thanks

Geo
-----
Carbonize
Master
[Avatar]

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

open lib/config.inc.php and change the base_url. You would be better off using a header a footer file and calling them at the start and end of index.php and addentry.php.

Carbonize
I am not the maker of the Advanced Guestbook

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

Joined: 08/11/2004 17:41:00
Messages: 5
Offline

Thanks - that's sorted it!

geo
-----
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum