ifusers module

This section on the Community is no longer supported, in favour of Wikidot's Official Feedback Site.

It is retained here for archiving purposes.

Wish List

Template "template:wishlist" can not be found.


Posted by James KanjoJames Kanjo on 26 Nov 2008 22:09, last edited on 05 Mar 2009 08:06

This wish is open


What if we had a new module similar to the [[iftags]] module?

It should be easy to implement:

[[ifuser ma]]
You are the master administrator

[[ifuser admin]]
You are an administrator

[[ifuser mod]]
You are a moderator

[[ifuser member]]
You are a member

Like the [[iftags]], you would be able to combine them and use simple logic:

[[ifuser mod admin]]
You are either a moderator or an administrator

[[ifuser -member]]
You are not a member

This would be a very useful function as you would be able to display things only to specific members (such as links to the admin:manage page, which looks a bit unprofessional to normal members if they can't use it). Or you could make elements/pages of the wiki private. You could combine it with the [[iftags]] module:

[[iftags private]]
[[ifuser admin]]

[[ifuser -admin]]
You do not have sufficient privileges to view this page.

[[iftags -private]]

Links to forum Posts

This wish comes verbatim from James KanjoJames Kanjo's post at Pro ;)

Rate this Wish

We encourage you to "rate" the suggestions. The higher the rating, the better the chance of the wish being granted (well, possibly).

rating: +20+x
Add a New Comment
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.