Admin Forum:Locking old blogs

Forums: Admin Central Index → Technical Help → Locking old blogs Wikia's forums are a place for the community to help other members. To contact staff directly or to report bugs, please use Special:Contact.

CC has a function that locks old blogs, preventing commenting and replies. Is it possible to have certain exceptions, where some blogs are excepted to being automatically locked? 00:18, September 6, 2012 (UTC)


 * Do you mean disabling comments? When editing the blog post, uncheck the "commenting" box next to minor edits and no user will be able to add comments. 04:45, September 6, 2012 (UTC)


 * Nah, that'll take too long to go to each blog and lock it manually to prevent it from being bumped. I forgot to mention - it's automatic (i.e. run by javascript). E.g, if you go to this page, you'll notice that it says "This blog post hasn't been commented on for over 30 days. There is no need to comment." Some blogs may be more important, including but not limited to fanfics, which generally take the person some time to post all the chapters up; in the waiting process, the blog may be locked. 07:44, September 6, 2012 (UTC)


 * In other words, I want to have "exceptions" to these rules. 13:42, September 7, 2012 (UTC)


 * Possible, yes. You just need to modify the script to either: A) Take a list of exceptions and self-abort when it matches the current page; or B) Make the script check the Categories for the current page and self-abort if it's in a "Category:Blog Comments Forever" or whatever; or C) Create a template that inserts a  into the blog text and check for that being present under   with jQuery. Obviously, you need to be able to write JavaScript. (If you need someone else to do this work and you don't have anyone on your Wiki who knows JS, you may want to open a new thread on the general Forum:Support Requests, that gets more traffic then this one). Lunarity 04:34, September 8, 2012 (UTC)

Just to follow up on this for any future readers, the lock old blogs script has now been moved to the Wikia Developers Wiki at w:c:dev:LockOldBlogs. It includes a new feature where you can add a blog to Category:Nonexpiry blogs so that those blogs always remain open to commenting, and comes with configuration options to 1) change that category name, 2) change 30 days to however many days you want or 3) customize the default message