-----Original Message----- From: wikitech-l-bounces@lists.wikimedia.org [mailto:wikitech-l-bounces@lists.wikimedia.org] On Behalf Of Julia Reek Sent: Wednesday, January 02, 2008 7:14 AM To: wikitech-l@lists.wikimedia.org Subject: [Wikitech-l] making pages visible in dependence of the user group
Hi, i use the lockdown extension to grant access to special pages for specific user groups. My problem ist, that users with "nomral" right's shouldn't realize that there are pages they are not allowed to access. So i wanted to programm something that a link at the sidebar is visible depending to what user group the logged on user exists: user belongs to the special user group --> link is visible at the sidebar user belongs to the normal user group --> link is not visible at the sidebar
Does anybody know what possibilities i have!? i thought of programming a javascrpt hook implementen in monobook.js, but i don't know how to manipulate the sidebar (the position of the link) second idea was to manipulate the monobook.php...
is there another way or has anybody already did something similar, or has an idea°? thank you very much for any hint julia
_______________________________________________
Shouldn't you be able to put an if statement in the skin? Something like:
If ( $wgUser->hasRights() ) { echo $links; }
Though hasRights is just something I made up. I forgot what the real one is called.
-Courtney