problems with footer of my site

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
Hendrik
Posts: 7
Joined: Mon Mar 10, 2008 11:34 am

problems with footer of my site

Post by Hendrik »

First of all, gracias for the great gbook1.6,
I also do have a problem with displaying my footer in the gbook pag. on my site. I was reading a lot about it in this forum, but can't find a answer for me. I try the header and footer text files, Now I put gbook in a frame, the header is perfect, but I can't get it work with my footer.
Maybe, the problem is me, i am just a beginner in this and with php. :lol: hahahaha When I put the code into the header and footer text files, the gbook move to the left of the screen, and the page is all mixed!! What I have now, it's the best I can do so far!! My footer is included the buttons on the right: Que hot, interactiva and sponsers ect ect ect

My site is http://www.urbanbici.com.ar The page where i put the script of gbook is:http://www.urbanbici.com.ar/gbook.php I don't know, of I have to give you more info, maybe you want to have a look at my code of the header and footer?? I did not change any code in gbook, just I put it in a frame.

Thanks in Advance, Hendrik
I am using a cpanel server in the Nederlands (Tilburg)[/code][/url]
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

You were editing the code inside gbook.php, don't do that unless you know how PHP and HTML work. It's all messed up now, you have two <head> and <body> tags... Use header.txt and footer.txt to paste any code you need.
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
Hendrik
Posts: 7
Joined: Mon Mar 10, 2008 11:34 am

Post by Hendrik »

Hi Klemen, thanks for the fast reply, I am sorry,but I am new with php. When I do what you tell me, only the script, a header text file and a footer text file, than I get all over my screen the gbook, but my header and footer are ok, i do think I have to put the gbook script into a frame, so it's on the good place inside a pag. Do you have a solution, so i can put it insite a frame, and like you told me, use the header and footer file?

If you look at my site, you see that all my text and foto's are displayed into a gray frame. http://www.urbanbici.com.ar/gbook.php

I am very sorry, cause i realy feel stuppid with this!! But php and all of this is so interested for me.

Thanks in advance, and till now: a "monton gracias" for what you did!!

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

Post by Klemen »

Just post your footer code inside the footer.txt, I think this should do it:

Code: Select all

<!-- Include FOOTER -->				



	</td>

<style type="text/css">

<!--

