Highlighting Authors comments

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
pilif
Regular
Posts: 11
Joined: Thu Jan 06, 2005 4:02 pm
Contact:

Highlighting Authors comments

Post by pilif »

Hi there,

is there a way to make s9y hightlight comments made by the original entries author? Or at least hightlight the comments made by a registered blog author?

This has two reasons:

1) As s9y knows that I'm logged in, I see no point in even displaying the name/email-fields of the comment form. Why should I post as not-me? And if I would want to, I could just log out.

2) I think it's important for readers to see which responses are made by the original author. I doubt everyone is constantly comparing the names of the posters with the blog posting (I know. I don't compare either on blogs I read) and I think it's a valuable piece of information which comments come from the original author.

So, can this be switched on somewhere? Or does a plugin exist? Or am I on my own to write a plugin (is this even possible? Or is it an extension to the core?)?

Is there interest for such a feature? If yes, I would make the patches/plugin public of course.

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

Re: Highlighting Authors comments

Post by garvinhicking »

Hi!

Yes, you can highlight your own comments by using CSS. Since comments made by you have the CSS class "serendipity_comment_author_self":

Code: Select all

.serendipity_comment_author_self {
  border: 10px solid red;
}
Plus, a class serendipity_comment_author_XXX is emitted for each author name, so that you can specifically highlight certain authors.
1) As s9y knows that I'm logged in, I see no point in even displaying the name/email-fields of the comment form. Why should I post as not-me? And if I would want to, I could just log out.
You can use the "User Self-Registration" Plugin to force your username and pre-fill the data in such cases.

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