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 
How to include GuestBook into the table on main page.  XML
Forum Index » Support Forum
Author Message
Anonymous



Hi,
I am including guestbook into the table on main page with link like that:
http://www.mysite.com/index.php?id=gbook
(all subsites on my WWW site are loading that way.)
,where gbook means a gbook.php file.
Inside gbook.php file there is a code to including main page of guestbook.

Main page of guestbook is displaying correct but - links not matching eg. new entry link is http://www.mysite.com/addentry.php and of course it does't work. If I change /* guestbook pages */ section and add prefix guestbook/" - links are like http://www.mysite.com/guestbook/addentry.php and it is opening at whole windows not inside main www site table. It could be stay like that but another problem is that links inside that page are like http://www.mysite.com/guestbook/guestbook/addentry.php (guestbook added twice)

I tried to change in config.inc.php file:
$GB_PG["base_url"] = "http://www.mysite.com/guestbook"

into:
$GB_PG["base_url"] = "http://www.mysite.com/index.php?id=gbook"
...but it doesn't work correctly.

So generally problem is - how to include guestbook into a table..
Anyone can help me ?
amber222
Graduate

Joined: 07/05/2004 21:13:07
Messages: 586
Offline

Check the setting for your base url in admin/config.inc.php on or around line 59:



No guarantees. If it doesn't work, maybe leave a link so someone can see what's up with it.
Carbonize
Master
[Avatar]

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

Mike007 wrote:Hi,
I am including guestbook into the table on main page with link like that:
http://www.mysite.com/index.php?id=gbook
(all subsites on my WWW site are loading that way.)
,where gbook means a gbook.php file.
Inside gbook.php file there is a code to including main page of guestbook.

<snip>

So generally problem is - how to include guestbook into a table..
Anyone can help me ?


Wow complicated. I just use a header and footer file on my site then use php include to add it to the start and end of every content page. For the guestbook I just put the includes at the start and the end of the index.php and addentry.php files.

Carbonize
I am not the maker of the Advanced Guestbook

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



amber222 wrote:Check the setting for your base url in admin/config.inc.php on or around line 59:



No guarantees. If it doesn't work, maybe leave a link so someone can see what's up with it.



link is here: http://www.vietcong.pl/index.php?id=ksiega
base url settings:
$GB_PG["base_url"] = "http://www.vietcong.pl/guestbook";
Carbonize
Master
[Avatar]

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

The quick fix is to hard code the correct links into the guestbook. The links are in the relevant template files.

Carbonize
I am not the maker of the Advanced Guestbook

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



Carbonize wrote:The quick fix is to hard code the correct links into the guestbook. The links are in the relevant template files.


So I should change links inside each template files ?
Carbonize
Master
[Avatar]

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

Just fix the links that are not working. I cannt be sure as to which files you need to edit as I am at work right now.

Carbonize
I am not the maker of the Advanced Guestbook

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



I've seen some mention of this, but I have been unable to access the file. Ultimately, I'd like to change some of the wording in the Guestbook. I assume that I would do this by changing the BOOKMESS.. entries in the config.inc.php file...

Can someone please tell me if I am going in the right direction and how to get into the config.inc.php file??

Thanks,
Johnny
Carbonize
Master
[Avatar]

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

the file you want is in the lang directory. Probably english.php. This is where all the wording is stored and why AG is easily customisable to any language.

Carbonize
I am not the maker of the Advanced Guestbook

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