.style2 {color: #666666}

a:link {

	text-decoration: none;

}

a:visited {

	text-decoration: none;

}

a:hover {

	text-decoration: none;

}

a:active {

	text-decoration: none;

}

.style6 {color: #FFFFFF}
.style22 {font-size: 10px; color: #666666; font-family: Verdana, Arial, Helvetica, sans-serif;}
.style25 {color: #CCCCCC}
.style29 {color: #333333}
.style9 {font-size: x-small}
.style30 {font-size: xx-small}
.style32 {
	color: #333333;
	font-size: 10px;
	font-family: Verdana, Arial, Helvetica, sans-serif;
}
.style33 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
	color: #999999;
}
.style35 {
	font-family: "Bauhaus 93";
	color: #CC99CC;
}
.style37 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	color: #CC99CC;
	font-size: x-small;
}

-->

</style>
	<td valign="top" background="i/box_border_02.jpg" class="style29"><img src="i/tHot.jpg" width="206" height="42" border="0" lowsrc="i/tHot.jpg" /><br />
	<table width="180" border="0" align="center">
				<tr>
				  <td><p class="style33"><a href="delta.php" class="gLink4">Bici anuncias en BsAs</a><br />
				      <a href="comprar.php" class="gLink4">Comprar y gana dinero</a><br />
				        <a href="recetas.php" class="gLink4">Urban bici recetas</a><br />
			          <a href="ley no 2.586.php" class="gLink4">Trans. publi. de bici, Ley 2.586</a></p></td>
				</tr>
	  </table>		

		<img src="i/tInteractiva.jpg" width="206" height="45" lowsrc="i/tInteractiva.jpg" />
		<table width="183" border="0" align="center">
          <tr>
<td><span class="style22"><a href="delta1.php"><span class="style9"><a href="delta1.php" class="gLink4">Datos , info y mas...</a><br />
        <a href="plegado.php" class="gLink4">Demo plegado la bici </a></span></a></span></td>
          </tr>
      </table>
        <img src="i/tAnuncia.jpg" width="206" height="45" lowsrc="../i/tAnuncia.jpg" /><br />
        <img src="i/adds-urbanbicisite.gif" width="206" height="180" border="0" lowsrc="i/adds-urbanbicisite.gif" /><a href="http://www.bnpparibas.com.ar/es/home/default.asp" target="_blank"><br />
      <img src="i/adv-bnp.gif" width="206" height="45" border="0" lowsrc="i/adv-bnp.gif" /></a><a href="http://www.bnpparibas.com.ar/es/home/default.asp" target="_blank"></a><br />
          <a href="http://www.inmoview.com" target="_blank"><img src="i/adds-INMOview.gif" width="206" height="45" border="0" lowsrc="i/adds-INMOview.gif" /></a><a href="http://www.ortlieb.com/index2.php?lang=es" target="_blank"></a></a><br />
          <a href="http://www.bnpparibas.com.ar/es/home/default.asp" target="_blank"></a><br />          
          <br />          <a href="http://www.hotelruadokalifa.com/" target="_blank"><br />
          </a>
              <table width="183" border="0" align="center">

          <tr>

            <td width="177"><p class="style2">&nbsp;</p></td>

          </tr>

    </table></td>

</tr>

<tr>

	<td width="635"><img src="i/box_foot_01.jpg" width="635" height="42" border="0" lowsrc="i/box_foot_01.jpg"></td>

	<td><img src="i/box_foot_02.jpg" width="206" height="42" lowsrc="i/box_foot_02.jpg"></td>

</tr>

<tr>

<td align="center" class="clsTexto01 style2"><p align="center"><br />
&bull; URBANbici.com.ar &bull; pr-sales c: <span class="style30">(+54) 911 6161 2277</span> &bull;  c.u.i.t: <span class="style9">27-28506838-5</span> &bull; Buenos Aires &bull;<br>
  <span class="style2"><span class="style25"><br>
   </span><span class="style2">&bull; </span><span class="style25"><span class="style2">Powered by </span></span><span class="style37">bootth&trade;</span><span class="style25"><span class="style2"> &bull; Copyright &copy; <span class="style30">2008 </span></span></span><span class="style2">&bull; Other<strong class="style32"> trademarks</strong> by their respective owners &bull;</span><span class="style6">,</span><br />
   <span class="style6">.............................................................................................................<br />
   </span><span class="style2">&bull; <a href="garantia.php" class="style35">garantia</a> &bull; <a href="notalegal.php" class="style35">nota legal</a> &bull; </span><a href="privacidad.php" class="style35">privacidad</a><span class="style2"> &bull; </span><span class="style6">.. <img src="i/ortlieb logo.gif" width="69" height="10" lowsrc="i/ortlieb logo.gif" />.<img src="/i/puma-logo.gif" width="48" height="20" lowsrc="/i/puma-logo.gif" /><img src="i/strida.jpg" width="40" height="11" lowsrc="i/strida.jpg" /></span>  <span class="style6">.<img src="i/youtube.gif" width="35" height="13" lowsrc="i/youtube.gif" /></span>
</tr>
Paste it into the footer.txt and see if it helps. Might need some adjustments but it should get you going.
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
Hendrik
Posts: 7
Joined: Mon Mar 10, 2008 11:34 am

Post by Hendrik »

Hi Klemen, I do think I drive you crazy!! But that is not my intension. I did try the code and put it into the footer file. I did that before, and than the gbook script move to the left of my frame. Also I do get the footer not on the good place into the page. I did upload it to the server, http://www.urbanbici.com.ar/gbook.php
Also the script is move to the centre of the page. and I get bold line that are not good in my design.

I know, you can't look into every website that have that problems with instal the script. Cause the script is working perfect, the problem is how my website is build.

In my case, maybe you have other sugestions, how I can put your good working script into my (not good working) website? I do like your guestbook !!! I do have 3 more sites with the same style, I want to put this guestbook into all of my sites.
(inmoview.com, estiview.com)

You also did talk about that I have tags , is that easy to check and delete?
I have to say, your reply's are good and very fast!! I hope you can help me futher, but anyway, i am going to recomment you and your scripts to my friends.

Thanks, dank je, danke schon or gracias Hendrik
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

You are not driving me crazy :lol:

It's just like you said, I can't look into every website. I help with the script and if that's working it's up to the owner to configure the rest. That's why I try to give general guidelines so everyone can benefit (if I help one person, why not all the others?).

What you (or anyone else) can try is something like this (BACKUP OLD FILES FIRST):

1. create a page how you would like your script to look and type GBOOK_HERE where you want the posts to appear.

2. open that page in a text editor (Notepad or Wordpad) and find GBOOK_HERE in the code (don't get scared by all the code, you can use the "Find" function).

3. copy all code AFTER the GBOOK_HERE and paste it into footer.txt

4. Open gbook.php in Notepad or Wordpad. Copy all code BEFORE the GBOOK_HERE. Delete lines 1063 to 1081 in gbook.php:

Code: Select all

echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>'.$settings['gbook_title'].'</title>
<meta http-equiv="Content-Type" content="text/html;charset='.$lang['enc'].'" />
<link href="style.css" type="text/css" rel="stylesheet" />
<script type="text/javascript"><!--
function openSmiley() {
w=window.open("smileys.htm", "smileys", "fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=yes,directories=no,location=no,width=300,height=300");
  if(!w.opener)
  {
  w.opener=self;
  }
}
//-->
</script>
</head>
<body>
';
and paste this instead:

Code: Select all

?>
YOUR CODE HERE
<?php
Then add this javascript to your code, somewhere between <head> and </head> tags:

Code: Select all

<script type="text/javascript"><!--
function openSmiley() {
w=window.open("smileys.htm", "smileys", "fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars=yes,resizable=yes,directories=no,location=no,width=300,height=300");
  if(!w.opener)
  {
  w.opener=self;
  }
}
//-->
</script>

Hope this helps. If it still breaks your design I suggest that you try making a simple header and footer instead of putting it in a frame.

- OR -

You can use an <iframe> to show the GBook in 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
Hendrik
Posts: 7
Joined: Mon Mar 10, 2008 11:34 am

Post by Hendrik »

Gracias klemen, I am going to try that, and let you know later.
Un Abraso Hendrik
Hendrik
Posts: 7
Joined: Mon Mar 10, 2008 11:34 am

It's working

Post by Hendrik »

Hi Klemen, I just wanted to let you know, thanks for all the help. It's working now!! :D Even I, a beginner in PHP, was able with the help from you to put this great script in my site. Have a look at urbanbici.com.ar

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

Post by Klemen »

Looks nice, glad you got it working!
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
Hendrik
Posts: 7
Joined: Mon Mar 10, 2008 11:34 am

Post by Hendrik »

Hi Klemen, I do have 2 more questions?

1) I was looking at some websites, that use your gbook, and see that some of them have a underline color in de line:
Submitted by ..........Comments........... I am not using the style.php that comes with your gbook, I am using my own.
But maybe there is a code, I can add in gbook? So I don't have to use 2 styles? Or change the one I use now.
I have a page with links (http://www.urbanbici.com.ar/links.php) That use this code and color: bgcolor="#F8F0FF" for the underlines.

2) Do you know someone that translated your gbook1.6 in Spanish? If not, I am going to do that, and post it here.

Thanks in Advance, Hendrik
Hendrik
Posts: 7
Joined: Mon Mar 10, 2008 11:34 am

Post by Hendrik »

Hi Klemen, day by day, I am getting better and better :D , forget the first question, I just copy a part of the style.php from gbook and add it in my style.php from my site, it's is working good.

Still, if you know somebody that translated the gbook into spanish, I am happy to hear that??

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

Post by Klemen »

No, sorry, I only know of translations that are posted to the mods forum:
viewforum.php?f=3

Only German and Dutch there.
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