fraze |
|
---|---|
Hi Guys
I'd like to be able to show a logic block to certain groups. is there any easy way I can do this?? is the following correct? <!-- IF {PHP.g} >= 6 -->
|
Twiebie |
|
---|---|
Try this, Fraze: <!-- IF {PHP.usr.maingrp} == 6 --> Your block here <!-- ENDIF -->
|
fraze |
|
---|---|
it doesnt appear to work unfortunately. is there a list of the php.usr.x tags anywhere? Added 1 minutes later: scratch that - working now :) |
Twiebie |
|
---|---|
If you want to allow multiple groups to access whatever is in the block you can use something like this: <!-- IF {PHP.usr.maingrp} == 6 OR {PHP.usr.maingrp} == 7 --> Your block here <!-- ENDIF --> |
fraze |
|
---|---|
i put in <!-- IF {PHP.usr.maingrp} >= 5 --> so any user with a maingroup number higher than this can see the block. essentially on my site it allows only admins (group 5) and custom usergroups (6+) to see the block.
thanks for the help :) |