Page 1 of 1
Integrating gbook into my site design
Posted: Fri Mar 18, 2005 5:06 pm
by Lavern
Hi,
I downloaded gbook. It's a nice guestbook; I especially like the security feature on it. But I already have a site design based on CSS. The maincontent division contains the entire page, i.e., the logo division, the navmenu division, the sidebar division, the center division, and the footer division. And I want to make the guestbook appear in my "center" division, so that every page of the guestbook is embedded into the layout of my site.
Is this feasible with this guestbook? Can you offer any suggestions on how to do this? If not, is there anybody out there who makes a guestbook like this?
I made some changes to gbook.php in an attempt to link it to my existing style sheet and to insert the logo, navmenu, sidebar, center, and footer divisions into the file, but I keep getting so many errors. I know enough about php to make something like this a miserable experience.
Praise the Lord!
Sincerely,
Lavern Gingerich
www.pursuinglife.com
A discipleship site for Bible memory fanatics.
Posted: Fri Mar 18, 2005 5:20 pm
by Klemen
Hi,
You need some HTML knowledge to be able to do that. What you need to do is copy/paste HTML code for website header into "header.txt" file and HTML code for footer into "footer.txt" file. You may also edit color codes in the style.css file
I know about quite a few sites that use GBook and have it completely customized to fit their website like this, but as said, you need HTML knowledge to be able to do it (with ANY guestbook, not just this one)...
Regards
Posted: Fri Mar 18, 2005 5:28 pm
by Lavern
Thank you for your prompt reply!
I am sure that would work fine for a heading and a footer, but can I also put code in the heading file for my sidebar?
Do you have any clients who used the guestbook this way?
Posted: Fri Mar 18, 2005 7:28 pm
by Klemen
Hi,
Sure, you can paste ANY code in the header.txt file (including any sidebars, not just header), all the code inside will be shown before GBook HTML code.
I don't really want to post any links here because I don't have the permission from the authors ... you are never too careful in this sue-crazy world (I know from personal experience...).
So just paste all the code you want before GBook in the header.txt and all the code you want after GBook in footer.txt and test it.
Posted: Fri Mar 18, 2005 7:32 pm
by Klemen
MichelleA just posted some nice screenshots about how she edited MBoard:
viewtopic.php?t=59
GBook uses the same header and footer file system, so the same could be done to GBook easily. Just wanted to let you know what can be done without posting any other people's URLs
Regards
Re: Integrating gbook into my site design
Posted: Wed Mar 30, 2005 2:23 pm
by jj
Lavern wrote:Hi,
I downloaded gbook. It's a nice guestbook; I especially like the security feature on it. But I already have a site design based on CSS. The maincontent division contains the entire page, i.e., the logo division, the navmenu division, the sidebar division, the center division, and the footer division. And I want to make the guestbook appear in my "center" division, so that every page of the guestbook is embedded into the layout of my site.
Is this feasible with this guestbook? Can you offer any suggestions on how to do this? If not, is there anybody out there who makes a guestbook like this?
I made some changes to gbook.php in an attempt to link it to my existing style sheet and to insert the logo, navmenu, sidebar, center, and footer divisions into the file, but I keep getting so many errors. I know enough about php to make something like this a miserable experience.
Praise the Lord!
Sincerely,
Lavern Gingerich
www.pursuinglife.com
A discipleship site for Bible memory fanatics.
That looks great l would like to integrate into my guestbook but would require some assistance. For for some odd reason my guestbook does not work, do you have any ideas as to why this?
url of guestbook:
http://www.clubsouthampton.com/gbook/gbook.php
Posted: Wed Mar 30, 2005 2:39 pm
by Klemen
Replied to your previous post.
Posted: Thu Apr 21, 2005 4:44 pm
by guest
I placed my own code to the header.txt and footer.tex and now I can't add an entry.
please help me

Posted: Thu Apr 21, 2005 5:43 pm
by Klemen
URL of your Gbook?
What errors you get?
Regards
Posted: Thu Apr 21, 2005 8:52 pm
by guest
It's working now. I had forgotten to add www in my header (base href).
I love this script, thank you.

Posted: Tue Jun 07, 2005 8:58 am
by Guest
Hi,
I wanted to have one color in the background and another in the textbox.
This is how I did.
After
BODY, TD {
in the file style.css i wrote
background-color : blue;
This turned the whole guestbook blue with nothing else written in the files header.txt and footer.txt.
Then I made the template.
<HTML>
<HEAD>
</HEAD>
<TITLE></TITLE>
<BODY BACKGROUND="black.gif">
<BR>
##GBOOK##
<BR>
</BODY>
</HTML>
As stated elsewhere the part above ##GBOOK## went in the header.txt and the part below went in the footer.txt
Now I had a black background with a blue textbox after uploading also the file black.gif.
Note: I also changed the line
color : black
to
color : #FFFFFF;
or else it would not be possible to read the text on the black.gif background.
The whole BODY TD segment, would now look like this. (The first part of the file style.css).
BODY, TD {
background-color: blue;
color : #FFFFFF;
font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
font-size: 11px;
}
The funny thing is that I had to use a picture as background. If I had written
<BODY BGCOLOR="black">
instead of
<BODY BACKGROUND="black.gif">
in the file header.txt, it would not work. It seems like
background-color : blue;
in the file style.css will overrule the command
<BODY BGCOLOR="black">
in the file header.txt. As the whole page in this case turned blue.
I also realized it is a bit time consuming to make changes in php documents as you have to upload them to a server (that allows the language) in order to see the result.
Anyway, I think it is a nice guestbook well worth the effort of fiddling around with.
Posted: Fri Jun 10, 2005 2:01 pm
by WellofDreams
Lavern wrote:Thank you for your prompt reply!
I am sure that would work fine for a heading and a footer, but can I also put code in the heading file for my sidebar?
Do you have any clients who used the guestbook this way?
My book is 100% integrated into my site;
http://www.well-of-dreams.com/guestbook/gbook.php 
All I did, as they say, is paste my header into my header.txt and footer into footer.txt - css, java and all

Posted: Sun Jun 12, 2005 5:23 am
by Dom
Thanks for a great guestbook! It really is easy to use and although I had no idea (actually still do know know) what PHP means, I managed to customize it to fit into my site. Just by taking some time and looking at the different files, most things are quite easy to figure out, for other things I found the answers in this forum. Thanks for the good script and I happily paid the very reasonable license fee. To see the guestbook integrated into my site have a look at
www.mirihi.com
Posted: Sun Jun 12, 2005 10:45 am
by Klemen
Hello,
Thanks for the kudos and supporting my work by purchasing a license.
Just a quote from PHP manual:
PHP, which stands for "PHP: Hypertext Preprocessor" is a widely-used Open Source general-purpose scripting language that is especially suited for Web development and can be embedded into HTML. Its syntax draws upon C, Java, and Perl, and is easy to learn. The main goal of the language is to allow web developers to write dynamically generated webpages quickly, but you can do much more with PHP.
Regards
Posted: Thu Jun 23, 2005 3:47 pm
by Guest
Hi,
A while ago I wrote in this tread about how to add different colors into the guestbook, by using a background picture. After reading it, I discovered that the title tags in the template I created was misplaced.
If I should have run it trough a HTML validator it would have resulted in something like this:
The title tag was found. But it is not valid due to where it is used. This element may be contained in "HEAD". The tag is not contained in an element that allows its use.
The part of the template that is supposed to go into header.txt should probably look like this:
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY BACKGROUND="black.gif">
<BR>
While I am at it I might as well write about how I managed to change colors without using a picture as background.
Open style.css and erase the text (BODY,). So the first line starts with TD. Now you can call the background color from header.txt.
header.txt would then look like this:
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY BGCOLOR="#000000">
<BR>
If anyone have any better suggestions, feel free to contribute.
Over and out.