Wikia

Community Central

Admin Forum:Locking old blogs

18,703pages on
this wiki
Talk0

This Forum has been archived

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? SW8573WCE 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. R&om *poke*
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. SW8573WCE 07:44, September 6, 2012 (UTC)
In other words, I want to have "exceptions" to these rules. SW8573WCE 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 <div id="ForeverComment" style="position:absolute"></div> into the blog text and check for that being present under #mw-content-text 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)

(Reset indent)

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 20px_Rin_Tohsaka_Avatar.png Mathmagician ƒ(♫) 19:25 UTC, Thursday, 13 September 2012

Around Wikia's network

Random Wiki