WP Plugin: Official Comments

I just whipped up a quick WordPress 1.2/1.5/2.0 plugin that allows you to distinguish comments made by WordPress users. It also will automatically approve comments made by WP users.

Current Version: 1.1

How It Works:
If you are logged into your WordPress admin panel, and you make a comment, the plugin will see that you are an official WP user of your blog and mark the comment with your WP User ID.
When the page is rendered, that User ID is called up by the plugin functions, which you can use to change text, change CSS class, add images, whatever your imagination desires.

Installation
Either:

How to implement:
Simply add this somewhere within the Comments loop in wp-comments.php and/or wp-comments-popup.php:

<?php if(is_wpuser_comment() != 0) {echo "Official ";} ?>

Or get tricky and add a CSS Class to the LI:

<li class="comment <?php echo (is_wpuser_comment() ? ' commentOfficialUser' : ''); ?>" id="comment-&lt?php comment_ID() ?>">

and this very basic css example:

.commentOfficialUser { border: 1px solid black; background-color: #999999 }

Documentation
View Official Comments Readme.txt

Examples
There is a very basic example on this post, but more exciting examples available at Webfroot.

Known Issues
It only works with official comments made after the point of installation, as WordPress doesn’t automatically add the WP user ids to the comments field it already has.

Bugs and Suggestions
Any bugs or suggestions, please email me — email link in the sidebar (RSS readers: drop by the site ;) ).

