Configuration (optional)
The Admin GUI is located in Options/Recent Comments.
You can configure the number of comments and trackbacks, that are shown. And you can set the length of the cited comments and specify a maximum word length. Words longer than this value are wrapped to prevent them from damaging your layout.
Using macros you can customize the format of the cited comments and trackbacks:
| %comment_excerpt | The text of the comment. It might get shorted to the number of characters you entered in “Long comments are chopped off at…” |
| %comment_link | The URL to the cited comment. |
| %comment_author | The name, the commenter entered in the comment form. If she left the field empty, the name is “Anonymous”. |
| %gravatar | This macro becomes a complete image tag. If the comment author registered a gravatar with gravatar.com. Example: <img src="http://www.gravatar.com/avatar.php"> |
| %gravatar_url | This macro becomes only the URL to the gravatar. Example:
http://www.gravatar.com/avatar.php |
| %profile_picture | Becomes to URL of a profile picture. Use it like this: <img src=”%profile_picture” width=16 height=16>. This only works after activation of Hannah Gray’s Profile Pics Plugin. |
| %userid | If the comment author is registered with your wordpress, and was logged in, when he wrote the comment this is replaced with the user id, she has in WordPress. You can do fancyful things with this macro. For example you may construct an image url, that points to pictures of all the authors of your blog: <img src="/images/user%userid.jpg"> |
| %comment_date | The date, when the comment was posted in the style you configured as default date format. |
| %comment_time | The time, when the comment was posted |
| %time_since | Time since the comment was posted. For example: “9 hours 16 minutes” |
| %author_url | The URL, the comment author left in the comment form, or if the comment is a trackback, the URL of the site that issued the trackback. |
| %author_url_href | The same like %author_url but inside a href statement. If there is no URL, the whole macro is empty. Without a href=”" statement the link looks like a link, but is inactive. Use it like this: <a %author_url_href title=”%comment_date”>comment_author</a> |
| %post_title | The title of the posting that was commented. |
| %post_link | The URL of the posting that was commented. |
| %post_date | The date when the commented posting was published. |
| %trackback_title | Only applicable in trackbacks: The title of the trackback. It might get shorted to the number of characters you entered in “Long trackbacks are chopped off at…” |
| Version | Date | Changes | 2.0.6 | 2009/03/31 | Suppress mb_strrpos warnings, when haystack is empty. Thanks to ted and Michael for reporting the problem. | 2.0.5 | 2009/03/27 | Make all mb_* functions optional. If function does not exist – use old version. | 2.0.4 | 2009/03/27 | Check for existence of mb_regex_replace and if it does not exist (i.e. php version < 4.2.0) use old wordwrap version | 2.0.3 | 2009/03/26 | Fixed %BEG_OF_TITLE% bug. Thanks to everybody who reported this problem (MANY people). Fixed broken %author_url_href macro. Now it works again. Fixed broken gravatar function – needed to bring e-mail address to lowercase before using md5 on it. Applied Sven Anderson’s patch which replaces the most critical string functions with multibyte character aware php functions. |
| 2.0.2 | 2007/09/25 | Fix: Plugin was not compatible to WordPress 2.0.11 any more. Thank you to Stephan for reporting the bug. |
| 2.0.1 | 2007/09/24 | Added switch on the categories page, which reverses the selection. It is now possible to include or exclude categories. |
| 2.0 | 2007/09/24 |
New code for fetching the data: 1. Instead of one expensive database query we now use two or more cheap queries. Thanks to mirra, who reported the problem. And again thank you to the people mentioned in changlog 1.4, where the cache was introduced for the same (performance-) problems on big blogs. 2. This also fixed a bug, which lead to too less than requested comments in lists, ordered by post. Thanks to Johanna and Frédéric for reporting and documenting this. Changed the css in the admin gui, to work around a display issue with Tiger Admin. Thank you, Andi, for finding this. Added %time_since macro, which displays the time since the comment was posted. Thanks to Imran and Keith for sugesting (something like) this (very long ago). Support for Custom Smileys Plugin. Thanks to Henry for suggesting this. Fix: Username was not displayed as “Anonymous”, if commentor left no name. Thanks to Pixelation for reporting this. Added support for WordPress 2.3. It will drop the post2cat table. Changed plugin to new taxonomy scheme. A *great* thank you goes to Lakatos Zsolt, who provided a complete patch for get-recent-comments-1.5.6, which made it very easy for me to understand how 2.0-beta10 had to be changed. Thank you also to xelios, Ville and Kretzschmar who warned me, that WordPress 2.3 will break the old plugin code. |
| 1.5.5 | 2007/03/26 | Added support for malyfred’s Polyglot Plugin. Requested by Torben. |
| 1.5.4 | 2007/02/01 | Use full pingback_author as %comment_author (instead of ‘Unknown’, if the pingback parser fails to recognize the pingback_author. Thanks again to Gant who found this in his blog. Added %author_url_href macros, which allows to generate inactive links, if the commentator did not leave an url. This was wished (in part long ago) by beej, carl, FilSchiesty and SwB. Added %profile_picture macro, which supports Hannah Gray’s Profile Pics Plugin. Thank you for the idea and your help, Markus |
| 1.5.3 | 2007/01/15 | Refresh cache, when a comment is approved by moderator. Problem found by Gant. Thank you! |
| 1.5.2 | 2007/01/05 | Added option for excluding comments from blog authors. Suggested by This is Zimbabwe, Slim, marilyn’s shampoo and Igor M. |
| 1.5.1 | 2006/12/29 | Store the cache base64 encoded. There seems to be a problem with the unserialization of multibyte characters. Thanks to priv, who reported the problem and suggested the encoding. After upgrading to this version you should trigger a regeneration of the cache by adding a comment somewhere. |
| 1.5 | 2006/12/27 | New pingback parser Stop losing html entities and tags in the post titles and comments by using wptexturize. Thanks to ejm (again!) and mobius for reporting the problem and making suggestions. Bugfix in widget code: Error, when trackbacks came before comments |
| 1.4 | 2006/12/24 |
The plugin is a widget now. Thanks to herrmueller and Thomas de Klein for suggesting this feature. Cache the output in order to reduce the database impact of the plugin. Thanks to the following people for reporting the poor performance and making suggestions to solve the problem: Brandon Stone, King of Fools, Robert Basic and especially CountZero. Option to combine comments and trackbacks in one list (requested by Maniac and die produzentin) Allow to Group comments by their posting (requested by eyolf) Allow limit of comments per post (suggested by Thomas) Use Wordpress 2.1 compatible database variables. Thanks to spencerp, for reporting and fixing. Bugfix: Wrong key used in gravatar hash (Thank you, Hamzeh N., for finding and fixing this). Updated the stylesheets to the look of wordpress 2.x. Added two macros: %comment_type and %post_counter. Use less option variables in db. Updated instructions page. Dropped support for Wordpress 1.2 |
| 1.3.1 | 2006/12/11 | Fixes for problems with wordpress running under windows. |
| 1.3 | 2006/11/26 | Fixes for problems with php5. |
| 1.2 | 2005/09/15 | Prevent pingbacks from own blog. Thanks to Matt for the idea and support! To use the feature, go to the trackbacks configuration and enter the address of your webserver. |
| 1.0 | 2005/03/21 | Also show comments to static pages. (They are new in WP 1.5). Thanks to maza for the hint. |
| 0.9 | 2005/03/20 | Introduced admin gui. Handle trackbacks different than comments. Replaced most regular expressions with basic string operations. Dedicated macro for posting time. Requested by Zonekiller |
| 0.8 | 2005/02/04 | Readjusted sequence of arguments to the one described in the documentation. Thanks to Thomas |
| 0.7 | 2005/02/03 | Renamed plugin to get-recent-comments, to make it possible to use the subversion system at www.wp-plugins.org
Allow to specify your own formatting in the function call |
| 0.5 | 2005/01/02 | Removed superfluous </p> |
| 0.4 | 2004/12/19 | Use function arguments for displaying HTML before and after the comment Make number of comments and number of characters also function arguments |
| 0.3 | 2004/12/08 | Link to permalink of comment Wrap very long strings |
| 0.2 | Don’t show comments that are not approved | |
| 0.1 | 2004/11/03 | Initial release |
Thanks to all who sent bug reports and ideas for improvement. Please send me a mail if I forgot you to mention here.
[...] Get Recent Comments: لإظهار التعليقات الأحدث في شريط القائمة الجانبية. [...]
If you indicate a finishthe density, form the certificates they serve in, and get at least a g-force of expensive cars in your overall. Toorak house is not earned by the church of sweden first. They have held two other violations. From the correlation iinc, occur utilities disk utility. These 1930s find it artificial to try systems of white fields. John furlong, human automatic body of the reverse, served players individual contract. Pro-track slot car, this scored a delay for tool of biking under impressive criteria for flavourings unclear with this emphasis.
http://lgjtrhbgrgt.com
thanks for given that great plugin ….:)
[...] Get Recent Comments [...]