Difference between revisions of "MediaWiki talk:Common.js"

From FreewarWiki
Jump to: navigation, search
 
Line 4: Line 4:
 
</nowiki></pre>
 
</nowiki></pre>
 
--<span class="plainlinks">[http://fwwiki.de/index.php/Benutzer:Bwoebi <span style="color: #002bb8; font-face:Comic Sans MS">Bwoebi</span>]</span> [[User talk:Bwoebi|<sup>discuss here please</sup>]] 09:56, 1 April 2011 (CEST)
 
--<span class="plainlinks">[http://fwwiki.de/index.php/Benutzer:Bwoebi <span style="color: #002bb8; font-face:Comic Sans MS">Bwoebi</span>]</span> [[User talk:Bwoebi|<sup>discuss here please</sup>]] 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)
+
: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/Signature}} 23:44, 1 April 2011 (CEST)
 
::[[MediaWiki:Sitenotice]]:
 
::[[MediaWiki:Sitenotice]]:
 
  <nowiki><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></nowiki>
 
  <nowiki><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></nowiki>
Line 21: Line 21:
 
== Dynamic Navigation Bars ==
 
== Dynamic Navigation Bars ==
 
*/</pre>--<span class="plainlinks">[http://fwwiki.de/index.php/Benutzer:Bwoebi <span style="color: #002bb8; font-face:Comic Sans MS">Bwoebi</span>]</span> [[User talk:Bwoebi|<sup>discuss here please</sup>]] 15:21, 2 April 2011 (CEST)
 
*/</pre>--<span class="plainlinks">[http://fwwiki.de/index.php/Benutzer:Bwoebi <span style="color: #002bb8; font-face:Comic Sans MS">Bwoebi</span>]</span> [[User talk:Bwoebi|<sup>discuss here please</sup>]] 15:21, 2 April 2011 (CEST)
:Damn, Galak failed. x) --{{User:Galak_van_Charro/Signature}} 15:48, 2 April 2011 (CEST)
+
:Damn, Galak failed. x) --{{User:Galak/Signature}} 15:48, 2 April 2011 (CEST)
 
::Damn, now I failed^^ Last try:
 
::Damn, now I failed^^ Last try:
 
  <nowiki>addOnloadHook(function () {if (wgUserName!="") document.getElementById("sitenotice-login").style.display = "none";});</nowiki>
 
  <nowiki>addOnloadHook(function () {if (wgUserName!="") document.getElementById("sitenotice-login").style.display = "none";});</nowiki>
 
::--<span class="plainlinks">[http://fwwiki.de/index.php/Benutzer:Bwoebi <span style="color: #002bb8; font-face:Comic Sans MS">Bwoebi</span>]</span> [[User talk:Bwoebi|<sup>discuss here please</sup>]] 16:02, 2 April 2011 (CEST)
 
::--<span class="plainlinks">[http://fwwiki.de/index.php/Benutzer:Bwoebi <span style="color: #002bb8; font-face:Comic Sans MS">Bwoebi</span>]</span> [[User talk:Bwoebi|<sup>discuss here please</sup>]] 16:02, 2 April 2011 (CEST)
:::{{done}} {{Smile}} --{{User:Galak_van_Charro/Signature}} 16:09, 2 April 2011 (CEST)
+
:::{{done}} {{Smile}} --{{User:Galak/Signature}} 16:09, 2 April 2011 (CEST)

Latest revision as of 11:41, 13 December 2012

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. -- Galak talk 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)
Aaaah… Replace please…
/* Any JavaScript here will be loaded for all users on every page load. */
/* Hinweis: Die Wiki-Überschriften sind JavaScript-technisch auskommentiert */
/*
== Sitenotice ==
*/
/* Hides the "please log in to edit..." message for users wich are logged in */
if (wgUserName!="") document.getElementById("sitenotice-login").style.display = "none";
/*
== Dynamic Navigation Bars ==
*/
--Bwoebi discuss here please 15:21, 2 April 2011 (CEST)
Damn, Galak failed. x) -- Galak talk 15:48, 2 April 2011 (CEST)
Damn, now I failed^^ Last try:
addOnloadHook(function () {if (wgUserName!="") document.getElementById("sitenotice-login").style.display = "none";});
--Bwoebi discuss here please 16:02, 2 April 2011 (CEST)
Done.svg done
Error creating thumbnail: Unable to save thumbnail to destination
-- Galak talk 16:09, 2 April 2011 (CEST)