Linux 软件免费装

Plugin Name

开发者 BinaryMoon
更新时间 2008年5月22日 15:07
PHP版本: 2.0.2 及以上
WordPress版本: 2.5.1

标签

css comments design highlight customisation

下载

详情介绍:

I've spent a lot of time searching for a decent comment highlighting plugin but have fond none. Most work fine for a single user but use on a multi author blog and things start to go wrong - so I decided to bite the bullet and develop my own system. Comment highlight generates css classes that you can add to your comments. These classes will tell you...
  1. If the commenter is a registered user or a reader/ commenter
  2. If the commenter is the post author
  3. The commenters user id (assuming they are a registered member)
  4. If the comment is a pingback or trackback

安装:

Upload and activate the plugin as normal. To use you will need a smattering of html/ php knowledge and some kick ass css-fu. I did consider trying to automate the html side of things but decided that since people format comments differently it would be worth giving everyone the choice to work the way they want too. Basically all you need to do is use the php command "bm_commentHighlight()" to get the class for the current comment (within the comment loop). You can then print/ echo these in any way you want. Example <?php foreach ( $bm_comments as $comment ) { $commentClass = bm_commentHighlight(); ?> <li class="<?php echo $commentClass; ?>"> <?php comment_text(); ?> </li> <?php } ?> Classes When you call the function you will be returned a string containing a series of classes you can use to style your comments. The classes are as follows...