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!
Two questions
Two questions
Brian
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Two questions
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:
What exactly to use depends on your template...
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
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;
}
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.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.
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/
# 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/
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
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
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
Yes, you can do that by inserting this:
My code for the footer was just an example. The actual code is this:
HTH,
Garvin
Yes, you can do that by inserting this:
Code: Select all
#serendipity_comment_page {
background-color: white;
}
Code: Select all
.serendipity_entryFooter {
margin-top: 20px;
}
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/
# 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/
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
Those are in your entries.tpl file, around these lines:
HTH,
Garvin
Those are in your entries.tpl file, around these lines:
Code: Select all
{if $entry.viewmode eq $CONST.VIEWMODE_LINEAR}
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/
# 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/
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
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
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/
# 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/