Comments

  1. [...] Blogs Hacking   I just whipped up my first public WordPress plugin, called Official Comments. It helps you display comments made by logged-in WordPre [...]

  2. [...] h all of the cool plugins people make for them. I was reading on inner.geek.nz about a new wordpress comments plugin that Glutnix (aka Brett Taylor) has made. As qui [...]

  3. [...] riting the original functionality – he deserves full credit! Oh and by the way, our Official Comments plugin is also now one-click install compatible! [...]

  4. This is a Non-Official Comment


    Glutnix
    January 12th, 2005
  5. This is an Official Comment!


    Glutnix
    January 12th, 2005
  6. Hey looks great :) , i have to try it. Sorry for my english, i’m spanish ;)


    superporcel
    January 13th, 2005
  7. Official Comments
    Official Comments es un plugin para Wordpress, creado por Brett Taylor, que distingue los comentarios hechos por personas registradas en nuestro blog, dandole un aspecto diferente a ese comentario.

    La verdad no sirve de mucho si no permitimos que la…


    superporcel
    January 13th, 2005
  8. Gotta love the plugins
    One of the best things about having a wordpress blog is getting to play with all of the cool plugins people make for them. I was reading on inner.geek.nz about a new wordpress comments plugin that Glutnix (aka Brett Taylor) has made. As quite rightly …


    Geekpulp
    January 14th, 2005
  9. hiya. was wondering if this works with the Spam Karma plugin (or any other anti-spam plugins) since i saw this line in your code:

    $approved = 1; // change to 0 to put WP user’s comments in the comment moderation queue.


    tec
    January 28th, 2005
  10. Tec, Sorry I don’t know, because I’ve never used the Spam Karma plugin. Best to try it and tell the world if it doesn’t…


    Glutnix
    January 28th, 2005
  11. Yup, it works with Spam Karma too :)


    Brett
    February 16th, 2005
  12. [...] , and it’s totally free. I’ve already added several plugins: Spell Checking Official Comments Plugin Manager and I turned Markdown on The next tasks [...]

  13. [...]

    WP Plugin: Official Comments
    I’m thinking of adding this plugin (WP Plugin: Official Comments, by Brentt Taylor) to my site. I’m also [...]

  14. I always have terrible trouble with comment-related plugins that require me to put some line in the comment loop; I can never seem to find the right spot. Can anyone tell me where I should put the php line in my comments loop? I haven’t modified anything much, and I’d be very grateful. Thanks!


    Willful Exposé
    February 22nd, 2005
  15. If you’re changing the class, you put the php code inside the class attribute of the li tag
    eg in bold: <li class="<?php echo $oddcomment; ?><?php echo (is_wpuser_comment() ? ' commentOfficialUser' : ''); ?>" id="comment-<?php comment_ID() ?>">
    Of course, my blogware is applying true quotes to stuff inside <code>, so make sure you don’t just copy/paste from here.


    Brett
    February 22nd, 2005
  16. let me be ur valentine


    Glutnix
    February 28th, 2005
  17. You see, my plugin prevents that kind of attempt :)


    Brett
    February 28th, 2005
  18. I love the way it works, but actions speak louder than words: It’s installed in my favorite skins.


    Willful Expose'
    March 8th, 2005
  19. Wordpress Plugins

    I’ve finally got around to doing a list of the plugins I’ve installed for Wordpress.

    The Wordpress Plugin Database, with a full list of Wordpress Plugins can be found here.

    I personally had no problem installing any of them, so if you have had …


    Philosophy Of
    March 10th, 2005
  20. [...] ができる。昇格したコメントは昇格した時間順にリストされる。 Official Comments – オフィシャルコメント (ダウロード)( [...]

  21. wheres the alignment for the image in your official comments??


    Ennis
    April 7th, 2005
  22. I have used your plugin, thanks its great.
    One small question. how would i code in the css to have the word “Says” in white when and only when i the administrator makes a comment.
    Its in this line of the comments.php
    [code]" id="comment-&lt?php comment_ID() ?>">
    "> Says: [/code]


    Ennis
    April 7th, 2005
  23. I can’t seem to get this plug-in working. I’ve done the one-click install and am trying to find exactly where to put the code in to make this work. I’m assuming this is the code to be using:

    I’m using the WP 1.5 “default” theme and I’m assuming that in the admin panel, going into “Presentation > Theme Editor > Comments Template (or Pop-Up Comments Template)” is where I’m supposed to be. I can’t seem to find where to stick the code. Admittedly, I’m new to WordPress and am not sure where to stick this code.

    Could somebody let me know if I’m looking in the right files, and if so, help me find the right place to stick this in.


    Mark
    April 11th, 2005
  24. You could add the user’s name to the name of the class, eg .OfficialCommentAdmin { } which would look more like this:


    <li class="<?php echo (is_wpuser_comment() ? ' CommentOfficial'.comment_wpusername() : ''); ?>" id=”comment-">

    This would work with anyone’s username, and you could set up a different class for each user. Of course, this is assuming there are no spaces in any of your usernames.


    Brett
    May 3rd, 2005
  25. First, put a space between alt and admin-comments, and both .alt and .admin-comments will be applied.

    If still .admin-comments is being overridden by .alt, then you’ll want to make .admin-comments more specific. A quick fire way to do this is

    html .admin-comments { ... }

    But you could just try specifying a tag somewhere between html and the li, and it might achieve the same thing.


    Brett
    May 4th, 2005
  26. completley unrelated, I apologize.
    I’m trying to figure out how to get comments allways shown as they are here on this page… and unlike this page for example: http://binarybonsai.com/playground/
    where you see none of the comments.
    thanks so much
    joshua


    swim
    May 5th, 2005
  27. swim: If you note that the comments page for that post is: http://binarybonsai.com/playground/index.php?p=1#comments

    And note how index.php suddenly comes into view. That means that http://binarybonsai.com/playground/ is a the root page of the blog.

    If you want your WP blog’s root page to show comments for that post, that’s a very good question… I dunno how I’d do that… Maybe you’d need some kind of plugin that would redirect to the latest post’s permalink?


    Brett
    May 5th, 2005
  28. Trying to impliment this into my friend’s blog site I put up for her, but it’s not working. Maybe I’m not putting it in the right section. I wanna impliment the CSS version you have. Any tips on where I should input it into this bit of code:

    to “”

    " title="Visit ">
    comment_author_email); ?>" alt="Get your own gravatar at gravatar.com" class="gravatar" />

    "> " title="Visit ">

    " title=""># ,


    BeerLuver
    May 9th, 2005
  29. Crap that didn’t work heh…. here’s the code saved in a txt file:

    http://www.mindwiped.com/temp69/code.txt

    Could ya take a look at that and fill me in on where you think I should put the code for this to work? Thanks in advance if you can ;)


    BeerLuver
    May 9th, 2005
  30. BeerLuver: I took a look at your comments code, and it doesn’t look like you’re putting your comments in s… You need to make sure you’re generating valid XHTML, which it doesn’t look like you are..
    Here’s what I’m doing here on inner.geek: http://inner.geek.nz/images/comments.phps

    KarlBedingfield: I’ll assume that those three things you have there are the usernames of the users on your blog. I’ll also assume each comment in it’s own <li></li>. Here’s what you want:

    <li class="<?php echo $oddcomment; ?> <?php if(is_wpuser_comment() != 0) { echo " officialUserComment OfficialUser_".comment_wpusername(); } ?>" id="comment-<?php comment_ID() ?>">

    So, that will generate something like this:

    <li class="alt officialUserComment officialUser_kb" id="comment-1234">

    All three classes will get applied to the li. So to style them, you can create classes like this:

    .officialUserComment {...}
    li.officialUser_kb {...}
    li.officialUser_jg {...}
    li.officialUser_cc {...}

    .officialUserComment would probably have everything that would be the same across the official user classes, and then you might just change the background color for each user.

    Hope that helps!


    Brett
    May 10th, 2005
  31. Don’t know, can’t read your code; it got munged when you submitted it… — you’ll need to either properly turn all < into &lt; and the same with > and &gt;… OR post a link a text file containing your source hosted somewhere…

    a .phps (php source) file is good if your server supports PHP — mmm formatted text… for example: http://inner.geek.nz/images/comments.phps


    Brett
    May 10th, 2005
  32. OR I could just scroll up, look at my code and see that there’s an extra if( in it… i’ve updated my comment, use the code from there… o_O;


    Brett
    May 10th, 2005
  33. Great plugin! Just wondering if there was a way to specify a generic image for non-registered users/commenters?


    beej
    May 15th, 2005
  34. Beej, write css for normal comments that displays an image, and then write css for the official comment that overrides the normal comment.


    Brett
    May 16th, 2005
  35. [...] ecimales y ASCII. Útil para evitar bots en busca de direcciones de correo que spamear. [...]

  36. Nice plugin, thanks. May i offer 3 improvement suggestions? First, instead of pre-aproving all users’ comments, you could make it aprove comments by users with a level greater than X and/or with id numbers Y and Z (and make that configurable in an option in the admin area). Second, there could be a way to have a separate class for each user based on his id and/or level number on the blog, that would make the comments appearence even more cofigurable. Third, isn’t there a way to mark old comments too?
    Weel, i’m full of ideas but i know zero PHP, so i’m left with suggesting…


    eduardo
    May 18th, 2005
  37. Hi there,

    I am back again.

    I just noticed that all my non-admin comment posts are showing up as ‘alt’

    Is there anything wrong in the code you very kindly supplied me?

    Here is is: http://phpfi.com/62371

    Thanks
    Karl


    Karl Bedingfield
    May 19th, 2005
  38. Unrelated to my code, but it’ seems to be this code:
    <?php /* Changes every other comment to a different class */
    if ('alt' == $oddcomment) $oddcomment = '';
    else $oddcomment = 'alt ';
    ?>

    if ('alt' == needs to be if 'alt ' ==, it needs that space.


    Brett
    May 19th, 2005
  39. OOPs sorry to trouble you and thanks for the heads up :)


    Karl Bedingfield
    May 19th, 2005
  40. [...] al. Paged Comment Editing – Makes reading all the comments in the admin area a bit easier. Official Comments – It turns out that a lot of people are called ‘Jam [...]

  41. Hi! I loved this plugin and really would like to use it, but I’m having a bit of trouble. My default comments already have a specific css, so when the author comment css is added it doesn’t show.

    Is there any way to set the code so when it’s a comment of mine it shows, for example, a blue background (like class=autorcomment), and someone else’s comment (class=visitorcomment) a green background?
    Thanks!


    Marya
    May 30th, 2005
  42. Marya, what I would do is make your .authorcomment more specific, by tacking html in front of it:

    html .authorcomment {...}

    That way, it will override the .visitorcomment


    Brett
    May 30th, 2005
  43. Thanks for your help Brett! I managed to have the author highlight colors to show up, but still they mix with the default colours of the comment, since the html for the official comment is like this:

    Comment


    Is there any way to show only

    Comment


    when it’s an official comment, and only

    Comment


    when it’s a visitor comment? I believe I’ve seen a coding like this before, but still haven’t found out a way to “separate” both css…
    Thanks again!


    Marya
    May 31st, 2005
  44. I’m sorry, the coding didn’t show up… They were supposed to look like this:

    Comment

    Comment

    Comment


    Marya
    May 31st, 2005
  45. Yeah, HTML is stripped unless it’s a safe tag as mentioned above the comment box. Convert your angle brackets to < and >, and put it all in a <code></code> tag and then submit it as a comment, then we can communicate.

    Alternatively, feel free to contact me via email or an instant messaging system — details on the Contact Me page.


    Brett
    May 31st, 2005
  46. Brett, I don’t know about anyone else but your ‘known issue’ (the plugin only working on posts after it’s installed) hasn’t affected me- I just installed it and its working for all my previous posts.


    David Russell
    June 6th, 2005
  47. [...]

    It’s just a try. How do you like this one? I also added a few plugins: Official Comments PhotoPress plugin Theme Switcher WP ShortStat Man, [...]

  48. I have used your plugin, thanks its great.
    Greetings form Koszalin in Poland :)


    Peter / savek
    June 13th, 2005
  49. Nice work. Please keep them coming.


    Koen
    June 29th, 2005
  50. [...] r. – IP til land – greit å kunne bruke til å vise flagg fra hvor leseren befinner seg. – Offisiell kommentering – Noe sånt kunne vært brukt for kommentarer av fra [...]

  51. I like the easy-to-use interface a lot. I wished that was standard in modern-day software.


    Carmiggelt
    July 15th, 2005
  52. Great plugin, thanks.

    Anyone got any ideas on how you might change a previous comment to an ‘official comment’ without deleting it and posting it again (needs to stay in sequence).


    John Pope
    July 15th, 2005
  53. I’m having a little trouble getting this installed…I don’t seem to have wp-comments.php or wp-comments-popup.php. I have wp-comments-post.php though. Is that where the code is supposed to go? If it is, where exactly do I put the code? It’s quite confusing for me, I don’t know php and all and I’d hate to go in blind and screw something up. I’m using 1.5.1.3. Thanks.


    Steph
    July 18th, 2005
  54. You will have those files, but they are not in your Wordpress directory. They are stored in your theme directory (e.g. if you are using the default Kubrick theme, /wp_content/themes/default/), and you can get in to edit them via Presentation–> Theme Editor (or you could download the files via FTP, and make the changes with a text editor, which is often easier due to search + replace etc. which the Theme Editor doesn’t have)


    David Russell
    July 18th, 2005
  55. Well I added it right under the in the comments.php file for my theme and added the class to the css…still isn’t working for me. :\ Am I supposed to put it somewhere else or is there something else I need to do? I know it’s activated.


    Steph
    July 19th, 2005
  56. [...] he left). Removed several plugins that no longer used and install some new ones, like: Official Comments – give different style to admin’s comment (me) Pag [...]

  57. [...] . Paged Comment Editing – Makes reading all the comments in the admin area a bit easier. Official Comments – It turns out that a lot of people are called ‘Jam [...]

  58. [...] d be useful for people who are using the Footnotes Plugin. I also installed a fourth, the Official Comments plugin. It isn’t doing much yet, but it will. All of thes [...]

  59. Hi Brett

    I just tried to doownload your plugin, but it wouldn’t work: it seems that your .zip file is in fact a GIF image, or something? I’d be really grateful if you could check that out since this plugin looks like something I need!

    Richard


    Richard Flynn
    August 26th, 2005
  60. sorry to pop in just to leave a thanks but man do I feel dirty as the time passes and I don’t.

    >THANKS


    Jason
    September 15th, 2005
  61. [...] ay Attention to Directories

    I was having problems formatting the Official Comments code and asked The P [...]

  62. [...] e people knew kinda who I was! So when I get home and discover that Molly and Tantek have left such generous comments that I have a grin from ear-to-ear, how am I su [...]

  63. [...] ilies 8. Smiley Javascript Buttons 9. Dunstan’s Time Since 10. WP Admin Bar 2 11. Offical Comments   Leave a R [...]

  64. [...] ilies 8. Smiley Javascript Buttons 9. Dunstan’s Time Since 10. WP Admin Bar 2 11. Offical Comments   Leave a R [...]

  65. [...] sie überladen wird. Hat zwar auch einige Nachteile, aber damit kann man klarkommen. offical comment: Mit diesem Plugin wird der Besitzer des Blogs besonders he [...]

  66. [...] #8217;t browsable except through category archives. Also, I installed a new plugin today: Official Comments. A very simple plugin adding a couple of f [...]

  67. Nice plugin, but doesn’t validate XHTML :(


    Oscar
    October 20th, 2005
  68. Great little plugin, exactly what I was looking for!


    dave
    October 25th, 2005
  69. [...] by Chris at 10:52 pm on Monday, November 7, 2005

    I installed Brett Taylor’s Official Comments plugin today: two thumbs up. This ve [...]

  70. [...] by Chris at 10:52 pm on Monday, November 7, 2005

    I installed Brett Taylor’s Official Comments plugin today: two thumbs up. This ve [...]

  71. [...] mit Hilfe des Kommentarplugins zB eine andere Hintergrundfarbe verwendet werden. Plugin: Official Comments von inner.geek Verwendung: In das Kommentartemplate an d [...]

  72. [...] n nutzt, beschreibe dem User das Vorgehen etwas genauer als ich es bisher getan habe. 12. Official Comments: Markiert einen Kommentar mit einer alternativen Farbe, w [...]

  73. [...] Chris at 9:38 pm on Thursday, November 17, 2005

    I installed Brett Taylor’s Official Comments plugin today: two thumbs up. This ve [...]

  74. [...] layed tracks from last.fm Google sitemaps — Generate XML files for google sitemaps Official comments — Lets you do stuff if a comment has been posted by [...]

  75. Hello,

    you really have to help me. I get an error if someone write a comment ony my entries. I post the PHP thing in wp-comments-post.php because I haven’t a wp-comments.php or wp-comments-popup.php. Please help me! Where I have to put the code now? I don’t get that :/

    Best Regards,
    Leichenschrei


    Leichenschrei
    December 17th, 2005
  76. [...] io para enviar un enlace de un post especfico mediante correo electrnico a un conocido. Official Comments – Permite destacar los comentarios que re [...]

  77. [...] Trackbacks appear not to work too well, and I’ve found an awesome plug which is supposed to make registered users’ comments show up in special ways. Official comments. Well it mostly works but for some people the blue backgrounds aren’t showing up, tt’s driving me a little insane trying to sort it all out. Ah well life goes on. Should be good once it’s working properly. And another thing, why does this page look so different when you load it in Internet Explorer rather than Firefox? I never will understand why they show different pages differently. I’m doing my best to make this site compatible with eeverything, but .. gah. I really should be writing that english essay… [...]

  78. [...] Official Comments [...]

  79. Hi! Does this plugin works in Wordpress 2.0?


    Tecfolio
    January 14th, 2006
  80. i like this site and author! respect!


    Fakyr
    January 15th, 2006
  81. How would i Display on image (avatar) for Offical comment, and Another for UnofficialComments.

    I dont think im inserting the code correctly due to my Offical comments are not Appearing any different than those of unoffical ones


    Marshall
    January 23rd, 2006
  82. [...] Highlight your comments – so they stand out from all other commentors’ comments. We use this on IdolBlog, which was built using Drupal. It helps when you’re clarifying issues, responding to questions, or stepping in to calm down a discussion. It helps others to scan through the pile of comments too. Here’s a Wordpress plugin which will do this for you. [...]

  83. [...] Um nun noch die Autorenkommentare hervorzuheben bedarf es erstmal der Installation des Plugins: Official Comments von Brett Taylor. Wir modifizieren nun unseren eben geschriebenen Code in der comments.php: [...]

  84. Just installed with WP 2.0 and all seems well. The docs, however, only mention WP 1.5. Has anyone else tested this? Thanks.


    Bill Berry
    February 12th, 2006
  85. Hmm could anyone provide a quick guide on how to do it in WP2.0?
    Looks like a great plugin!


    TJ
    February 14th, 2006
  86. [...] Official Comments ar trebui să eticheteze cumva comentariile pe care le fac eu. Cred că de acum încolo, pentru că eu nu am observat încă nimic. [...]

  87. Your plugin is very good and i downloaded and install it, but i´m having some problems with the “alt” in comments, they are strange, a
    i dont know, but i think i put the code in the wrong place.
    can you help me?


    Roberlan
    March 25th, 2006
  88. It only works with official comments made after the point of installation, as WordPress doesn’t automatically add the WP user ids to the comments field it already has.

    what does this really mean?

    im a bit confused. yay!


    Laarni
    March 27th, 2006
  89. Really good plugin!


    Furius Angel
    April 8th, 2006
  90. Gravatar / Official Comments Hack

    Ich hab diverse Stunden damit verbracht eine Lösung zu finden, wie man die beiden Kommentar-Plugins Gravatars und Official Comments korrekt in der comments.php ausgeben kann, bis ich dann mit mal minimalen PHP-Kenntnisse spielen lassen habe.

    Standa…


    Gizcore Laboratories
    April 30th, 2006
  91. Hey it looks like a really good plugin, but sorry the download link is broken. :S Just so you know.


    Ellie
    June 13th, 2006
  92. Can’t download this plugin.
    Firefox can't find the server at downloads.webfroot.co.nz.
    any mirror ?
    where I can found this plugin ?


    Gold_Hunter
    June 14th, 2006
  93. Hi

    The plugin sounds good but the download link is broken. Is there any chance you can take a look so I can try the plugin out

    Thanks in advance


    ben
    June 15th, 2006
  94. Wanted to download the plugin, but it can’t be found. Just thought you should know the link is bad.


    Mike
    June 20th, 2006
  95. I couldn’t download the plugin too. All mirror download to it are also down :(


    Adam Betts
    June 21st, 2006
  96. [...] Jeszcze tylko kilka szybkich newsów bez składu i ładu: Wtyczka Official Comments zainstalowana w moim WordPress. Wpadło kilka nowych płyt i jeszcze więcej poleciało na allegro, ale już pomału docieram się ze stylem uk/us garage, disko/funky house, tak chyba można by to określić. O czym ja tu jeszcze miałem… a tak! w tygodniu możliwe, że zaczyna nową pracę… I smutny news na koniec, toto cafe jest likwidowana – choć to już nie ten klimat co kiedyś, tylko mała cześć osób ze straej ekipy się ostała… to jednak szkoda, no coż nic nigdy nie trwa wiecznie… [...]

  97. I’m unable to download Official Comments plugin as well. All mirror download to it are also down :(


    Adam Betts
    June 22nd, 2006
  98. Brickred is leading Offshore Software Development Outsourcing


    Software Outsourcing
    June 28th, 2006
  99. Crimsonlink is leading Bug Tracking Software Issue Tracking Software Defect Tracking Software


    Issue Tracking Software
    June 28th, 2006

  100. koz
    June 28th, 2006
  101. [...] Um das Wiederkennungsgefühl von Autorenkommentaren zu stärken, haben wir heute das “Official Comments” -Plugin installiert. Nach einer kleinen Anpassung der Hintergrundgrafik und einem großen Haufen Flüche (”Ich kann nun mal kein CSS”) werden Kommentare mit Hilfe eines selbsterstellten Hintergrund gesondert darstellt. Tags: Misc [...]

  102. reading now


    bssn
    July 13th, 2006
  103. [...] Official Comments [...]

  104. this is hawt. ima use it!!


    Jenny
    July 24th, 2006
  105. “>


    hm
    July 27th, 2006
  106. I just want to say thanks for this plugin, it’s working ok in my blog site, thank you man.


    angelux
    July 27th, 2006
  107. [...] Official Comments [...]

  108. [...] For those of us who remember the original comment-spoofing-identity-crisis that started the whole problem, you can thank Indi for hitting me over the head with a simple fix: the Official Comments plugin. All of you who have already registered for accounts on Moju now get a spiffy light-purple box and a notice that says “Registered Commenter” whenever you comment. Un-registered commenters using the names of registered commenters may be considered devious and possibly untrustworthy human beings, and the rest of us can ignore them, or whatever. See the comments on this post for examples of registered and non-registered comments. And of course, everyone who’s registered for commenting can also write for Moju. [...]

  109. [...] Rounded blue editon now support the Brett Taylor’s official comments plugin. From the author : “If you are logged into your WordPress admin panel, and you make a comment, the plugin will see that you are an official WP user of your blog and mark the comment with your WP User ID.” Filed under : Rounded V2 blue editionBy Ghyslain On August 15, 2006 At 9:59 pm Comments :   [...]

  110. [...] Official Comments [...]

  111. Salut


    salut
    August 24th, 2006
  112. Brett there’s a way to make apply to admin and users?

    If is admin, echo .commentAdmin
    or if is a member, echo .commentMember

    I’m not good on PHP if you could help me.. thanks alottt


    Chris Mise
    August 29th, 2006
  113. Hi Chris,

    No, not easily. It would involve another set of functions:

    If official user, then find out what their user level is.
    … If admin, echo .commentAdmin
    … else echo .commentMember
    else echo .commentAnonymous

    I could probably add this into the plugin pretty easily, really.


    Brett
    August 29th, 2006
  114. Brett

    Could you make this code, please? I would take some years to make it.
    But i will learn PHP and make a plugin nice like yours someday. ^_^

    and thanks for answering me so quickly.


    Chris Mise
    August 31st, 2006
  115. [...] After installing Official Comment to this blog, I found a way to make the Official Comment to have an alternating effect much like the default comment list. It is simple and it occur when you place the tag next to the alternating tag. For example, this is what I’m using. [...]

  116. [...] Functionally, the site runs on the open source wordpress blogging cms. In addition, I’ve also added the official comments plugin and the random quotes plugin. The wordpress implementation is fairly straightforward, two exceptions being custom page templates for each section and some header tweaking to produce the navigation visual elements. [...]

  117. Hi Brett,

    I would really like to apply the different style only for users with a level above Subscriber (the smallest possible registered user). If the user is just registered, I wouldn’t want their comments to be applied as official comments.

    Can you help me do that, please?

    Thanks a lot for the great plugin.


    Rafael Fischmann
    October 8th, 2006
  118. Hello. As you may see on my blog, I have quite well implemented your plugin except that I have that point (I don’t know the word in english : the point due to “li”) at the beginning of each comment… I trie to implement your plugin with ul or ol instead of li, but the result is not satisfying.

    Do you have any idea for me ? Or is it only a theme issue ?

    And… Thank you for your work.


    koz
    October 11th, 2006
  119. [...] If you are using the Official Comments plugin with a recent WordPress version, you might be getting Database errors when you post a comment on your own blog. To fix these, open the official-comments.php file and change: [...]

  120. Hello there!

    I was wondering how I can change this:

    Under every of my comments it says “Official!”. Can I delete this somehow?

    Thanks,
    Phillip


    Phillip
    November 7th, 2006
  121. [...] Official Comments – Hinterlegt einen Kommentar vom Blog Autor in einer anderen Farbe. [...]


  122. rtjedytk
    November 16th, 2006
  123. Does anyone know the name of the wordpress plugin that creates a list of your posts in a category instead of just displaying them one after the other? I want it so that when someone clicks on a category they just get a list of posts from that category.

    I'm sure Ive seen one…and sifting through the WP site is a nightmare


    Randy
    November 18th, 2006
  124. I have used your plugin, thanks its great Brett (:


    Roman
    November 20th, 2006
  125. nice site

    giuseppe
    http://www.securitystudio.com


    giuseppe
    November 24th, 2006
  126. carino il blog
    complimenti

    giuseppe
    http://www.securitystudio.com


    giuseppe
    November 25th, 2006
  127. yes i’m using it too great thing! thanks!


    praca
    November 27th, 2006
  128. good


    mariya
    November 27th, 2006
  129. A great plugin! I got the plugin working but it’s not displaying my edited CSS! This is what I put in my comments.php file:

    echo " ";
    }

    And this is what is in my CSS file:

    .commentOfficialUser {
    border: 1px solid black;
    background-color: #999999;
    padding-right: 3px;
    }

    Any thoughts?


    Saman Sadeghi
    November 28th, 2006
  130. That didn’t work! Here it is again:

    A great plugin! I got the plugin working but it’s not displaying my edited CSS! This is what I put in my comments.php file:


    if(is_wpuser_comment() != 0) {
    echo ” “;
    }

    And this is what is in my CSS file:

    .commentOfficialUser {
    border: 1px solid black;
    background-color: #999999;
    padding-right: 3px;
    }

    Any thoughts?


    Saman Sadeghi
    November 28th, 2006
  131. Um. 0.8 with NOTHING in front of it? No 1, no 2? Well…. head over here: http://static.wordpress.org/archive/ and download versions 1.2, 1.5, 2.0, and the current 2.0.5 – and then upgrade first to 1.2, make sure it’s working right; then to 1.5, make sure it’s working right (your template won’t – the whole setup changed at 1.5 to a themed setup, with a completely different schema – just change to the default or classic at that point); then to 2.0, then to 2.0.5.

    And good luck by Labus


    Labus
    November 30th, 2006
  132. Keep up the good work. Greetings


    Pozycjonowanie
    December 3rd, 2006
  133. Hey it looks like a really good plugin, but sorry the download link is broken. :S Just so you know.


    admin www.reality-eu.com
    December 3rd, 2006
  134. #1 Alternative to AdSenseTM!

    http://www.secundus.org/online/ppllead.html

    #1 Alternative To Affiliate Marketing!

    Add The Highest Paying Pay-Per-Lead Ads Targeting
    Your Niche To Your Website and blog… In Minutes!

    Big companies are already paying people like you large sums of CA$H for sending them visitors to get free stuff!

    Checks, Checks and More Checks Stuffed In Your Mailbox!

    Imagine yourself OPENING YOUR MAILBOX every single month and finding it stuffed with envelopes full of $500… $1000… Even $5000 Checks!

    Introducing Pay-Per-Lead Power Ads Software System™!

    Pay-Per-Lead Power Ads System™ is the Quickest and Easiest Solution for: (1) Finding the highest paying Pay-Per-Lead products, (2) Creating, (3) Managing and (4) Maximizing your revenues from Pay-Per-Lead Ads!

    Three Powerful Software Solutions In One:

    #1 Pay-Per-Lead Research Center:
    Search for and find the highest paying Pay-Per-Lead niche products and offers, quickly and easily!
    #2 Pay-Per-Lead Ad-Units Creator:
    Create Google-like Ad Units (like AdSense ads) for Pay-Per-Lead niche products and offers.
    #3 Pay-Per-Lead Keyword Ads Generator:
    Create contextually relevant keyword ads for your Pay-Per-Lead niche offers, like THIS.

    Click Here To Sign Up Now!

    http://www.secundus.org/online/ppllead.html

    No software to download, upload, install, update.

    Manage everything from an easy browser interface. Complete, 24/7 control over your own account, via an online control panel.

    Add The Highest Paying Niche Pay-Per-Lead Ads To Your Website(s) and blog(s)… In Minutes!

    Click here to get started with Pay-Per-Lead Power Ads System™ 100% Risk Free!

    This letter is going to show you how you could do that, and maximize your website’s money-making power, quickly and easily… Guaranteed!

    You’ll learn:

    1. What is Pay-Per-Lead, and why it is so profitable!
    2. In What Ways Is Pay-Per-Lead Better Than Pay Per Click & Pay Per Sale (Affiliate Sales)?
    3. AdSense Is Alive/Dead – The one thing you can learn from this raging debate.
    4. Start Generating Pay-Per-Lead Profits Today! We’ll show you how to find the highest paying Pay-Per-Lead products quickly and easily, then how to generate Pay-Per-Lead ads and add them to your website/blog in minutes.

    You could start cashing in on Pay-Per-Lead marketing and generating Pay-Per-Lead profits in the next few hours!

    http://www.secundus.org/online/ppllead.html


    fcedano
    December 3rd, 2006
  135. http://www.secundus.org/online/ppllead.html – Хрень какая-то!


    Linnik
    December 5th, 2006
  136. Someone else below asked this already.
    I am getting nailed with Spam in my website for our blog website. Is there anyway to stop this? If not, there really isn’t any point in leaving it up and active. Any help will be greatly appreciated. http://www.profesjonalna-reklama.pl

    Thanks Keep up the good work. Greetings from Poland


    Pozycjonowanie
    December 10th, 2006
  137. I always have terrible trouble with comment-related plugins that require me to put some line in the comment loop; I can never seem to find the right spot. Can anyone tell me where I should put the php line in my comments loop? I haven’t modified anything much, and I’d be very grateful. Thanks!
    http://www.server-list.info/
    http://www.shareosiol.com/


    eMule
    December 10th, 2006
  138. Just wondering if there was a way to specify a generic image for non-registered users/commenters?


    Linnik
    December 10th, 2006
  139. nice site:thank you for all


    buy phentermine online cheap
    December 12th, 2006
  140. What I want to do on my blog, is every few hours take the oldest post and move it to the
    front of the queue, all automatically. Anyone know if there is a plugin that can do this or
    a simple way to set up another plugin to do this (use my own feed perhaps)?
    Thanks.


    Chris
    December 13th, 2006
  141. yes i agree with you great site


    ogłoszenia
    December 16th, 2006
  142. Any help will be greatly appreciated.


    BUses
    December 16th, 2006
  143. I saw several people make a feature request of ensuring the user’s level is above subscriber before applying the official code to the comment. However, I don’t see those changes in the code nor do I see the proper code posted here. Did you ever get around to that, Brett?


    Cpl M
    December 17th, 2006
  144. [...] Official Comments: Permite distinguir los comentarios escritos por usuarios registrados en la bitácora. Además, los comentarios de estos usuarios serán aprovados automaticamente. [...]

  145. Personally, I think, that the presented command:”" id=”comment-&lt?php comment_ID() ?>”>” should be modified as follows: ” id=”comment-&lt?php comment_ID() ?>>>”>. I have personally tested this modification and am surprised by its stunning effectiveness.


    księgowy
    December 25th, 2006
  146. Very good plugin and very good site.


    Smieszne filmy
    December 27th, 2006
  147. [...] I decided that on my main site that I wanted the comments I made to appear different than the others (after all, why not inflate that ego?). I wrote a tutorial on integrating the Official Comments plugin with the Glued Ideas theme. [...]

  148. You have very good article, I see
    pink im not dead


    pink mp3
    December 30th, 2006
  149. This is my favourite plugin


    bf2142 demo
    December 30th, 2006
  150. Hey, this is looks great :)


    gwiazdy telewizji
    December 30th, 2006
  151. Great and excellent article t’s realy helpful. Thanks again.


    Swetlana Maßat
    January 1st, 2007
  152. ################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################

    test


    asdsad
    January 2nd, 2007
  153. Force Word Wrapping (http://www.frostjedi.com/terra/scripts/wp/wrap.zip)

    Prevents long sentancesconstructedlikethis from horizontally stretching the page.

    http://www.danosse.com :D


    asdsad
    January 2nd, 2007
  154. [...] Official Comments:   Hinterlegt die Kommentare des Autors mit einer anderen Farbe. [...]

  155. [...] Official Comments: Hinterlegt die Kommentare des Autors mit einer anderen Farbe. [...]

  156. [...] Official Comments: Hinterlegt die Kommentare des Autors mit einer anderen Farbe. [...]


    Top 10 Wordpress Plugins
    January 6th, 2007
  157. I am not a spammer just have a curious mind and like the engage others on similar topics.


    site ekle
    January 9th, 2007
  158. 我公司是一家专门提供程控电话交换机批发、零售、安装、调试、维护、维修的专业设备供应商和服务商。
    并与国内外多家知名厂商建及电信运营商立了良好的合作关系, 公司一直致力于向客户提供最经济实用的语音、数据通讯解决方案。


    程控电话交换机
    January 10th, 2007
  159. cool site


    lf2
    January 11th, 2007
RSSSubscribe to my feed now.

About Me

inner.geekAKA Glutnix. I'm a web-geek residing in Wellington, New Zealand. I'm passionate about Internet Culture, Copyright and the Creative Commons, Web Standards and Accessibility and Jesus Christ. Yeah so there.