|
|
Example2
Highlight comments made with a specific email address on a specific post
Highlight all comments based on the email on a specific post
Changes to the Comment Highlighter plugin
- Go to Admin -> Options -> Comment Highlighter
- Click the button
Add a new comment highlight - Check the checkbox at "Post ID" and write the post ID (can be found on Admin -> Manage -> Posts in the left column) - i.e. 42
- Check the checkbox at "Email" and write the email address in the text field - i.e. vip@example.org
- Make sure the "Global" checkbox is NOT checked
- Make sure to write a class name at the "Class(es)" text field - i.e. "vipcomment"
- Click the button
Add this comment highlight
Changes to the style sheet
- Now go to Admin -> Presentation -> Theme Editor and choose Stylesheet in the right menu
- Add the following (or the style of your choice) to the style sheet:
.commentlist .vipcomment {
background-color: #ffeeee;
border: #eedddd 2px dashed;
}Result
All comments on post ID 42, made by any person who has written vip@example.org as their email address will now be "highlighted" according to the style above.
Sign in to add a comment

Nice plug in. Couple of ?s
Does it matter in style where the style above is added? I put it in the comment section of the style sheet.
I'm the admin of my blog and want to use my screen name as the trigger for the comment style highlight. I added my screen name in the name box and tried it with and without global clicked. Then selected class as admincomment. Still can't get it to highlight my comments. Looks like a great plugin...just doing something wrong.
It doesn't matter where the style is added, so that shouldn't be the problem.
You have remembered to add the PHP code to the comments file, right?
If you give me an URL, then I might be able to see what the problem is.
Thanks...I did add the PHP. My site is.
www.zmansenergybrain.com.
I get this message if I click on the (comment highlight) link just above the comment section:
Cannot load comment_highlighter.php.
thanks for any help you can provide. Z
I tried to look at http://zmansenergybrain.com/?p=1120#comments and I can't see any indication of any comment highlights. The only class that is added to <li>-tags is the build in alt, which is assigned to every other comment.
Can you give me a direct URL to where there should be a comment which should have another class? If possible then a screenshot of the Comment Highlight settings would also be nice.
I haven't heard about the other problem with the broken link, but I will look into that as well.