Comment hacks

By Markus Sandy at 07/02/2007 - 12:23

http://farm1.static.flickr.com/85/255797462_6bf384d859_m.jpg

I fixed the comments today for media posts. Not sure how things got to the way they were, but several issues where present:

  • the IA module was not setting the comment field to 2 (allow comments) for new entries before saving them (that was the least of the bugs I found there; there were bigger issues with file records being saved with invalid node id's and the use of archived files in quota measurements).
  • as a result, over 100,000 media records had comments field set to 0, which is off. I set all media records comments field values to 2 and so now commenting is back.
  • the anchor name used in the older Drupal comments module was inconsistent in use of "comment" and "comment-form" and so comment form was not displayed properly. This is fixed now (and a hack, so be aware for future upgrades).
  • the command template was not consistent with other templates in display of header and font. I fixed this.

(image from http://www.flickr.com/photos/laughingsquid/255797462/)

Links:

Comments and discussion: