All Narfed Up photography and words by Bryan Villarin

Comment Authority

I implemented Comment Authority. You can distinctly see a very tiny graphic next to my comments. This seems to be only effective for a single author. Plus, if anyone else enters “Bryan” as their name, I think that graphic will display as well. In any case, I’m sure it can be improved - I definitely don’t know how to do that.

 

5 Comments

You could always add more conditions in your if statement. For example,


((get_comment_author() == 'Your_Name') && (get_comment_author_email()=="Your_Email"))

Let me know if I can help you further!

Meng

Posted by Meng on 5 April 2005 @ 2pm

Thanks Meng! I tried that, and wasn’t sure if there’s a colon (:) after that. Also, was there a reason why there isn’t any spaces for the get_comment_author_email tag? I need to install a plugin to make pasting code easier, huh?

Posted by Bryan on 5 April 2005 @ 4pm

That colon is needed for the if syntax. Alternatively you can do this:


<?php if ((get_comment_author() == 'Meng')&&(get_comment_author_email()=="gaomeng@gmail.com")) { ?>
<div class="comment-authority"></div>
<?php } ?>

I’m quite the php n00b so I could be wrong. But at least it works =)

Posted by Meng on 5 April 2005 @ 5pm

By the way, whilespace doesn’t matter. =)

Posted by Meng on 5 April 2005 @ 5pm

That’s not working for me. Darnit.

Posted by Bryan on 5 April 2005 @ 6pm

Leave a Comment

Unrated Songs in iTunes Fast domain propagation