MediaWiki talk:Common.js

From FreewarWiki
Revision as of 00:12, 2 April 2011 by Bwoebi (talk | contribs) (html-fix)

Jump to: navigation, search

Why don't you hide the #sitenotice when someone is logged in?

if (wgUserName!="") document.getElementById("sitenotice").style.display = "none";

--Bwoebi discuss here please 09:56, 1 April 2011 (CEST)

If we hide the sitenotice by default, we would hide it for all users wich are logged in. This may be usefull for the current message, but not for other messages. If you have an idea to hide this specific message, just tell us. --User:Galak van Charro/Signature 23:44, 1 April 2011 (CEST)
MediaWiki:Sitenotice:
<div class="usermessage" id="sitenotice-03-2011">Please [[Special:UserLogin|log in]] to edit articles. We had to forbid all anonymous edits because of massive spam attacks.</div>
and MediaWiki:Common.js:
if (wgUserName!="") document.getElementById("sitenotice-03-2011").style.display = "none";
--Bwoebi discuss here please 00:11, 2 April 2011 (CEST)