Horizontal bar

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
Rhialto
Posts: 10
Joined: Thu May 03, 2007 2:53 am

Horizontal bar

Post by Rhialto »

Klemen Stirn wrote:There could be a number of problems, I suggest you start a new thread in the appropriate forum (not in the "add-ons" forum). If you don't get the horizontal bar with the ORIGINAL files (non-edited) then the problem could be your customization.
Just tried with the original gbook.php you sent me with no header and footer and original settings.php and style.css and I still get the horizontal bar. Problem just when in a frame and no it's not a tiny frame. Page only has 2 frames, 1st 160px then other remaining of page and whatever resolution I go it always happen when reach bottom of page with a width that look like 105%, it's not variable.

Image

When not in frame, no problem.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

You will need to post the URL of your gbook.php if you want someone to have a look.
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
Rhialto
Posts: 10
Joined: Thu May 03, 2007 2:53 am

Post by Rhialto »

Klemen Stirn wrote:You will need to post the URL of your gbook.php if you want someone to have a look.
Sure!

With the frame: ***
Without frame : ***

Both use same file as g.htm points to gbook/gbook.php

Code: Select all

<FRAMESET COLS="160,*" FRAMEBORDER="no" FRAMESPACING="0">
	<FRAME FRAMEBORDER="no" MARGINWIDTH="0" MARGINHEIGHT="0" SRC="left.htm" NAME="menu" NORESIZE SCROLLING="no">
	<FRAME FRAMEBORDER="no" MARGINWIDTH="0" MARGINHEIGHT="0" SRC="gbook/gbook.php" NAME="main" NORESIZE SCROLLING="auto">
</FRAMESET>
Thanks.
Last edited by Rhialto on Mon Jun 09, 2014 12:56 pm, edited 1 time in total.
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Hello Rhialto,

I just tested and it has something to do with Internet Explorer 6. Probably a problem with how it generates xhtml transitional page. The problem is that the width of the vertical scrollbar is not substracted from the screen width. Therefor you get the horizontal scrollbar to see the width of the page that is displayed behind the vertical scrollbar.
IE7, IE5.5, Firefox 2 and Opera 9.1 display the page correctly without horizontal scrollbar.

I usually solve this by adding a width less than 100% to the body tag in the css file.
Try adding the following line at the top of the style.css file

Code: Select all

body {width: 96%;}
Greetings,
Henrie
Rhialto
Posts: 10
Joined: Thu May 03, 2007 2:53 am

Post by Rhialto »

Henrie wrote:Try adding the following line at the top of the style.css file

Code: Select all

body {width: 96%;}
It works but it's no cute, you know what I mean when we use %.

I wonder if there is another solution? Will Klemen have to consider this for a next release for people that use frames? With all my other pages that goes in that frame I specify a table width = 100% right after the body to use full frame width and I have no scrollbar problem on any page.

Weird that this only happen when you reach bottom of page, otherwise there is no horizontal scrollbar.
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

In my browser it shows the horizontal scrollbar immediately from the start of the page. But only in IE6, not in any other browser.

To remove the horizontal scrollbar I have a solution but i really dislike this solution.
As I mentioned before it is a problem of IE6 rendering xhtml pages so the solution is in the doctype declaration.

Open gbook.php file and find:

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
and replace it with:

Code: Select all

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
I searched with google and found this page http://www.noscope.com/journal/2004/02/ ... nt-page-2/

A good solution according to that page is:
Add the following to you style.css file:

Code: Select all

html {overflow-y: scroll;}
This is the easiest solution and the one that I would use.

Greetings,
Henrie.
Rhialto
Posts: 10
Joined: Thu May 03, 2007 2:53 am

Post by Rhialto »

Hey thanks a lot Henrie. The last solution works great (haven't tried the 1st one). If force the scroll vertical bar but it's not scrollable if no need, different from all other pages of my site but I can live with that much better than using a % width for the body. :-)

Now that I solved those 2 problems it's time to get back to some modification then if I get everything right, the translation.

I'm just unsure if I should use the version with language files by Frankma or use the original. Sadly there is no 1.6 in the horizon. Once done and working I won't bother upgrading later.

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

Post by Klemen »

I knew Henrie will come with a solution, he's the XHTML/CSS guru here :D

Rhialto wrote:Sadly there is no 1.6 in the horizon. Once done and working I won't bother upgrading later.
You need to understand that this here are FREE scripts and I have other things to do in life than just developing them for you. I don't get paid for writing new versions and especially I don't get paid for providing support.
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
Rhialto
Posts: 10
Joined: Thu May 03, 2007 2:53 am

Post by Rhialto »

Klemen Stirn wrote:
Rhialto wrote:Sadly there is no 1.6 in the horizon. Once done and working I won't bother upgrading later.
You need to understand that this here are FREE scripts and I have other things to do in life than just developing them for you. I don't get paid for writing new versions and especially I don't get paid for providing support.
Sounds a bit rude, specifically the "for you". That was a question to myself about going with original or use Frankma's language files. Since I'm working on it now what I meant was if there was to be a 1.6 soon with language files like you specified in another post which 1.6 will probably use then I would have been happy to translate it for my use and everyone's use also but that's not happening.

Instead I decided it would be easier to translate gbook.php directly so I will call either the english or french one depending on visitors and both will use the same entries.txt file. This mean the only thing I will be able to share is the french dirty words if I plan to use it because my website don't get tons of visitors so I don't think I will get flooded with bad words.

I've voted 5/5 for it yesterday. :-) With about every FREE script I use I put a few hours to fine tune it to my taste and I usually send a 5$ to the author (2006 here). Maybe not that much but if everyone would do that a few authors would be more happy.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post by Klemen »

The "for you" wasn't meant YOU (Rhialto) personally, it was meant for everyone reading and using GBook. Sorry if it sounded rude, wasn't my intention, just trying to make a point here :wink:
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