Support Spidean |
Do you like our FREE downloads? How about the FREE support for the FREE downloads? Please help us out and donate any amount! It's fast and easy through PayPal.
|
scetter
Newbie   Posts: 4 Registered: 8/13/2004 Status: Offline
|
posted on 10/14/2004 at 08:56 AM |
When writing your own commands,
There are only options to for admin, all, anonomous, and logged in. The
only actual user group that is admin.
I was wondering if there was a way to only show the command for a specific
group. I have a group called users which is the logged in thingy but I also
would like to not show this command for a loggedin group called club. Can
you make commands for groups?
Some help would be greatly appreciated. |
| |
| |
scetter
Newbie   Posts: 4 Registered: 8/13/2004 Status: Offline
|
posted on 11/13/2004 at 11:09 AM |
I figured it out myself.
Ithought I would post it here incase someone else is looking for a way to
do this.
The only problem with this custom command is you would have to type in each
username from that particular group.
_____________ code---
Assuming you have chosen loggedin for the custom command?
$name=pnUserGetVar('uname');
if ($name == ('the users actual uname'))
echo" " // you can put whatever you want in the quotes or leave it blank
and it won't show anything
else
echo "the code you want everyone else but that user to see";
______________________
I set this up because I wanted all users of a certain group to not see this
popin ad.
Just add aditional "if statements for each user in that group."
____________________________- |
| |
|
|
|
|