Extension talk:DismissableSiteNotice/Archive

Can install directions be included for those of us who are just marginally capable of adding extensions to our wikis? :) --PurplePopple 00:16, 29 December 2007 (UTC)

Increment ID of MediaWiki:Sitenotice
Hello, after installation of this Extension i added text to MediaWiki:Sitenotice. I sucessully clicked the dissmiss -link at the top right, but i now do not know how to add another Sitenotice? If a add MediaWiki:Sitenotice 2 it is not displayed at the top of the page. So, can any1 answer the question how to add a new Sitenotice if the user dismissed the first one?

Thanks in advance kind regards TurboKanne


 * No, that's not how you do it. You edit MediaWiki:Sitenotice on your wiki as normal, add the new notice there and whatever you like. Then you go to MediaWiki:Sitenotice id on your wiki and increment the number there by one. For example, if it is 1, you replace the number 1 by the number 2 and then everyone will see your new sitenotice. -- Sayuri 12:16, 3 February 2008 (UTC)


 * Thanks, now i understood. I thought i have to replace the "id" by an incremental number. this was what confudes me. i checked it with your help and it works great. Thanks a lot for your quick response.
 * kind regards
 * TurboKanne

An alternative to MediaWIki:Sitenotice_id
Change the one line of extension code:
 * $id = intval( $wgMajorSiteNoticeID ) . "." . intval( wfMsgForContent( 'sitenotice_id' ) );

to:
 * $id = intval( $wgMajorSiteNoticeID ) . "." . crc32( wfMsgForContent( 'sitenotice' ) );

This should eliminate the need for the "sitenotice_id" message entirely by calculating a checksum-like value and using it to force the redisplay of the sitenotice whenever its content is changed in any manner. --Carlb 21:37, 24 March 2008 (UTC)


 * That is so easy and logical, rather than farting around changing the id...worked for me
 * Should be included in main code and remove reference/need for id


 * Great work, lovely little extension --HTPCnz 00:46, 22 June 2008 (UTC)


 * I think different, not every edit on the Site Notice need to redisplay the Site Notice.
 * For example simple fixing of spelling misstakes or removing of 1 of 2 messages. (With hidding the user confirmed for him self, that he read both measeges)
 * When a user hide for example the notice about the Board Vote, then he don't care when there some one fix a spelling misstake.
 * -- MichaelFrey 07:42, 22 June 2008 (UTC)