Page 1 of 1

HR

Posted: Tue Aug 15, 2006 5:07 pm
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)

}

HR

Posted: Tue Aug 15, 2006 5:17 pm
by mirnot
Sorry this is the code I placed

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

}

Posted: Tue Aug 15, 2006 6:59 pm
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

Posted: Tue Aug 15, 2006 8:58 pm
by mirnot
i did as you told me and ....it ain't working!

http://www.moshiachforkids.com/gbook/gbook.php

Posted: Tue Aug 15, 2006 11:34 pm
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

# LINES

Posted: Thu Aug 17, 2006 1:13 am
by mirnot
This may sound very stupid, bit I don't see any numbred lines when I open the Script ?????

Posted: Thu Aug 17, 2006 5:54 am
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