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 
1 problem regarding integrating guestbook into page  XML
Forum Index » Advanced Guestbook Forum
Author Message
mcpalmer
Beginner

Joined: 10/05/2005 16:08:06
Messages: 5
Offline

Hi, I've got a problem. I checked stickys and couldn't find any solution so i'm having a fresh ask. I've integrated a header and footer into the guestbook index page, using the appropriate templates as recommended by Carbonize and all is fine except when a new guestbook entry is submitted. A temporary confirmation message pops up saying words similar to "guestbook entry has been added, we will now direct you back to guestbook". This page is messed up - there is no header info on it and because of this the footer is skewed to one side.

All this is happening from addentry.php and i tried sniffing about the code but i'm a novice at php and can't get anywhere. I can't find the part of the code that deals with the confirmation page I@m having problems with. Can anyone direct me to it, and or suggest any ways to fix this problem?

blah blah
Carbonize
Master
[Avatar]

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

The message you refer to uses the template success.php.

Carbonize
I am not the maker of the Advanced Guestbook

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

Joined: 10/05/2005 16:08:06
Messages: 5
Offline

ok thanks, do you know where the code is that puts this page together? somewhere, this template is called by a function or page or both, along with the footer.php page. If i knew where this page was i should be able to modify it to include the header.php template which should solve my little layout problem

blah blah
Carbonize
Master
[Avatar]

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

Lines 281 to 284 of lib/add.class.php but it doesn't use a header as all the HTML is in success.php except the copyright info in the footer.

Carbonize
I am not the maker of the Advanced Guestbook

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

Joined: 10/05/2005 16:08:06
Messages: 5
Offline

thanks, i got it to work ok by just removing the footer and modifying success.php. I tried adding a modified header template and using this along with the standard footer but this did not work - the new template was not recognized i don't think - i added it to the templates in config.inc.php but it still did not work. oh well, its no big deal

blah blah
 
Forum Index » Advanced Guestbook Forum
Go to:   
Based on the open source JForum