WordPress.org

Ready to get started?Download WordPress

Forums

Auto Shutoff Comments Problem (15 posts)

  1. OrchidRed
    Member
    Posted 9 years ago #

    I'm having trouble using the Auto Shutoff Comments plugin found here. I installed it and everything seems to be working fine, except that I set the "$age_cutoff" to 10 days and the plugin is shutting off comments at 6 days.
    When I originally installed the plugin I had set it to 6 days, but then decided that all the posts displayed on the front page should be open to comments. But even though I've changed the day number, the file is not reflecting that change. Any ideas why? I've tried deactivating, then re-activating the plugin to see if that helped, but it didn't. :(
    I'm pretty clueless with PHP so any help would be very much appreciated!
    - Kestrel

  2. OrchidRed
    Member
    Posted 9 years ago #

    Incidentally, even if I delete the plugin the comments are still closed after 6 days. What is going on? I'm so confused.

  3. carthik
    Member
    Posted 9 years ago #

    The plugin actually changes the status of the post, as to whether the post will accept comments or not. It probably set all posts older than 6 days to "comments closed". Now when you changed the options and made it close posts older than 10 days, the plugin might not go and change the posts immediately, but from this point on, it will only mark ten day old posts...
    Contact the plugin author and let her/him know that the plugin should update the db tables so that the change you want to happen occurs as soon as you change the option.

  4. OrchidRed
    Member
    Posted 9 years ago #

    Ah thank you! That makes sense. :)

  5. sourire75
    Member
    Posted 9 years ago #

    I'm a very newbie with plugins and wordpress... and maybe some of you will laugh at my question, but nevermind the hundreds of "phentermine" comments on my blog are turning me crazy
    I'm trying to automatically shut off the comments on my blogs, so I found this "plugin" and I want to install it.
    But when it comes to plugins usually I download a file and install it, while here there is no file to download, only a few lines of code.
    And I really dont understand what to do with it ?????
    Is there no file to download and put in the wp-content/plugins folder ?
    Where am I supposed to put this code ????
    I hope someone will help me

  6. lbessant

    Posted 9 years ago #

    I'm using WpBlacklist to deal with the Phentermine idiot, but to answer your question, copy everything from the opening <php to the closing tag and paste it into your preferred text editor. Save it as a new .php file, then upload to your plugins folder. It should then be available to activate....

  7. sdollen
    Member
    Posted 9 years ago #

    I uploaded and activated the plugin and at first it looked like it didn't do anything at all. Now, a couple of days later, I see where September and August are no longer links in my Archive links. And, the posts are labeled "private" in the admin panel.
    I'm making a huge leap here and thinking that is what it is supposed to do. If it is, I'm not sure that is exactly what I was wanting to do.
    I'd still like the old posts to be viewable by readers, just not open for comments. To deter the poker and phentermine spammers. I thought phentermine was illegal anyway...maybe that was fenphen?
    I digress...
    So, best way, if any to allow old posts to be seen but comments turned off ?

  8. TechGnome
    Moderator
    Posted 9 years ago #

    Uhhhh.... no... that's NOT what it's supposed to do. It's supposed to close comments, but not make them private.... something has gone wonky there.
    Tg

  9. sdollen
    Member
    Posted 9 years ago #

    Hey TG -
    I think the problem might be that I used the plugin on the Wiki which was modified by David Ky which is located here:
    http://wiki.wordpress.org/?pagename=AutoShutOffPosts&PHPSESSID=2e4d27c9af63eb3141a513f6cbdaf014
    I think the one that most are using and that I want is the original one by Scott Hanson located here:
    http://wiki.wordpress.org/Auto%20shutoff%20comments
    Is that right?

  10. sdollen
    Member
    Posted 9 years ago #

    I just realized looking at my own links what I did. LOL. The first is closing posts...which is what it did.
    The second is the comments close, which is what I want.
    DUH!

  11. sdollen
    Member
    Posted 9 years ago #

    Anyone know a quick fix to make posts commentable again once the plugin is deactived?

  12. sdollen
    Member
    Posted 9 years ago #

    Anyone? anyone at all? ;)

  13. Mark (podz)
    Support Maven
    Posted 9 years ago #

    Quick fix ? That would have to be something written in SQL
    Otherwise, it's using phpmyadmin and going through posts changing the closed variable to open.

  14. sdollen
    Member
    Posted 9 years ago #

    heehee... okay, that's what I thought the fix would be. ;)
    many thanks, podz :)

  15. xrlq
    Member
    Posted 9 years ago #

    I have a more basic question: how/where do you "install" the code? Does it get added to one of the existing files, or should one save it as a new file?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.