Page 1 of 1

Two questions

Posted: Tue Jun 06, 2006 2:45 am
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!

Re: Two questions

Posted: Tue Jun 06, 2006 10:47 am
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

Posted: Tue Jun 06, 2006 10:58 am
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

Posted: Tue Jun 06, 2006 11:16 am
by Brian1969
Oh....also, I'm using the SFII template with some modifications, if that helps.

Posted: Tue Jun 06, 2006 11:27 am
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

Posted: Tue Jun 06, 2006 11:30 am
by Brian1969
Cool, thanks! They both worked.

Posted: Wed Jun 07, 2006 6:05 am
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!

Posted: Wed Jun 07, 2006 12:29 pm
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

Posted: Wed Jun 07, 2006 4:35 pm
by Brian1969
Do I just delete it? If so, what lines?

Posted: Wed Jun 07, 2006 6:59 pm
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