Manual talk:Interface/Sitenotice

From MediaWiki.org
Jump to: navigation, search

[edit] Small question

Small question: on en.wiktionary there was a sitenotice with a "dismiss" button next to it. I pushed that button and the notice vanished, but how do I get it back? nl:wikt:Gebruiker:Jcwf

You need to delete the respective cookie. (In FF3, you can click on the site favicon, then "more information", then "cookies". You can probably figure out from the name which cookie you want to delete, or you can just delete them all - you'll have to log in again, but otherwise loose no data.) --Tgr 18:07, 15 February 2009 (UTC)
Thanks

Jcwf 05:38, 8 March 2009 (UTC)

[edit] Is it possible to make a Sitenotice be dependent on current page address?

Dear colleagues! I have a mediawiki instance at office. It has different adresses if one access to it from office network and from Internet. It is quite boring to send links to the news to my colleagues because I have to manually create one address from another. I thought I created a template which shows those two adresses like this:

http://%inner_address%/index.php/{{FULLPAGENAMEE}} - to access from office<br>
http://%outer_address%/index.php/{{FULLPAGENAMEE}} - to access from outside

and then I just can copy this information to clipboard. Template works fine, but I want to place this template at each page of my wiki. I can do it manually but this is not a good way. I tried to put this template into mediawiki:Sitenotice page, but it shows links to mediawiki:Sitenotice page, not to the current... Please answer, is it possible to automatically add this link to all pages and how can one do it? Slarionoff 08:58, 1 June 2011 (UTC)

I don't know, sorry; but if users who access the wiki from outside are (mostly) logged out and users who access it from inside are (mostly) logged in, or viceversa, you can use MediaWiki:Anonnotice for logged out users and MediaWiki:Sitenotice for logged in users. Nemo 09:20, 1 June 2011 (UTC)
Nemo, thank you very much, but my wiki is closed and I don't give any permissions to anons. Seems to me that this task is not as simple as I thought and hack of php code is needed. Slarionoff 12:16, 1 June 2011 (UTC)
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox