BootstrapMediaWiki icon indicating copy to clipboard operation
BootstrapMediaWiki copied to clipboard

Hiding menu items from anonymous users

Open chrisrouse opened this issue 11 years ago • 4 comments

Any tips on hiding the default Tools menu and my custom "MediaWiki" menu that just has links to manual pages from anonymous users?

I figured out how to restrict access to the pages in Tools, but would prefer to hide the links entirely.

chrisrouse avatar Aug 16 '13 14:08 chrisrouse

The solution involves adding if($this->data['loggedin']) { … } around the section of the template that you want to hide.

See http://techhelphq.com/how-to/Hiding_the_Toolbox_from_anonymous_users_in_a_MediaWiki_install for example.

Mithgol avatar Aug 18 '13 05:08 Mithgol

@Mithgol Do you know how to deal with the '#20'.

sunorry avatar Oct 15 '13 06:10 sunorry

I have a suggestion.

Mithgol avatar Oct 15 '13 11:10 Mithgol

Hi friends, if you are a life, please, give a positif push : )

ZerooCool avatar Jul 07 '16 02:07 ZerooCool