How to embed Gbook into my pages

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
Ton
Posts: 1
Joined: Thu Jul 31, 2008 7:02 pm

How to embed Gbook into my pages

Post by Ton »

Script URL:http://xs4me2.info/gbook
Version of script:1.6
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution: All the forum remarks about embedding

Write your message below:

Hello,

I just can't get Gbook embedded in my site http://xs4me2.info. I tried everything..but I just can't get it to work. I,ve tried an I-Frame and that works but when gbook loads in the Iframe I get a white square first of about 3 seconds and I don't like that. I know also that my pages are full of stylesheets, but that is because of the webbuilder software I use.

Can somebody help me?

Thanks
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

There's been so much talk about this subject, try reading old posts. If you can't get it to work (you will need to understand HTML and CSS) the iframe is the way to go, even though you have to wait a bit for it to load.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
pete917
Posts: 12
Joined: Sat Oct 11, 2008 1:28 pm

Post by pete917 »

URL: http://www.myporsche911.co.uk/gbook/gbook.php

First of all great script. As a complete novice in website design this has been relatively easy to install and get working. So thank you for provising this for free.

Is it possible to incorporate this script into my existing web page?

I have tried pasting the script from gbook.php and pasting it into a table cell on a page. It works except the the images dont appear.

Any advice greatfully accepted.
jayceegee
Posts: 33
Joined: Sun May 21, 2006 6:33 pm

Post by jayceegee »

As Klemen has stated above, probably the iframe is the way to go.

See my post at viewtopic.php?t=1684 for the code.

This you can paste into the area that you have the picture of your Porche. so that it looks part of your site.

Hope this helps you. Jim.
pete917
Posts: 12
Joined: Sat Oct 11, 2008 1:28 pm

Post by pete917 »

thanks jim. Ill give that a go today and report back on progress.
thanks again.
pete917
Posts: 12
Joined: Sat Oct 11, 2008 1:28 pm

Post by pete917 »

Hi Jim.

The iFrame worked a treat. Thank you mate nice work.

Im left with one small hangup. At the tope of the questbook there are links, one of which is "back to yourdomain". Which file is this in as it needs to be removed as it opens the home page of the website in the iFrame?

Many thanks again
Pete
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Hi Pete,

You will have to edit the gbook.php file.

I have explained it before for someone else, but it is more work for me to find in old posts, than to explain it again.

In gbook.php version 1.6 find lines 1084-1086

Code: Select all

<p style="text-align:center"><a href="'.$settings['website_url'].'">'.$lang['t61'].' '.$settings['website_title'].'</a>
| <a href="gbook.php">'.$lang['t60'].'</a>
| <a href="gbook.php?a=sign">'.$lang['t48'].'</a></p>
and change it to

Code: Select all

<p style="text-align:center">
<a href="gbook.php">'.$lang['t60'].'</a>
| <a href="gbook.php?a=sign">'.$lang['t48'].'</a></p>


Greetings,
Henrie
jayceegee
Posts: 33
Joined: Sun May 21, 2006 6:33 pm

Post by jayceegee »

I really must reiterate Klemen's and Henrie's statements of searching the forum. Almost every question has been answered somewhere.

However...

This post will show you the lines to remove viewtopic.php?t=1830

One thing I did not mention in the previous post is that you can put the main information into a javascript document, and call it from the head statements i.e.
<script src="name_of_folder/iframe.js" type="text/javascript"></script>
You can do this in a MS text doc or download the excellent program PsPad that Henrie has suggested on many of his posts at http://www.pspad.com/ which has many uses.

Regards, Jim.
pete917
Posts: 12
Joined: Sat Oct 11, 2008 1:28 pm

Post by pete917 »

thanks guys that worked a treat.

I did try searching but couldnt find thre answer.

Thanks again.

Works perfect now:

http://www.myporsche911.co.uk/gbook/gbook.html
Post Reply