HR

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
mirnot
Posts: 38
Joined: Mon Aug 07, 2006 4:57 pm

HR

Post by mirnot »

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:
Is it possible to use an image as a HR
I posted this code but it does not work
HR {url(http://www.moshiachforkids.com/gbook/blueline.gif)

}
mirnot
Posts: 38
Joined: Mon Aug 07, 2006 4:57 pm

HR

Post by mirnot »

Sorry this is the code I placed

HR {
image: url(http://www.moshiachforkids.com/gbook/blueline.gif);

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

Post by Henrie »

As you have noticed you can't use an image for a <hr> tag.
As a matter of fact all "presentation attributes" of the hr element were deprecated in HTML 4.01.

To use an image instead of a <hr> you have to change the code in the gbook.php file.

search for the <hr> tag and replace it with a image tag like <img src="images/horizontalline.gif">

Greetings,
Henrie
mirnot
Posts: 38
Joined: Mon Aug 07, 2006 4:57 pm

Post by mirnot »

i did as you told me and ....it ain't working!

http://www.moshiachforkids.com/gbook/gbook.php
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

Where do you want the line to appear?

The <hr> is used to divide the comment from the date and delete/reply/ip images.
The <hr> is a block level element so automatically starts at a new line. To get the image to begin in a new line, add a <br> before the start of the image tag.

If you want the image to be a divider between posts. Divide the entries into different tables as described in this post viewtopic.php?p=4248#4248 and at line 830 add a <br> and <img>

And I see you still get the "headers already sent" error. I think you have a <head> tag in the header.txt file (i tried to look at your header.txt file but it is empty so i think you have included an other file, but also with a <head> section). It is not allowed there.
If you want to edit the head section to get your own modified code in the <head>..</head> section (include your own javascripts or stylesheets) or your own modified <body> tag you have to edit the gbook.php file.
You can find the code that writes the head section at lines 867-884 (in gbook.php file version 1.43).

I hope you get it working now.

Greetings,
Henrie
mirnot
Posts: 38
Joined: Mon Aug 07, 2006 4:57 pm

# LINES

Post by mirnot »

This may sound very stupid, bit I don't see any numbred lines when I open the Script ?????
Henrie
Posts: 1095
Joined: Sun Aug 14, 2005 8:57 pm

Post by Henrie »

The numbered lines will only be visible with a program that supports line numbers.

I do not know what program you use, but i use PSPad to write my pages. It supports line numbers syntax highlighting and most important it's freeware.
Also almost any other program that calls itself an html editor has these functions.

You could also edit the pages with notepad, but it does not show line numbers or syntax highlighting. But you can find the tag with the search function (Ctrl+F).

Greetings,
Henrie
Post Reply