What's new? | Help | Directory | Sign in
Google
comment-highlighter
Wordpress Plugin: Comment Highlighter
  
  
  
  
    
Search
for
Updated Oct 05, 2007 by janpolsen
Labels: Phase-Implementation
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

  1. Go to Admin -> Options -> Comment Highlighter
  2. Click the button
    Add a new comment highlight
  3. 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
  4. Check the checkbox at "Email" and write the email address in the text field - i.e. vip@example.org
  5. Make sure the "Global" checkbox is NOT checked
  6. Make sure to write a class name at the "Class(es)" text field - i.e. "vipcomment"
  7. Click the button
    Add this comment highlight

Changes to the style sheet

  1. Now go to Admin -> Presentation -> Theme Editor and choose Stylesheet in the right menu
  2. Add the following (or the style of your choice) to the style sheet:
  3. .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.


Comment by zmanalpha, Nov 08, 2007

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.

Comment by janpolsen, Nov 09, 2007

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.

Comment by zmanalpha, Nov 12, 2007

Thanks...I did add the PHP. My site is.

www.zmansenergybrain.com.

Comment by zmanalpha, Nov 12, 2007

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

Comment by janpolsen, Nov 13, 2007

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.


Sign in to add a comment