RuneScape:Administrative requests

Administrator requests
Note: Please only make requests in this section that specifically require sysop tools to fulfill.

=Requests=

Watchlist
Can the watchlist be made to automatically refresh? Or can a button be added to enable this option. Or is it already auto-refreshing? Thanks, 07:46, September 6, 2010 (UTC)
 * According to MediaWiki:Common.js/ajaxrefresh.js, it does auto-fresh... but it doesn't look like the checkbox is there... I'll look into this, probably happened when that "Following pages" update happened. 08:06, September 6, 2010 (UTC)
 * I don't know... 08:56, September 6, 2010 (UTC)
 * Auto-refresh? Anyone? Anytime soon? 03:41, September 19, 2010 (UTC)

Here's a ton of code for that small change plus fixes for the AJAX all in all that Pcj wrote once more (place over existing AJAX in Common.js and Wikia.js isn't real, it never loads since only Common is being called for JS): //////////////////////////////////////////////////////////////// // ADVANCED AJAX AUTO-REFRESHING ARTICLES // Code courtesy of "pcj" of WoWWiki. //////////////////////////////////////////////////////////////// function setCookie(c_name,value,expiredays) { var exdate=new Date; exdate.setDate(exdate.getDate+expiredays); document.cookie=c_name+ "=" +escape(value)+((expiredays==null) ? "" : ";expires="+exdate.toGMTString); } function getCookie(c_name) { if (document.cookie.length>0) { c_start=document.cookie.indexOf(c_name + "="); if (c_start!=-1) { c_start=c_start + c_name.length+1; c_end=document.cookie.indexOf(";",c_start); if (c_end==-1) c_end=document.cookie.length; return unescape(document.cookie.substring(c_start,c_end)); } } return ""; } article = ""; // AJAX RC var ajaxPages = new Array("Special:RecentChanges", "Special:Watchlist"); var ajaxRCOverride = false; var rcTimer; var doRefresh = true; var rcRefresh = 60000; ajaxRCCookie = (getCookie("ajaxRC")=="on"||ajaxRCOverride) ? true:false; function ajaxRC { appTo = ($("#WikiaPageHeader").length)?$("#WikiaPageHeader"):$(".firstHeading"); appTo.append(' AJAX:   '); $("#ajaxRCprogress").bind("ajaxSend", function { $(this).show; }).bind("ajaxComplete", function { $(this).hide; }); $("#ajaxToggle").click(toggleRC); $("#ajaxRCprogress").hide; $("#ajaxToggle").attr("checked", ajaxRCCookie); if (ajaxRCCookie) loadRCData; } function toggleRC { if ($("#ajaxToggle").attr("checked") == true) { setCookie("ajaxRC", "on", 30); doRefresh = true; loadRCData; } else { setCookie("ajaxRC", "off", 30); doRefresh = false; clearTimeout(rcTimer); } } function loadRCData { $(article).load(location.href + " "+article, function (data) { if (doRefresh) rcTimer = setTimeout("loadRCData;", rcRefresh); }); } // AJAX tables ahClass = new RegExp('class="ajaxHide"', "gim"); crlf = new RegExp("\r\n", "g") function getTableData(tablePage, tableNum) { $("body").bind("ajaxSend", function { $(this).css("cursor","wait"); }).bind("ajaxComplete", function { $(this).css("cursor","auto"); }); $.get('http://' + location.hostname + '/' + tablePage + '?action=render', function (data) { if (data) { data = data.replace(crlf, "").replace(ahClass, 'class="ajaxHide-active"').replace('class="darktable"', ""); $("#ajaxTable" + tableNum).find("td").eq(0).html(data); $("#ajaxTable" + tableNum).find("td").eq(0).find("table.sortable").each(function (i) { ts_makeSortable($(this)); zebraAJAX = $(this).find("tr"); if (zebraAJAX.eq(2).css("background-color") == "transparent" && zebraAJAX.eq(3).css("background-color") == "transparent") { zebraAJAX.find(".sortheader").click(function { $(article+" table.zebra > tbody > tr").css("background-color","transparent"); ac = (skin=="monobook")?"#e9e9ff":"#2c2c2c"; $(article+" table.zebra > tbody > tr:nth-child(2n+1)").css("background-color",ac); }); } }); zebraAJAX = $(article+" .ajax td > table.zebra > tbody > tr"); if (zebraAJAX.eq(1).css("background-color") == "transparent" && zebraAJAX.eq(2).css("background-color") == "transparent") { $(article+" .ajax td > table.zebra > tbody > tr:nth-child(2n+1)").css("background-color","#2c2c2c"); if (skin == "monobook") $("#bodyContent .ajax td > table.zebra > tbody > tr:nth-child(2n+1)").css("background-color","#e9e9ff"); } $("#stl" + tableNum).html('[edit] [hide]'); ttMouseOver; } }); } function addAjaxDisplayLink { $(article+" table.ajax").each(function (i) { $(this).attr("id", "ajaxTable" + i); $(this).find("td").eq(1).parent.hide; $(this).find("td").eq(0).parent.show; if (this.getElementsByTagName("th").length > 0) this.getElementsByTagName("th")[0].innerHTML = ' ' + this.getElementsByTagName("th")[0].innerHTML; if ($(this).find("td").eq(0).hasClass("showLinkHere")) { $(this).find("td").eq(0).html($(this).find("td").eq(0).html.replace("[link]", '').replace("[/link]","")); } else { $("#stl" + i).html('[show data]'); } }); } function toggleSMWFacts { if ($("#SMWFactToggle").text == "hide") { $("#mw-data-after-content table.smwfacttable tr").hide; setCookie("hideSMWFacts","true"); $("#SMWFactToggle").text("show"); } else { $("#mw-data-after-content table.smwfacttable tr").show; setCookie("hideSMWFacts","false"); $("#SMWFactToggle").text("hide"); } } $(function { article = ($("#WikiaArticle").length)?"#WikiaArticle":"#bodyContent"; if (wgAction == "view" && wgArticleId == 0 && wgNamespaceNumber == 0 && document.referrer.indexOf("search") == -1) document.location = "/?search=" + wgTitle; for (x in ajaxPages) { if (wgPageName == ajaxPages[x] && $("#ajaxToggle").length==0) ajaxRC; } if (wgCanonicalNamespace == "Portal") doPortals; $(window).error(function{ return true; }); if ($("#mw-data-after-content table.smwfacttable tr").length == 0) { $("#mw-data-after-content div.smwfact").hide; } else { $("#mw-data-after-content span.smwrdflink").after(' [hide]  '); } if (getCookie("hideSMWFacts") == "true") toggleSMWFacts; ttMouseOver; addAjaxDisplayLink; createCollapseButtons; createNavigationBarToggleButton; changeTS; wwScribbleMaps; requireImageLicense; aCharLoad; loadGSList; if ($("#mw-dupimages").length) findDupImages; if (wgUserName != null) $("span.insertusername").html(wgUserName); $(article+" .quote").prepend(" &#8221; &#8220; ").css("max-width","75%").after(""); $(".mw-mpt-link").html("Links to the old page title</a>"); }); /////////////////////////////////////////////////////////////////////////////////////////////////////////// // END OF AJAX AUTO-REFRESH ///////////////////////////////////////////////////////////////////////////////////////////////////////////

