Forum:Prevent editing of old discussions

Should we put a code in MediaWiki:Common.js to prevent editing of old discussions? — ¤ U LTIMATE S UPREME¤ (T@lk)☺ 10:25, June 11, 2012 (UTC)


 * If someone knows Javascript, they could do. --Speysider Talk Page 10:30, June 11, 2012 (UTC)
 * Is that even possible? - White Flash - (Talk) - 10:33, June 11, 2012 (UTC)


 * Don't think it is tbh. --Speysider Talk Page 10:35, June 11, 2012 (UTC)

Just saw it on some other wiki. I dont know if it would work here or not.

/* This code is loaded on all skins.

importScriptPage('ShowHide/code.js', 'dev');

/** Archive edit tab disabling ************************************* * Disables the edit tab on old forum topic pages to stop new people bumping old topics. * Page can still be edited by going via the edit tab on the history etc, or by * typing the edit address manually. */

if(wgNamespaceNumber == 110 ||wgNamespaceNumber === 114 ) {

function disableOldForumEdit { if( typeof( enableOldForumEdit ) != 'undefined' && enableOldForumEdit ) { return; } if( !document.getElementById('old-forum-warning') ) { return; }

if(skin == 'oasis') { $('#WikiaPageHeader .wikia-menu-button > a').html('Archived').removeAttr('href'); return; } if( !document.getElementById('ca-edit') ) { return; } var editLink = null; if( skin == 'monaco' ) { editLink = document.getElementById('ca-edit'); } else if( skin == 'monobook' ) { editLink = document.getElementById('ca-edit').firstChild; } else { return; }

editLink.removeAttribute('href', 0); editLink.removeAttribute('title', 0); editLink.style.color = 'gray'; editLink.innerHTML = 'Archived';

$('span.editsection-upper').remove;

} addOnloadHook( disableOldForumEdit ); } — ¤ U LTIMATE S UPREME¤ (T@lk)☺ 10:47, June 11, 2012 (UTC)


 * Can you provide a link to this "other" wiki you saw it on? - White Flash - (Talk) - 10:44, June 11, 2012 (UTC)
 * This wiki. Lol — ¤ U LTIMATE S UPREME¤ (T@lk)☺ 10:47, June 11, 2012 (UTC)
 * Linking to Community Central's RC is not helpful, link it to where you saw it on, we aren't psychics. - White Flash - (Talk) - 10:59, June 11, 2012 (UTC)

What do you mean. Ofcourse its here — ¤ U LTIMATE S UPREME¤ (T@lk)☺ 11:04, June 11, 2012 (UTC)

Why? — ¤ U LTIMATE S UPREME¤ (T@lk)☺ 13:48, June 11, 2012 (UTC)