BRAINGELL RADIO
Web Braingell
Date/Time: Sat, Aug 30, 2008 @ 07:09
Your IP address: 38.103.63.60
vbdigital
Random Member
View Shanarchy's Profile
Shanarchy

Random Gallery Pic

Daylight Dies

Check DJ Schedule
Member Login
Support Braingell
Donate
Once Monthly

Currency

Amount

Currency

Amount

Who's Online
dada
DanUK
3 Guests Online
Today's B-Days
monstermetalhead
jetcitychica
marin
Front Page Options

Category:

Order:

Author:
Damsel Glass
Braingell Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottom Post Reply Favoured: 0
TOPIC: If - Else
#2243
WastedZombie (Admin)
Admin
Posts: 639
graph
User Offline Click here to see the profile of this user
If - Else 3 Years ago  
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
 
Report to moderator   Logged Logged  
 
Never stand between a dog and a fire hydrant!
  The administrator has disabled public write access.
#2245
WastedZombie (Admin)
Admin
Posts: 639
graph
User Offline Click here to see the profile of this user
Re:If - Else 3 Years ago  
For those of you who need a complete example to go by (that would probly be me!) here is my first one I wrote which you've probly read on the Home Page.

---

Not a registered member of Braingell yet? What are you waiting for...?



This is just a quick notification to those of you who are able to write frontpage news articles letting you know about the cool new MOS If - Else feature. You can read about it in the Forums here on Braingell.
Discuss this article on the forums. (0 posts)



This line holds a special message only I can read! Hehe!



Have fun everyone, and enjoy the new News article feature! I'm having a blast with it!

---

That is the whole news article... I wrote it in about the same time it took you to read it... nothing fancy.. and looking back I could have made more use of the else function. Oh well... I had fun, now let see you do it! Your turn! See how creatively you can use it! Well, actually if you're really creative, I may not see! Hehe!
 
Report to moderator   Logged Logged  
 
Never stand between a dog and a fire hydrant!
  The administrator has disabled public write access.
#2247
WastedZombie (Admin)
Admin
Posts: 639
graph
User Offline Click here to see the profile of this user
Re:If - Else 3 Years ago  
PS. You don't have to start the mosif at the begining of a new line for it to work, you can add it in anywhere you need it... just thought I should mention that. Just don't forget to endif at the right place.
 
Report to moderator   Logged Logged  
 
Never stand between a dog and a fire hydrant!
  The administrator has disabled public write access.
#2251
lucretia (User)
Light Weight
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
Re:If - Else 3 Years ago  
good luck
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#2262
vBoogieMan (Admin)
Admin
Posts: 593
graphgraph
User Offline Click here to see the profile of this user
Re:If - Else 3 Years ago  


I know... it doesn't work in forums

Now another cool feature I need to learn.
 
Report to moderator   Logged Logged  
 
  The administrator has disabled public write access.
#2273
Spikae (User)
Rookie
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
Re:If - Else 3 Years ago  
Mad mad stuffs.. I failed with it..
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
Braingell - Now Playing
metallica
Now Playing:
Metallica
Whiplash
Current DJ:
outkast

Info:
Old school thrash and core
Schedule:
Saturday 9am to 12 pm (EST)
Recently Played:
metallica
Metallica
(Anethesia) - Pulling T...
van_halen
Van Halen
Panama
vanhalen
Vanhalen
Unchained
Get your official BRAINGELL RADIO gear here!


1 Braingell Radio Seeks Webmaster
stonedrockgod says: hm.. hope everythings alright.. should we form ...
2 Feds arrest man accused of posting unreleased Guns N' Roses songs*
stonedrockgod says: everyone hates a bootlegger, still everyone loves ...
3 Braingell Radio Seeks Webmaster
vBoogieMan says: Not sure what is up with WZ. He hasn't logged into...
4 Braingell Radio Seeks Webmaster
stonedrockgod says: WZ can't do it anymore? bummer man..
5 Lamb of God's "Laid to Rest" Covered Live by Gym Class Heroes
Alucard_88 says: zomg freaks couldn't even listen the whole thing...
6 8 Year Old Blues Guitar Prodigy ordered to stop playing in bars
stonedrockgod says: your kids over 12.. I think it's under 12 that the...
7 8 Year Old Blues Guitar Prodigy ordered to stop playing in bars
zigzaggirl420 says: That is just wrong...let the kid play! My kid and ...
8 GUNS N' ROSES: 'Appetite For Destruction' To Be Re-Released On Vinyl With Original Artwork
stonedrockgod says: Wow, did Chinese Democracy do that badly?
9 Lamb of God's "Laid to Rest" Covered Live by Gym Class Heroes
stonedrockgod says: *youtube favorites*
10 Lamb of God's "Laid to Rest" Covered Live by Gym Class Heroes
zigzaggirl420 says: What a bunch of creeps! They couldn't cover the wh...
ScoreAuthorRead Articles

627 - WastedZombie - [277 Articles]
613 - berube - [67 Articles]
531 - CrazyIvan - [245 Articles]
489 - SongEmotions - [9 Articles]
446 - vBoogieMan - [109 Articles]
415 - Hobs - [7 Articles]
328 - Lichtor - [12 Articles]
321 - christibro40 - [16 Articles]
309 - Mega - [12 Articles]
302 - stonedrockgod - [12 Articles]

Authors with less than 5 articles or with their latest article older than 30 days aren't rated.
Scores are based on the amount of articles posted and the amount of readers averaged per article.



Recent Forum Posts
 WickedAngel's
 >Wicked Jokes 
    by WickedAngel in Humor
    YESTERDAY at 10:23 Reply# 108 
 berube's
 >xbox live 
    by berube in berube
    4 days ago at 21:17 Reply# 2 
 vBoogieMan's
 >xbox live 
    by vBoogieMan in berube
    5 days ago at 07:14 Reply# 1 
 CrazyIvan's
 !Braingell Unsigned Playlist... 
    by CrazyIvan in CrazyIvan
    6 days ago at 20:09 
 Shayla's
 >Torture 
    by Shayla in General Forum
    7 days ago at 17:42 Reply# 6 
 berube's
:)xbox live 
    by berube in berube
    7 days ago at 12:45 
 Insomnia's
 >Torture 
    by Insomnia in General Forum
    8 days ago at 08:35 Reply# 5 
 stonedrockgod's
 >Smart people 
    by stonedrockgod in