I took as much code as I could out from WoWWiki (I'm sure there's one or two things in there that don't belong but I'm a noob). There's an image that loads with the timer to show that it works. You might want to remove it if you feel like it, but it helps demonstrate that it does indeed work. 00:25, October 13, 2010 (UTC)
 * Exactly where do I put it? wikia,js doesn't seem to be working. 09:26, October 13, 2010 (UTC)
 * It can go into your Global.js file at Community Central. However it does not work when wikis already have one, whether broken or working. So an administrator will have to replace the ajaxrefresh subpage of Common.js. I'm not sure if the former cookie is in the subpage or the actual mediawiki page. 22:40, October 13, 2010 (UTC)

I copy/pasted it, let me know if anything else needs to be done. 13:50, October 14, 2010 (UTC)

Category:Audio files
Needs to be weeded out of the files longer than 30 seconds due to copyright infringement. If there is a pervious version of that length, the longer versions must be deleted. This is to keep in-line with the Images and media policy and the non-free audio template that many lack for a rationale. 19:37, September 28, 2010 (UTC)

Auto-refresh
Can auto-refresh be added back to the Oasis skin's js, please. 09:51, October 14, 2010 (UTC)
 * I'd like it to be, but apparently the guy that made autorefresh hates Oasis and refuses to update it to work with Oasis.  09:53, October 14, 2010 (UTC)
 * Does that mean the above code doesn't work? 09:58, October 14, 2010 (UTC)
 * Well it should have worked in the Wikia skin... At least it now works for Monobook and Monaco. I cannot see why it worked perfectly on my test wiki and failed to load here. Maybe it's my iPhone's cache (since I really can't do much to find out why it isn't loading for Wikia on this wiki right now). If this continues on my laptop whenever I get out of Ethics to look for the offending line(s). 14:49, October 14, 2010 (UTC)

Comment - It appears to be working now. Could the following be added to the updated code: Array("Special:RecentChanges", "Special:Watchlist", "Special:Log", "Special:Contributions", "Forum:Yew_Grove", "Forum:Clan_Chat", "RuneScape:Page_maintenance"); Just replace the former array under //AJAX RC with this. Thanks. 15:29, October 14, 2010 (UTC)


 * Done, let me know if anything else needs to be done. 15:37, October 14, 2010 (UTC)