I am relatively new to the MediaWiki and PHP scene. I am working with a few people setting up a wiki for our floor, http://csh.rit.edu One thing I am trying to do is set access control based on whether a user is logged in for now. We have some information on there that we might only want members to see, but most information would be public. I have a few things I am trying to do, and any help in at least the right direction to look for the information would be useful. If I was not supposed to ask this question here, please let me know and feel free to delete it. But here it goes...: - I want to make a PHP process so that anything encapsulate in <private></private> is not rendered if the user is not logged in. - I would like to know if there is an easy way to add pages to the anonymous whitelist, and possibly if there is a way for a user to specify if the page should be whitelisted or not - Finally, we would like it if there was a way for mediawiki to not process any [[links]] that the user does not have access to, so that they won't even know that there is a page there.
I would like to implement these things, and would most definitely contribute them to the project if they work. Any feedback would be greatly appreciated.
Fotios "Frank" Lindiakos ----------------------------------- fotios (at) csh (dot) rit (dot) edu 3rd Year Computer Science major CSH Web Development Group Head
On Oct 24, 2004, at 9:31 PM, Fotios Lindiakos wrote:
I am relatively new to the MediaWiki and PHP scene. I am working with a few people setting up a wiki for our floor, http://csh.rit.edu One thing I am trying to do is set access control based on whether a user is logged in for now. We have some information on there that we might only want members to see, but most information would be public. I have a few things I am trying to do, and any help in at least the right direction to look for the information would be useful. If I was not supposed to ask this question here, please let me know and feel free to delete it. But here it goes...:
- I want to make a PHP process so that anything encapsulate in
<private></private> is not rendered if the user is not logged in.
I would not recommend this; the wiki is built with the assumption that all pages are public, and that the source text of all pages is equally public. If someone can view a page, they will certainly be able to obtain the source text of that page, including anything inside such tags.
- I would like to know if there is an easy way to add pages to the
anonymous whitelist, and possibly if there is a way for a user to specify if the page should be whitelisted or not
Not presently. You could write such a way, perhaps.
- Finally, we would like it if there was a way for mediawiki to not
process any [[links]] that the user does not have access to, so that they won't even know that there is a page there.
This is not supported; wikis are intended to be open-access and links are links.
-- brion vibber (brion @ pobox.com)
wikitech-l@lists.wikimedia.org