Two questions

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Brian1969
Regular
Posts: 78
Joined: Tue Mar 22, 2005 7:03 pm
Contact:

Two questions

Post by Brian1969 »

I have two questions on how to edit my template.

First, what file would I edit (and how) to change the background color of my comment/trackback pop-up window? It comes up in the same blue background of my site, and it's hard to see the links.

Second, how would I edit my CSS file in my template to add a line or a space (or both) between the very last line of my post and the post information (the part that says "Posted by Brian in category at time", etc)?

Thanks!

Also, I'm really liking a lot of the new templates I'm seeing from everyone! I'm thinking of switching to a custom-made template, unique to my site. If anyone is interested in doing it, feel free to contact me. =D

On a side note, are there any new plugins in the works that would handle the spam issues better than we have right now? I've set up anti-spam measures, and they always seem to block legit users, yet still let the spam in.

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

Re: Two questions

Post by garvinhicking »

Hi!

The colors are contained in the "style.css" file of your template. You can use distinct HTML ID selectors on the body tag of that popup to put a unique style onto the background.

For your second problem, you would need to edit the entries.tpl file for that. However, adding spacing can also be done with CSS, with something like:

Code: Select all

.serendipity_footer {
 margin-top: 20px;
}
What exactly to use depends on your template...
On a side note, are there any new plugins in the works that would handle the spam issues better than we have right now? I've set up anti-spam measures, and they always seem to block legit users, yet still let the spam in.
This very much depends on your plugin configuration. As it stands, the spamblock plugin is very effective, there is no reason to develop a new plugin.

If you give details about your config, and examples of spam that is let in and legit messages that are blocked, we could tell you what to change.

Best 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/
Brian1969
Regular
Posts: 78
Joined: Tue Mar 22, 2005 7:03 pm
Contact:

Post by Brian1969 »

Thanks for your reply.

In the past, I have tried editing my CSS style sheet, but when I changed the color for the pop-up window, the bg color of my main page also changes. Is it possible to change the pop-up window to, say, white, yet leave the blue in place, and if so, can you tell me exactly what part of the sheet I'd have to edit, and how?

As for the spam problems, I think I got it figured out now. I tinkered around with it after I posted earlier, and I think I got it set correctly now. Will let you know if that changes. lol

I tried adding that code for the spacing, it didn't do anything. If I were to edit the entries.tpl file, where would I edit, and how? I know zilch about php, that's why I'm asking. =D
Brian
Brian1969
Regular
Posts: 78
Joined: Tue Mar 22, 2005 7:03 pm
Contact:

Post by Brian1969 »

Oh....also, I'm using the SFII template with some modifications, if that helps.
Brian
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Yes, you can do that by inserting this:

Code: Select all

#serendipity_comment_page {
    background-color: white;
}
My code for the footer was just an example. The actual code is this:

Code: Select all

.serendipity_entryFooter {
 margin-top: 20px;
}
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/
Brian1969
Regular
Posts: 78
Joined: Tue Mar 22, 2005 7:03 pm
Contact:

Post by Brian1969 »

Cool, thanks! They both worked.
Brian
Brian1969
Regular
Posts: 78
Joined: Tue Mar 22, 2005 7:03 pm
Contact:

Post by Brian1969 »

One more question, if I may.

How do I get rid of the text on a page that reads:
Comments
Display comments as (Linear | Threaded)


No comments
(Do not allow comments to this entry)


Add Comment
What file do I edit, where, and how?

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

Post by garvinhicking »

Hi!

Those are in your entries.tpl file, around these lines:

Code: Select all

{if $entry.viewmode eq $CONST.VIEWMODE_LINEAR}
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/
Brian1969
Regular
Posts: 78
Joined: Tue Mar 22, 2005 7:03 pm
Contact:

Post by Brian1969 »

Do I just delete it? If so, what lines?
Brian
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Yes, you delete the lines and following. My suggestion is that you should just try a few tings. Add some lines there, add some "XXX" somewhere and then see how that affects oyur blog display.

This is a very good way to learn how your templates are organized, what is where etc. You'll learn a lot during that process.

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/
Post Reply