Embedding in an ImageReady / Dreamweaver html document

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
jtk2112
Posts: 3
Joined: Thu Mar 20, 2008 3:15 pm

Embedding in an ImageReady / Dreamweaver html document

Post by jtk2112 »

Script URL: http://juanmetal.net/main/pg/guest2.html
Version of script: 1.6
Hosting company: godaddy.com
URL of phpinfo.php: http://juanmetal.net/phpinfo.php
URL of session_test.php: http://juanmetal.net/session_test.php
What terms did you try when SEARCHING for a solution: Embedding into existing page

Write your message below:

Hello everyone. I have a question about embedding the guest book code into an existing HTML document. I need the guest book to appear between the two chains (see http://juanmetal.net/) on the guest page but, as you will see, things did not turn out as I expected. I tried putting all my web page information in the header but then the guest book appeared below everything. I have a feeling this may not work with my design. I truly appreciate anyone's help or ideas. I know that I could have the guest book come up as a separate page but, I really want it to appear between the left chain and right chain.

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

Post by Klemen »

Probably the best way to go for you (to avoid any unexpected stretching of the chains) is to create an <iframe> and link to gbook.php in that frame. You can set the iframe to the desired width and height so that it fits into your design.
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
Saldash
Posts: 4
Joined: Wed Nov 05, 2008 7:54 am

Post by Saldash »

I too have a similar issue.
i have a simple webpage with a set of tables to layout the content..
I want the Guestbook to site neatly on the page which it does..
but anything after the guestbook script is cut off..

example:
I have a site page template and i want the guestbook to sit in table cell..
I copy and paste the gbook.php code into the template and save the whole lot as a new gbook.php..

Everything looks great until the bottom of the page.. footter of my template is cut off completely.. as in its just not there.

Take a look: http://www.world-recoded.co.uk/guestbook/

I've tried using the header/footer.txt approach and all i get is the correct header and footer.. with a gap in the style that the guestbook sits in.. which is again not what i want..

Does anyone have anyideas?

Cheers,
Saldash
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

I think you should create an iframe in the table cell and load the GBook in that iframe.

Take a look at the following post for more info viewtopic.php?t=1684

Greetings,
Henrie
Saldash
Posts: 4
Joined: Wed Nov 05, 2008 7:54 am

Post by Saldash »

I want to try and avoid the use of unnessesary inline frames if possible..

It seems perfectly reasonable to assume that being able to support site styles without resorting to quick-fix solutions is well within the boundries of th current Guestbook software..

It's just about how.. If you take a look at my site youll see that i can wrap the guestbook right down to the footer of the guestbook..
If a reason as to why the PHP file is cutting off the end of the HTML can be fond, then a solution can be formed to tackle the issue..

Sofar, my progress has been able to wrap the Gbook down to the footer..
I can include the footer info i want in a seperate txt file and load it after the PHP GBook, but it still apears within the same cell as the guestbook..

http://www.world-recoded.co.uk/guestbook ...take a look...
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Why not use the provided footer.txt file which comes with GBook? Just paste your footer code in the footer.txt file and make sure you DON'T have any <head> or <body> tags in the future and DON'T have any </body> tags in header.
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
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Hi Saldash,

If you want to incorporate the guestbook into you sitestyle like you do now, you will have to ask Klemen for permission to edit the gbook.php file.

The problem is </body></html> which is standard in Gbook. This ends the html page before your own footer code is rendered.

Unfortunately </body></html> is encoded in the printDownHTML() function in gbook.php.
I think that Klemen should exclude these two tags out of the encoded part so people like us can integrade gbook better in our pages (with include functions).

Greetings,
Henrie
Saldash
Posts: 4
Joined: Wed Nov 05, 2008 7:54 am

Post by Saldash »

Klemen wrote:Why not use the provided footer.txt file which comes with GBook? Just paste your footer code in the footer.txt file and make sure you DON'T have any <head> or <body> tags in the future and DON'T have any </body> tags in header.
I did make use of the footer.txt file, the footer apeared, but it apeared WITHIN the same cell as the Gbook.php..

I also tried using a seperate php include with the footer data in it.. it made no difference..
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Well then there was a problem with your HTML code if table cells didn't close correctly (or you just replaced all code in the gbook.php footer function?). If you're not that familiar with HTML code you can use a trick like described here (and several times in the forum):
http://www.phpjunkyard.com/tutorials/cut-paste-code.php

1.Create a template HTML document
2. type "GBOOK_HERE" where you want the GBook to be located
3. open the template in a text editor so you can see the source code
4. find GBOOK_HERE inside the code
5. paste all code located before GBOOK_HERE in header.txt and all code after GBOOK_HERE in footer.txt.

You will need to do some tweaking like removing </body> and </html> tags and editing <head> HTML code in gbook.php file directly.


Or if you can't figure it out edit GBook as you did before (when cells didn't align properly) and we will have a look at your HTML code.
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
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Hi Klemen,

Your suggestion removing </body> and </html> in gbook.php directly is not possible because you have it gzinflated and base64 encoded in the function printDownHTML().

Read my previous post in this thread.

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

Post by Klemen »

I meant the one in the HTML template.
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
Saldash
Posts: 4
Joined: Wed Nov 05, 2008 7:54 am

Post by Saldash »

5. paste all code located before GBOOK_HERE in header.txt and all code after GBOOK_HERE in footer.txt.
Thank you, that was all that needed doing, although I get a message saying i cannot sign the guestbook.. but i can reply using admin reply function... so, no idea what going on there..

Moving to a differant thread..
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

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
Post Reply