Troubles with placing guestbook within the site

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
krlmdesigns
Posts: 2
Joined: Sat Jan 23, 2010 5:44 pm

Troubles with placing guestbook within the site

Post by krlmdesigns »

Script URL: http://www.krlmdesigns.co.cc
Version of script: 1.7
Hosting company: 5gigs.net
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:

Write your message below:

Hello, I've got my guestbook up and running, now all I need is some guidance into getting my guestbook to fit in with site http://www.krlmdesigns.co.cc/guestbook/guestbook.html!

I've looked at the other post about the header/footer txt but I've tried that but when I finish adding the codes to the header/footer txt I notice that the whole entire site is below the guestbook page? So is there anyway I can fix this?
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

Show us what you've done so far and we'll see if we can spot a problem.
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 »

Hello krlmdesigns,

I could not test fully but try the following (i used the code you placed here http://www.krlmdesigns.co.cc/guestbook/guestbook.html and put it in the right files, and changed a little in the style.css file).

Add the following to overall_header.php in the templates/default folder before the </header> tag

Code: Select all

<link href="http://www.krlmdesigns.co.cc/guestbook/gbstyle.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
Replace in the overall_header.php file in the templates\default folder the <body> tag by

Code: Select all

<body bgcolor="#DBDBDB" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('http://www.krlmdesigns.co.cc/guestbook/images/homeo2.jpg','http://www.krlmdesigns.co.cc/guestbook/images/auo2.jpg','http://www.krlmdesigns.co.cc/guestbook/images/sero2.jpg','http://www.krlmdesigns.co.cc/guestbook/images/guesto2.jpg','http://www.krlmdesigns.co.cc/guestbook/images/cuo2.jpg')">
In the header.txt file put the following code

Code: Select all

<!-- Save for Web Slices (KRLMDesigns Guestbook.psd) -->
<div id="gbstyle1">
  <table width="850" height="900" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
    <tr>
      <td colspan="11">

        <img src="http://www.krlmdesigns.co.cc/guestbook/images/guestbook_01.jpg" width="850" height="119" alt=""></td>
    </tr>
    <tr>
      <td><a href="http://www.krlmdesigns.co.cc/" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Home','','http://www.krlmdesigns.co.cc/guestbook/images/homeo2.jpg',1)"><img src="http://www.krlmdesigns.co.cc/guestbook/images/homeo.jpg" alt="Home" name="Home" width="90" height="31" border="0"></a></td>
      <td>
        <img src="http://www.krlmdesigns.co.cc/guestbook/images/KRLMDesigns-Main-Site-2_03.jpg" width="3" height="31" alt=""></td>
      <td><a href="http://www.krlmdesigns.co.cc/aboutus" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('About Us','','http://www.krlmdesigns.co.cc/guestbook/images/auo2.jpg',1)"><img src="http://www.krlmdesigns.co.cc/guestbook/images/auo.jpg" alt="About Us" name="About Us" width="87" height="31" border="0"></a></td>
      <td>
        <img src="http://www.krlmdesigns.co.cc/guestbook/images/KRLMDesigns-Main-Site-2_05.jpg" width="3" height="31" alt=""></td>

      <td><a href="http://www.krlmdesigns.co.cc/services" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Services','','http://www.krlmdesigns.co.cc/guestbook/images/sero2.jpg',1)"><img src="http://www.krlmdesigns.co.cc/guestbook/images/sero.jpg" alt="Services" name="Services" width="87" height="31" border="0"></a></td>
      <td>
        <img src="http://www.krlmdesigns.co.cc/guestbook/images/KRLMDesigns-Main-Site-2_07.jpg" width="3" height="31" alt=""></td>
      <td><a href="http://www.krlmdesigns.co.cc/guestbook" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Guestbook','','http://www.krlmdesigns.co.cc/guestbook/images/guesto2.jpg',1)"><img src="http://www.krlmdesigns.co.cc/guestbook/images/guesto.jpg" alt="Guestbook" name="Guestbook" width="87" height="31" border="0"></a></td>
      <td>
        <img src="http://www.krlmdesigns.co.cc/guestbook/images/KRLMDesigns-Main-Site-2_09.jpg" width="3" height="31" alt=""></td>
      <td><a href="http://www.krlmdesigns.co.cc/contactus" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Contact Us','','http://www.krlmdesigns.co.cc/guestbook/images/cuo2.jpg',1)"><img src="http://www.krlmdesigns.co.cc/guestbook/images/cuo.jpg" alt="Contact Us" name="Contact Us" width="87" height="31" border="0"></a></td>
      <td>
        <img src="http://www.krlmdesigns.co.cc/guestbook/images/guestbook_11.jpg" width="3" height="31" alt=""></td>

      <td>
        <img src="http://www.krlmdesigns.co.cc/guestbook/images/guestbook_12.jpg" width="397" height="31" alt=""></td>
    </tr>
    <tr>
      <td colspan="11">
        <img src="http://www.krlmdesigns.co.cc/guestbook/images/guestbook_13.jpg" width="850" height="54" alt=""></td>
    </tr>
    <tr>
      <td colspan="11"><div id="main_content">
In the footer.txt file put the following code:

Code: Select all

</div></td>

    </tr>
    <tr>
      <td colspan="11">
        <img src="http://www.krlmdesigns.co.cc/guestbook/images/guestbook_15.jpg" width="850" height="13" alt=""></td>
    </tr>
    <tr>
      <td colspan="11"><div id="bottom_content">Copyright &copy; 2009. KRLM Designs. All Rights Reserved | Contact <a href="mailto:webmaster@krlmdesigns.co.cc">Webmaster</a></div></td>

    </tr>
    <tr>
      <td colspan="11">
        <img src="http://www.krlmdesigns.co.cc/guestbook/images/guestbook_17.jpg" width="850" height="30" alt=""></td>
    </tr>
  </table>
</div>
<!-- End Save for Web Slices -->
In the style.css file in the templates/default folder change:

Code: Select all

body{margin:0; padding:0; background-image:url(images/bg.png); background-repeat:repeat-x; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px; color:#003399;}
to

Code: Select all

body{margin:0; padding:0; font-family:Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 12px; color:#003399;}
and add the following to the style.css file:

Code: Select all

#main_content {overflow:auto;}
This should (almost) be good. Like i said, could not test it because i am not on your server.

Greetings.
Henrie
I do not monitor the Gbook forums regularly anymore since I do not use the Gbook script myself anymore for a long time. But it helped me a lot in learning to understand php.
krlmdesigns
Posts: 2
Joined: Sat Jan 23, 2010 5:44 pm

Post by krlmdesigns »

Thanks soo much! I had forgotten about this until I was checking my e-mails! Yes, the codes that u provided helped a great deal! I think one of my problems was figuring out what should go in the overall_header.php file plus the header & footer txts! But I really appreciate that you looked at it and helped me out a great deal! Still learning the ways php, not quite my pot of stew, yet!
Post Reply