Quote:
Originally Posted by Rapy Zeon
what changes would be nessary for multiple groups and or individuals?
eg 2 groups + 2 individuals
|
Change
PHP Code:
if ($post['usergroupid'] == 6) {
To
PHP Code:
if (in_array($post['usergroupid'], array(X,X))) {
Change X to your usergroupids you'd like to be able post HTML
If you'd like it for just cerrtain users.
Change:
PHP Code:
if ($post['usergroupid'] == 6) {
To
PHP Code:
if (in_array($post['userid'], array(X,X))) {
Change the X's to the userid.
I've tested it and it works, but I suggest you test it first before actually making it live.

. I am unsure how to make it so you can have both a usergroup and a certain member to be able to use it. But I will play around with it some more later on today and see what I can come up with.
And BarHopper, this is not my creation to release.
Before someone says why not use is_member_of, I tried it and couldn't figure it out.