hacks

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.

Hacking Devel

By Markus Sandy at 06/26/2007 - 02:53
Tags:

I was testing the web service to display a video and noticing some extraneous JQuery code

<script type="text/javascript">
      $(document).ready(function() {
        $("body").append("");
      });
    </script>

This was causing javascript errors in routines that were designed to return media viewer embed code and I needed to get rid of it.

Syndicate content