By Guus , 3 March 2007

Here are the things I need to do before switching this site to Drupal:

  1. Fix bug in ordering comments (reuse code from system update 172)
  2. Migrate subtitles of Specials
  3. Add log message and use correct creation date in node_revision for story & page
  4. Migrate hostname of anonymous comments
  5. Migrate private attribute of stories
  6. Configure RSS feeds. Strictly speaking this can wait till after the migration but I want to be sure I know what's involved.
  7. Set the creation time of book reviews
  8. Filter out "Re:" in comment titles
  9. Filter out in stories
Topic
By Guus , 3 March 2007

Last week уе have been testing with the trial version of the new site. Jaap, Jean-Paul, Jerry, Mieke and Rob have found a couple of problems and suggestions for improvements.

Here's is what they found:

  1. Bug: the Recent Comment block doesn't show an author.
  2. Bug: The order of the comments looks strange. "I don't get the order of the comments. As I watch this news item, the comments don't look ordered by date. Do they? Should they?".
  3. Feature request: Use a default image for users that don't have an image & anonymous users.
  4. Feature request: perhaps it's useful to be able to delete your own comments.
  5. Bug: The signature (for comments) doesn't really work nice: you always have to "move it aside" before you can start typing a comment. The cursor isn't placed on a useful place.
  6. Feature request: It would be nice if the signature is visually separated from the comment by a line or something.
  7. Bug: Preview doesn't show HTML code.

Here are my findings for these items:

  1. Fixed with the comments module patch.
  2. The script I used to transfer comments from the old to the new website had a bug and this caused newly created comments in the new site to appear out-of-order. This will be fixed before the migration.
  3. I like this idea, and I'll probably implement it. Can wait till after the migration.
  4. I can see this being useful. I'll have to get to know the comments module of Drupal a bit better. Can wait till after the migration.
  5. This was pretty annoying. I've downloaded an optional module that fixes this and made signatures in general much nicer. Fixed.
  6. Included in (5). Fixed.
  7. I couldn't really reproduce this one. However, I noticed that the &ltb> and &lti> tags were not allowed in the HTML filter which may have caused the confusion. I'll make sure to add these again to the filter right after the migration.
Topic
By Guus , 2 March 2007

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
Topic
By Guus , 2 March 2007

Configuration option for the Recent Comments block in Drupal.I've started testing a new version of this website. One of the testers commented on the Recent Comments block.


Unlike the current site's Recent Comments block (for PHP Nuke), the new site didn't display the author of each comment in the list with recent comments. I didn't like that either so I fixed it.

Tonight I've also made this change available to other users of Drupal with a patch. The source code of Drupal is much, much nicer than the PHP Nuke's code and I'm glad I'm finally making the move to a modern system.

Download the patch for Drupal 5.1 to add comment author names to the recent comments block.

Configuration option for the Recent Comments block in Drupal.

Examples:

No comment authors.

Option 1: no comment authors (default).

With comment authors.

Option 2: with comment authors.

Installation

To install this patch download the text file and save it as 51comments.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 51comments.patch                     

Result will look like:


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
|+++ /var/www/htdocs/testguusbosmannl/modules/comment/comment.module    Fri Mar  2 20:59:19 2007
--------------------------
Patching file modules/comment/comment.module using Plan A...
Hunk #1 succeeded at 51.
Hunk #2 succeeded at 252.
Hunk #3 succeeded at 270.
Hunk #4 succeeded at 292.
Hunk #5 succeeded at 520.
Hunk #6 succeeded at 1908.
done
Topic