Embedding into page

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
chally
Posts: 2
Joined: Sun Sep 24, 2006 12:17 pm

Embedding into page

Post by chally »

Hi!

I have just downloaded Gbook v. 1.43 and it looks great! But..I would like to intergrate it into my currently existing webpage such that the design is uniform all over. I have got no clue about PHP but I have seen how other guestbooks have been able to do this by inserting text-fields and then relating these to the php-code. I guess this is possible with this guestbook too.

Would anybody care to take their time and give it a shot? Me and my webpage would deeply appreciate it! Thanks!

--
Edit:
Okay, I see now that this message is in the wrong thread and after having read a bit in the *correct* thread I saw that some other people had had the same problem as me (embedding the guestbook). Still, I do think (and hope) that my above request not will go unanswered cause it should be possible - theoretically =D
Yet again - Thanks!
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

As mentioned in the readme.htm file distrubuted with the Gbook package you can put code that should be placed above the gbook code in the header.txt file. This is what in your normal pages is placed right after the <body> tag.
The code that should be placed below the gbook entries should be placed in the footer.txt file. This is the code that is normally placed before the </body> tag.

The style of the GBook is set in the external stylesheet style.css

Hope this helps.

Greetings,
Henrie
chally
Posts: 2
Joined: Sun Sep 24, 2006 12:17 pm

Post by chally »

Great! I must have missed that part of the readme-file =P

Seems like it should work. Thanks!
ctsutherland
Posts: 2
Joined: Wed Nov 08, 2006 7:11 pm

Post by ctsutherland »

Henrie,

I have tried following what you said and it seems that I am not quite understanding. I look at my header and footer.txt files and they are completely blank. Are they suppose to be this way? Where do I go get the information from to put into these files? I noticed in the gbook.php file i see a <body> tag but I do not see a </body> end tag.I'm nt even sure if I am looking at the right file.

My website is www.cleburnesoccer.com/tornados if you would like to take a look.

I am hoping to embed this Gbook into a webpage this stays consistant to the website.

Sorry for the ignorance, I'm pretty new to this.

Thanks,
Chad
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

ctsutherland,

I just looked at your pages and the header.txt en footer.txt files are not blank anymore.
And i see your guestbook turning op in the same style as the rest of your pages so i guess you now know what to do.

Normally the header.txt is not supposed to contain the <head>....</head> section but because it contains code you need for your webpage it should stay there. Also the <body> tag should normally not be present by because in your case it contains code that is needed for your page, it should remain there.
In the footer.txt file you can remove the </body> and </html> tags as they are already produced by the gbook.php page, but it is not necessary.

Greetings,
Henrie
ctsutherland
Posts: 2
Joined: Wed Nov 08, 2006 7:11 pm

Post by ctsutherland »

Henrie,

Yeah, I got it figured out. I do appreciate you looking though.

Thanks Alot!
Chad
bengels
Posts: 4
Joined: Sun May 11, 2008 9:25 am

Embedded gbook overlays website

Post by bengels »

Hi henrie,

I managed to get gbook embedded in my website using the suggestions in this topic but I am having some minor issues I was hoping you could help me with.

The gbook stuff shows up within my website nicely but as soon as it grows larger (by actually posting onto it) it start running over the bottom edge of my site.
So, rather than growing the container it appears to be in, it overlaps it or sits on top.

As you can see here;
http://test.ngalalodge.com/guestbook/gbook.php

Any ideas how I might fix that?
Thanks!
bo
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Hello bo,

It took me about 30 minutes to find but i think i found it. You have a stylesheet named p013.css. In this you have

Code: Select all

#imPage {position: relative; height: 360px; }
When I remove the height property the page looks good to me. Working code:

Code: Select all

#imPage {position: relative; }
Greetings,
Henrie
bengels
Posts: 4
Joined: Sun May 11, 2008 9:25 am

Awesome!

Post by bengels »

Hey Henri,

The whole CSS creation done thru the page builder I used is kinda counter intuitive since it creates SHIT loads of CSS files rather than to use one for all as it was intended too, on top of that it creates new rules that over-ride old rules each time you make a change rather than changing the old rule to make it do what you want in the first place :)

The changes you talk about in the mail below seem friggen obvious and I am sure they will work, I will have a play with this as soon as I get home.

THANKS for putting in 30 minutes of your own time, that is really awesome!!

Will update you with the results!!

Ta
bo
bengels
Posts: 4
Joined: Sun May 11, 2008 9:25 am

Post by bengels »

Henri,

It all works like a charm, you can check it out here if you wish :)
http://test.ngalalodge.com/guestbook/gbook.php

Thanks again for your efforts!!

Vriendelijke groeten,
Bo
Post Reply