Forum:WikiNotice

Hey, when I accidentally clicked "dismiss" on my notice up at the top of the page, the notice dissapeared and I can't get it back! Anybody? Help?- LD760 { Talk 04:25, 28 February 2007 (UTC)


 * There are two solutions to this:


 * 1) Delete the cookie that hid the sitenotice (Name: dismissSiteNotice) on whatever wiki you're being affected on.
 * 2) Have MediaWiki:Sitenotice id incremented by 1 on the local wiki.
 * G .He (Talk!) 05:04, 28 February 2007 (UTC)
 * Here are my two ansewers to this:

- LD760 { Talk 22:19, 28 February 2007 (UTC)
 * 1) How do I delete the cookie?
 * 2) What on earth does that mean?
 * What browser do you use? John Reaves (talk) 22:25, 28 February 2007 (UTC)


 * You can view the previous messages in the page history to see what you missed. Angela talk 23:14, 28 February 2007 (UTC)
 * Internet Explorer if that's what you mean. Besides,I want to keep it there at the top and not have to look at the history all the time.- LD760 { Talk[[Image:Luigi.gif|24px]] 00:27, 1 March 2007 (UTC)
 * Well, you can delete your cookies by accessing "Internet options" in the tools menu (I think, I don't use IE very often). Just make sure you don't dismiss the notice once you delete your cookies. John Reaves (talk) 00:49, 1 March 2007 (UTC)
 * That won't work! I can't find a way to delete them on there! I need a different way! - LD760 { Talk[[Image:Luigi.gif|24px]] 04:27, 3 March 2007 (UTC)

If you still want it. I built an undismiss function because I was adding a bunch more tools to my personal view of the wiki I view. (Currently I have the user tools, sitenotice tools, wiki switch, diff link, purge link, and status and stress changers) It's your choice on how you trigger the function, if you want tab menus I can help you with the system I modified off of the system Essjay had. I have submenus for my menus working, but those work in Firefox but not Opera at the moment so among other things that would need to be done the system isn't yet ready for a full public use by everyone. But here's the .js function I build to undismiss the sitenotice: function undismissNotice { var date = new Date; date.setTime(date.getTime - 30*86400*1000); document.cookie = cookieName + "0; expires="+date.toGMTString + "; path=/"; var content = document.getElementById('content'); var beforeFirstHeading = document.getElementById('beforeFirstHeading'); var siteNotice = document.getElementById('siteNotice'); var isBlank = false; if( siteNotice != undefined || siteNotice != null ) isBlank = siteNotice.innerHTML.match(/^\s*$/i); else isBlank = true; if( isBlank ) { if( siteNotice == undefined || siteNotice == null ) siteNotice = document.createElement( 'div' ); siteNotice.id = 'siteNotice'; siteNotice.innerHTML = ' '; content.insertBefore( siteNotice, beforeFirstHeading ); } } ~Dantman(talk) 06:31, 13 March 2007 (UTC)

No dismiss
Is there a way to disable the ability to dimiss the sitnotice? John Reaves (talk) 22:27, 28 February 2007 (UTC)


 * I don't think so. Would that be useful? Why would you want to prevent users hiding a message they didn't want to see? Angela talk 23:14, 28 February 2007 (UTC)
 * I don't have a reason to hide it right now. Basically, I was just curious in case the need came up. John Reaves (talk) 23:20, 28 February 2007 (UTC)


 * Maybe if a computer that is shared with multiple users (normally IP users) the first users to see the announcement decides to dismiss the announcement but for the other users that message could have been useful but they will not delete their cookies because they never knew of the announcement in the first place as the first user dismiss the message. a good option is that once the message is "dismiss" a link in the same spot will be there saying like "announcement" so a person can click on that and its cookie changes or something so that person can see the actual message and if there is nothing on the mediawiki page ( a blank: - ) there will not be any link showing that there is an announcement that way all people can be happy the ones that likes to hide the already read announcement, and the ones that wants to re-read the announcement and the sysops that don't have to change the counter mediawiki page every time they do a little modification to the announcement (unless they do a different announcement) --Cizagna (Talk) 18:48, 2 March 2007 (UTC)