<hr> between entries

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
holysjit
Regular
Posts: 131
Joined: Sun Apr 08, 2007 9:47 am

<hr> between entries

Post by holysjit »

Hi,
I want add a bit structure to my weblog, so I want between posts a <hr> or line (image). How do i do this?
I added a red line in the screenshots. Thats the one i want to add. How?

http://img69.imageshack.us/img69/6118/redlineis0.png


Thanks
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: <hr> between entries

Post by garvinhicking »

Hi!

For that you can/must either edit the entries.tpl template file and insert a <hr> after {$entry.body} for example. Place that there and watch how it affects your blog.

The other option would be to do it with CSS already, by using a "border-bottom". Since you didn't provide your URL, I can't give you the full CSS code you need to add to your style.css file, but it's something like:

Code: Select all

.serendipity_entry {
    border-bottom: 20px solid red;
}
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
holysjit
Regular
Posts: 131
Joined: Sun Apr 08, 2007 9:47 am

Post by holysjit »

I have now another problem: Stupid me!
I added to a file <hr> , but I cant find the file which contains the <hr> tag.
www.thejokers.nl

Maybey you know?

P.S. Its not in the Andreas08 folder, I'm sure about that!!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Uhm, I'm not sure I understand your question.

You added a "<hr>" to a file but you can't remember to which file you added it? Because the <hr> shows up in your blog?!

You must have inserted it into the 'entries.tpl' file...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
holysjit
Regular
Posts: 131
Joined: Sun Apr 08, 2007 9:47 am

Post by holysjit »

Yeah, that's my question.

Watch my index.tpl file

http://www.freefileupload.net/file.php? ... ntries.tpl

I added a <hr> to a file, but I can't find it.
The <hr> appears after the READ MORE link.....
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

To which file did you add it?

I just looked at your blog, it seems you inserted the <hr> into your ENTRY, not inside a template file.

Go and edit the file templates/andreas08/entries.tpl (the one you posted). After line 27 ( a closing </div>) you can simply add your <hr />.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
holysjit
Regular
Posts: 131
Joined: Sun Apr 08, 2007 9:47 am

Post by holysjit »

No, but I made a backup from my andreas08 folder, and I downloaded the Andreas08 template again, and uploaded the NEW files to my ftp. And the <hr> is still there. I did this yesterday.... Thats why I said that it couldn't be the Andreas08 folder..
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

You're confusing me. :)

Maybe you don't have the andreas08 template activated? Go to the s9y admin panel, go to "manage styles" and then activate andreas08. Maybe you currently have activated a different template.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
holysjit
Regular
Posts: 131
Joined: Sun Apr 08, 2007 9:47 am

Post by holysjit »

It was activated already.
Yesterday I was crapping with the .tpl files, but im sure its not the Andreas08 folder. But I restored all files, but the <hr> wont go away...
holysjit
Regular
Posts: 131
Joined: Sun Apr 08, 2007 9:47 am

Post by holysjit »

I solved it! I changed in the CSS file the width for HR

Code: Select all

 hr {
  border: 0;
  width: 0%;
}
I never use <hr>, so it's no problem for me..
But which file contains <hr>, I will never know i think :)
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Are you sure you didn't accidentally edit a file in templates_c/ ? Those files are never meant for editing, you might need to telete all the "strange looking" files in that directory, they are only caches for compiled templates.

HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post by judebert »

Indeed, that doesn't remove the <hr> from the output, but only makes it take up no space on the display. Search engines and source code readers will still see it.

I'll bet the edited file was in templates_c, like Garvin said. You can delete those, and they'll be regenerated later.
Judebert
---
Website | Wishlist | PayPal
Post Reply