| Huvudsidan | Blog | Kontakt | English | Wordpress widget |

Widget for Simple Recent Comments

Friday 7th April 2006 (viewed 219127 times)

Cheesus! I was up till 7 am yesterday, playing around with wordpress. It’s like a drug! I spent several hours learning how to make a widget out of the module Simple Recent Comments written by Raoul. He also kindly offered to link to my site if I put up the widget on my homepage.

So here it is! To use it, you have to install the widget-plugin from wordpress.

Requirements: WordPress 2.x

Here’s how you install it:

  1. Make sure you have the widget-plugin from wordpress installed.
  2. Download the file and unzip it.
  3. Place the widget_simple_recent_comments.php in your wp-content/plugins/widgets directory.
  4. Go to your administration panel and activate the widget.
  5. Go to the widget administration panel in Presentation and drag’n'drop the little rascal onto your sidebar. You can also change the settings for the plugin there.

Simple as that D

UPDATE 2006-05-03: Raoul made some changes to his code to allow the use of non-standard table names for wordpress. I’ve included his fix in version 0.2.1!

UPDATE 2006-05-04: I got a report that an error is returned if there are no comments. Fixed it in version 0.2.2. Thanks to anshul!

UPDATE 2006-09-06: Paul Hampson reported that if the title contained HTML-elements, the html would be displayed in the hover text of the link to the post in the comment. This is fixed in version 0.2.3. Thanks Paul!

File: Widget simple recent comments v0.2.3

Modified: Friday 3rd August 2007