! History
{MakeToc}
I originally named this Plugin ))HideText(( - and then my sense of humor got a hold of both of us - and we took a trip to never-never land. What kind of people hide things in plain sight? Well - __Spy's Do__. And the idea gave itself a new name __))SpyText((__ while I fell off my chair laughing about it. If you don't see anything humorious in all of this - take a l look at the code - there's a Spy on nearly every line.

! Summary - So What does it Do?
))SpyText(( Hides text (or anything else) so that only specific people (Spy(s)) or Groups (Agency(s)) can see them. It works the old fashioned way - by encasing the data between a pair of Code Blocks - Like This
{SpyText}Data{SpyText}
The data can extend as far as you like - and will be displayed in a div box

! Parameters - How Do I Call It?
~np~{SPYTEXT spy= agency= sender= to= hidden= title= width= icon= alert= }~/np~
* __spy__ A list of UserName's who will be able to see your hidden message
* __agency__ A list of GroupsName's that will be able to see your hidden message
* __sender__ A list of UserName's who claim responsibility for sending the message?
* __to__ An Extra Box showing the spy/agency/sender
* __hidden__ When Set / The Message is in a DropDown Box with only an Icon or Title Bar showing.
* __title__ A replacement for the Default Title
* __width__ Provides a little control over the appearance of the Title Bar
* __icon__ Used as a replacement to the Title Bar
* __alert__ Wake that dummy up with an Alert Box

! Testing
The following are the tests I used while creating this plugin

))SpyText(( / Without Data Nothing will be Displayed
{SPYTEXT }{SPYTEXT}
__NOTE__ The same thing applies if
The current user is not on the list of users(spy)
The current user is not in the list of the groups(agency)

))SpyText(( / When No Parameters are set - only the data box is displayed
{SPYTEXT }Data{SPYTEXT}

By the way - this is kind of Cute - Try Looking at this page without being logged in
None of the ))SpyText(( messages are visible to an Anonymous users

That wouldn't be worth spit if it couldn't be reversed
By adding Anonymous to the list of groups(agency) - Anonymous users can now see the message
The problem is that EVERY Flipping User can also see it - and because of the way we do Groups
I don't see an easy way around that
))SpyText(( / With agency='Anonymous'
{SPYTEXT agency='Anonymous' }Data{SPYTEXT}

So Lets Play a Buildup Game - Each Call Adds to the Original

))SpyText(( w/ to='TRUE'
__Note__ The address box is not displayed because spy/agency/& sender are not defined - so there is nothing to put in it
{SPYTEXT to='TRUE' }Data{SPYTEXT}

))SpyText(( w/ spy='Spider|Xing|Confusus'
__Note__ Confusus is not a user so he should not be displayed
{SPYTEXT spy='Spider|Xing|Confusus' to='TRUE' }Data{SPYTEXT}

))SpyText(( w/ agency='Aardvarks|Testing'
__Note__ Aardvarks is not a Group so it should not be displayed
{SPYTEXT spy='Spider|Xing|Confusus' agency='Aardvarks|Testing' to='TRUE' }Data{SPYTEXT}

))SpyText(( w/ sender='StarRider|Wolffy|Aquarious'
__Note__ Aquarious is not a user so he should not be displayed
{SPYTEXT spy='Spider|Xing|Confusus' agency='Aardvarks|Testing' sender='StarRider|Wolffy|Aquarious' to='TRUE' }Data{SPYTEXT}

Testing the parameter to / Was True / Replacing a single Header
))SpyText(( w/ to='*|*|The Sexiest Spy Ever:'
{SPYTEXT spy='Spider|Xing|Confusus' agency='Aardvarks|Testing' sender='StarRider|Wolffy' to='*|*|The Sexiest Spy Ever:' }Data{SPYTEXT}

Testing the parameter to / Assigning all new Headers
))SpyText(( w/ to='To:|Groups:|From:'
{SPYTEXT spy='Spider|Xing|Confusus' agency='Aardvarks|Testing' sender='StarRider|Wolffy' to='To:|Groups:|From:' }Data{SPYTEXT}


Testing the parameter to / Not Assigning Enough Headers
))SpyText(( w/ to='To:'
{SPYTEXT spy='Spider|Xing|Confusus' agency='Aardvarks|Testing' sender='StarRider|Wolffy' to='To:' }Data{SPYTEXT}

-=::OK - Lets Get Hidden::=-
This Should display only the Title Bar - Everything else is collapsed
))SpyText(( Parameter List = spy='Spider|Xing' agency='Aardvarks|Testing' sender='StarRider|Wolffy' hidden='TRUE'
{SPYTEXT spy='Spider|Xing' agency='Aardvarks|Testing' sender='StarRider|Wolffy' hidden='TRUE' }Data{SPYTEXT}

Added to=TRUE
))SpyText(( Parameter List = spy='Spider|Xing' agency='Aardvarks|Testing' sender='StarRider|Wolffy' hidden='TRUE' to='TRUE'
{SPYTEXT spy='Spider|Xing' agency='Aardvarks|Testing' sender='StarRider|Wolffy' hidden='TRUE' to='TRUE' }Data{SPYTEXT}

Added title='Aardvarks' & width='25'
))SpyText(( Parameter List = spy='Spider|Xing' agency='Aardvarks|Testing' sender='StarRider|Wolffy' hidden='TRUE' to='TRUE' title='Aardvarks' width='25'
{SPYTEXT spy='Spider|Xing' agency='Aardvarks|Testing' sender='StarRider|Wolffy' hidden='TRUE' to='TRUE' title='Aardvarks' width='25'}Data{SPYTEXT}

-=::OK - Lets Do Icons::=-
Starting Over - Added icon=TRUE
))SpyText(( Parameter List = spy='Spider|Xing' agency='Aardvarks|Testing' sender='StarRider|Wolffy' hidden='TRUE' to='TRUE' icon='TRUE'
{SPYTEXT spy='Spider|Xing' agency='Aardvarks|Testing' sender='StarRider|Wolffy' hidden='TRUE' to='TRUE' icon='TRUE' }Data{SPYTEXT}

An Icon can still be placed in the middle {SPYTEXT spy='Spider|Xing' agency='Aardvarks|Testing' sender='StarRider|Wolffy' hidden='TRUE' to='TRUE' icon='TRUE' }Data{SPYTEXT} of a line? Dosen't look too bad expanded either.

Changed icon to a URL
))SpyText(( Parameter List = spy='Spider|Xing' agency='Aardvarks|Testing' sender='StarRider|Wolffy' hidden='TRUE' to='TRUE' icon='http://www.bitweaver.org/liberty/icons/imagick_logo.jpg'
{SPYTEXT spy='Spider|Xing' agency='Aardvarks|Testing' sender='StarRider|Wolffy' hidden='TRUE' to='TRUE' icon='http://www.bitweaver.org/liberty/icons/imagick_logo.jpg' }Data{SPYTEXT}
Page History
Date/CommentUserIPVersion
11 Mar 2006 (16:53 UTC)
Lee LaMont Bell Jr.24.117.169.2415
Current • Source
Tarus Balog66.45.100.2233
View • Compare • Difference • Source
Lee LaMont Bell Jr.68.95.139.2162
View • Compare • Difference • Source
Lee LaMont Bell Jr.68.95.137.1231
View • Compare • Difference • Source