Wikidot: Specific Users Only
12 Apr 2010 07:19
12 Apr 2010 07:19
12 Apr 2010 07:19
12 Apr 2010 07:19
nav_first.pngFirst: blog:1
My first blog!
Edited: 06 Nov 2011 11:49 by: James Kanjo
Comments: 2
Tags: ads blog css facebook first free myspace program programming wiki wikidot
nav_prev.pngPrevious: blog:61
VNC: Remote Control
Edited: 06 Nov 2011 11:54 by: James Kanjo
Comments: 3
Tags: apple iphone mac
Last: blog:77
Wikidot: CSS Per Category
Edited: 04 Mar 2012 05:54 by: James Kanjo
Comments: 3
Tags: programming wikidot
Next: blog:63
Safe Passwords
Edited: 06 Nov 2011 11:54 by: James Kanjo
Comments: 8
Tags: computers security

One of the commonly asked requests in Wikidot is to show certain blocks of information to a special selection of users. For example, let's say that you have some administrator links and functions in your sidebar:

[[[site-administrators |Information for Site Administrators only]]]
[[[admin:manage |Site Manger]]]
[[module NewPage category="blog" button="New Blog Entry"]]

Now, you don't want to show this sort of information to anybody other than the Administrators on your site. It should be completely invisible to every anonymous person, every member and every moderator.

Would you believe me if I told you that the blog you are reading right now, has been doing this for three weeks now? Let me show you an image of what I'm looking at:

Only James Kanjo sees this!!!
file: jameskanjo-suo.jpg
fullname: blog:62

The beauty about is that it's so easy to do! In fact, it's as simple as a Wikidot CSI that I have created for public use: Specific Users Only Include.

Give it a try! It's fantastic!

Actually, I'll give it a try for you:

[[include :snippets:suo BEGIN CODE |unique=first |type=showto |user1=james-kanjo |user2=michal-frackowiak]]
**Hello James Kanjo & Michał Frąckowiak!!!**
[[include :snippets:suo END CODE]]

[[include :snippets:suo BEGIN CODE |unique=second |type=hidefrom |user1=james-kanjo |user2=michal-frackowiak]]
**Hello Everybody Else!!!**
[[include :snippets:suo END CODE]]

In Action:


λ James Kanjo


Add a New Comment
or Sign in as Wikidot user
(will not be published)
- +
All content on this page is subject to the guidelines outlined here