Page 1 of 1

Highlighting Authors comments

Posted: Wed Jul 26, 2006 1:55 pm
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

Re: Highlighting Authors comments

Posted: Wed Jul 26, 2006 2:16 pm
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