I need to insert the gbook I've downloaded into my webpage

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
ellyainee
Posts: 1
Joined: Wed Oct 31, 2007 2:29 pm

I need to insert the gbook I've downloaded into my webpage

Post by ellyainee »

Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:
I have been successful in downloading, installing and uploading the gbook files to my host server's web builder (vdeck). So the files are already there. I've even tested the gbook and it works!! What I need to know how to do now is to get the guestbook from the file manager in vdeck to the page where I want it.

*Note: I will need instructions that I can understand. I have been all over the web looking for instructions, and I can't understand anything I'm reading!

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

Post by Henrie »

I do not know how vdeck works.
But normally you would create a link in the menu of your website to the gbook.php file. The link at the top of your the gbook is a link back to your normal pages.

To give the guestbook a look more like the normal pages of your website you can put html code in the header.txt and footer.txt files in the gbook folder.

I hope this helps.

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

Post by jayceegee »

I assume that you wish to have all pages in the same format. If so, an iFrame is the way to obtain this. You could use an ordinary iFrame, but with this you have to guess the length that would be required.
The best way is to use a dynamic iFrame which will adjust itself to suit.

Place the following code between the head tags, say just before the closing </head> tag
<script type="text/javascript">

/***********************************************
* IFrame SSI script II- © Dynamic Drive DHTML code library (http://www.dynamicdrive.com)
* Visit DynamicDrive.com for hundreds of original DHTML scripts
* This notice must stay intact for legal use
***********************************************/

//Input the IDs of the IFRAMES you wish to dynamically resize to match its content height:
//Separate each ID with a comma. Examples: ["myframe1", "myframe2"] or ["myframe"] or [] for none:
var iframeids=["myframe"]

//Should script hide iframe from browsers that don't support this script (non IE5+/NS6+ browsers. Recommended):
var iframehide="yes"

var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]
var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0 //extra height in px to add to iframe in FireFox 1.0+ browsers

function resizeCaller() {
var dyniframe=new Array()
for (i=0; i<iframeids.length; i++){
if (document.getElementById)
resizeIframe(iframeids)
//reveal iframe for lower end browsers? (see var above):
if ((document.all || document.getElementById) && iframehide=="no"){
var tempobj=document.all? document.all[iframeids] : document.getElementById(iframeids)
tempobj.style.display="block"
}
}
}

function resizeIframe(frameid){
var currentfr=document.getElementById(frameid)
if (currentfr && !window.opera){
currentfr.style.display="block"
if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) //ns6 syntax
currentfr.height = currentfr.contentDocument.body.offsetHeight+FFextraHeight;
else if (currentfr.Document && currentfr.Document.body.scrollHeight) //ie5+ syntax
currentfr.height = currentfr.Document.body.scrollHeight;
if (currentfr.addEventListener)
currentfr.addEventListener("load", readjustIframe, false)
else if (currentfr.attachEvent){
currentfr.detachEvent("onload", readjustIframe) // Bug fix line
currentfr.attachEvent("onload", readjustIframe)
}
}
}

function readjustIframe(loadevt) {
var crossevt=(window.event)? event : loadevt
var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement
if (iframeroot)
resizeIframe(iframeroot.id);
}

function loadintoIframe(iframeid, url){
if (document.getElementById)
document.getElementById(iframeid).src=url
}

if (window.addEventListener)
window.addEventListener("load", resizeCaller, false)
else if (window.attachEvent)
window.attachEvent("onload", resizeCaller)
else
window.onload=resizeCaller

</script>


Then place the code below at the point at which you wish to have the guestbook (centre the cursor in the table and go to the code page to find the cursor). In your case remove all information in the lower right hand table, and preferably the table nested within that table, or you will restrict the width of the guestbook.

<iframe id="myframe" src="name_of_folder/gbook.php" scrolling="no" marginwidth="1" marginheight="1" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100%; display:none" name="Guestbook"></iframe>


Remember to place your own folder name in the code above (in red)

If you cannot do this, please feel free to email me, and I will send you back an HTML file with the iFrame inserted. What HTML editor are you using? You can see an iFrame on my website under guestbook.

Regards, Jim.
Post Reply