Guus Bosman

software engineering director


You are here

guusbosmannl

Recent Comments in Drupal, 2nd patch

Configuration option for the Recent Comments block in Drupal.While working on adding the author name to the Recent Comments block I saw a lot of feature requests on Drupal.org to make the amount of comments that is displayed in the block configurable.



Since I was working on that code anyway I created a second patch to allow the administrator to set the amount of comments shown.

Download the patch for Drupal 5.1 to make the number of comments configurable for the recent comments block.

Configuration option for the Recent Comments block in Drupal.

Installation

To install this patch download the text file and save it as 51comments2.patch on your server. This patch has been tested with Drupal 5.1.


cd /var/www/htdocs/(yoursite)
cd drupal
patch modules/comment/comment.module 51comments2.patch                     

The result will look like this:


Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- /home/guus/drupal-5.1/modules/comment/comment.module       Mon Jan 29 22:51:53 2007
|+++ comment.module     Sat Mar  3 03:15:59 2007
--------------------------
Patching file comment.module using Plan A...
Hunk #1 succeeded at 240.
Hunk #2 succeeded at 504.
Hunk #3 succeeded at 1892.
done

Comments

I've submitted this patch to the issue tracker at Drupal and received good feedback.

I've made some changes and updated the file referenced in the article.

Here's a status tracker for this patch: http://drupal.org/node/81931

Recent comments

Recently read

Books I've recently read: