Hey everyone, not sure how much use this will get right away, but I'm already thinking up some ideas for it myself.
It is now possible to show NEWS CONTENT based on certain conditions. It is suited for limiting access to parts of the article to certain users or user groups, or from certain IP addresses.
MosIf accepts wildcards * and ? which makes it extremely versatile.
MosIf currently supports the following conditions: user name, user type, user group.
This is available to all registered users that can contribute news articles that appear on the front page.
Usage:
{mosif parameter|operator|list}some content{else}other content{endif}
parameter : username | usergroup | usertype | ip
operator : = | !=
(= -equals | != -not equals)
list : text[,text]
Wildcards (*,?) are allowed. ? = any one character, * = any number of characters
Apropriate values for:
username : any name like john, batman, wilddog etc.
usergroup : public, registered, special
usertype : registered, author, editor, publisher, manager, administrator, super administrator
ip : 127.0.0.1, 212.230.221.7 etc.
NOTES:
1. MosIf tags can span multiple lines
2. Conditions and names are case insensitive
3. You can put a space before and after the commas and equal sign for clarity
4. MosIf constructions CANNOT be nested
Examples:
a) With EQUAL (=):
==================
b) With NOT EQUAL (!=):
=======================
Everybody but John are allowed to see this!
c) With else:
=============
Hello Stranger. What are you doing here?
Who is your ISP?
Hope to see this being put to good use in the future... oh, and if you're not registered and reading this... my news articles in the future may hold great surprises to those who are Registered and reading it!

Post edited by: wastedzombie, at: 2005/08/05 11:33