I've just got the guestbook working on my site (actually, it's a pre-installed script from my hosting company ) but I want to integrate the guestbook so it looks like it's one of the site's main pages - have my links at the top, same footer etc.

Is there an easy way to do this? I'm guesing you just copy and paste bits of code.

Carbonize, there are pages out there that do it that way. It's just that you would have to perform the integration for every page you wanted like that, whereas your method with the header and footer makes it appear on all pages. See: www.afrovoices.com/guestbook/index.php. The header appears on the guestbook index page but not the addentry page because the Admin wanted it that way.

Some of my own pages were done that way before you showed up and taught us the easy way.

Take a copy of the existing home page (or other site page) and save it as guestbook/index2.php

Leave the header, menu and footer but delete the page's other contents

Copy all the code from the original guestbook/index.php file and paste it in the guestbook/index2.php file where the deleted contents were.

View guestbook/index2.php in your browser to see if it works. If it does, rename it to guestbook/index.php.

You have to repeat the same procedure for every guestbook page you want the header, menu, footer to appear on.

That's the hard way, but perhaps less technical sounding.

10/01/2005 21:52:54

Subject:

Takara
Beginner

Joined: 31/12/2004 03:43:30
Messages: 8
Offline

Amber, you are wonderful!!!! Unfortunately for me, the "easy" way was not the easy way. LOL Your instructions on the more "difficult" way were wonderful. Now my guestbook and review book look just the way I want them to (the index page was the only page I really cared how it looks).

BTW, if anyone decides to check out the rest of the site, I want to warn you. Yes it is a fan fiction website (that's not what I'm warning you about ). Most of the fan fiction has a NC17 rating however there are no graphic images on the site - just graphic words.

I am the culmination of one man's dream. This is not ego or vanity but when Dr. Soong created me he added to the substance of the universe. If...I am destroyed something unique, something wonderful will be lost.
Lt. Cmdr. Data - The Measure of a Man

There is a middle ground. Copy all the code you want to appear before the guestbook into header.php, remembering to keep the css and javascript there. And do the same for all the code after putting it into footer.php.

Takara wrote:Amber, you are wonderful!!!! Unfortunately for me, the "easy" way was not the easy way. LOL Your instructions on the more "difficult" way were wonderful. Now my guestbook and review book look just the way I want them to (the index page was the only page I really cared how it looks).

BTW, if anyone decides to check out the rest of the site, I want to warn you. Yes it is a fan fiction website (that's not what I'm warning you about ). Most of the fan fiction has a NC17 rating however there are no graphic images on the site - just graphic words.

I made a new template file. I just need to upload it but like many things it is on the TODO list along with uploading the third gender mod. I intend to make a page where people can download files on how to modify the Advanced Guestbook to various ends such as Email Encryption, Third gender, Email as required field, Remove private message option, Increase input sizes, change the variable names, add Yahoo & MSN fields etc etc. Any othre modifications you can think of?

Take a copy of the existing home page (or other site page) and save it as guestbook/index2.php

Leave the header, menu and footer but delete the page's other contents

Copy all the code from the original guestbook/index.php file and paste it in the guestbook/index2.php file where the deleted contents were.

View guestbook/index2.php in your browser to see if it works. If it does, rename it to guestbook/index.php.

You have to repeat the same procedure for every guestbook page you want the header, menu, footer to appear on.

That's the hard way, but perhaps less technical sounding.

Hi Amber. I tried this and all I end up with is a lot of code between the <body> tags. I must be doing something wrong.

This is the site I'm trying to work on www.vickiwillingham.com. I uploaded all the guestbook files to the surver is that the right thing to do? I haven't touched on this side of things yet and need help!