Support » Plugin: No Page Comment » Disable comments on images?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Seth Alling

    (@sethta)

    I haven’t had that request before. I normally avoid attachment pages and just use a lightbox for images, so I rarely think about that aspect. Looking at the code, it’s one of the areas I disabled, but seeing how attachments do have comments, I’ll add it to the next update.

    I am slammed right now and don’t have time to make an update as the nxet update will be a big overhaul to make the plugin run a little faster and bring in some translation. My guess is it won’t happen until after the new year.

    But, I can tell you how to add attachments by modifying a line in the plugin’s code if you are comfortable with that. Making this change to the plugin won’t matter as I’ll add it to the next release, so feel free to make the change because it won’t get overwritten when the plugin is updated.

    Change lines 110, 164 and 187 of no-page-comment.php from
    if ( in_array( $posttype->name, array('revision','nav_menu_item','attachment') ) )
    to
    if ( in_array( $posttype->name, array('revision','nav_menu_item') ) )

    Thanks Seth,

    This code works great. And, believe it or not, I hadn’t discovered or thought of using a lightbox to display larger images (doh!). So, you get double points :-).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable comments on images?’ is closed to new replies.