I have the mod set up to work with only registered users, but I really want to limit it to certain user groups but I can't for the life of me figure out the code ???
right now im using a simple if statement
if(!USER_ID) return $pic_data;
thanks in advance
tried something like that?
if (USER_GROUP != 'my_group' || USER_GROUP != 'my_other_group' ) return $pic_data;
just tried it, it doesnt work because its a bridged install, it has to call up the smf users, im searching for the correct way unless you have an idea
shouldn't make a difference... the constant USER_GROUP is defined in the bridge file and holds the users group (as the name indicates).
Logged in as admin the constant has stored eg. 'Administrators' (when using coppermine bridge file).
Do an
echo "User Group: ".USER_GROUP;
somewhere to check
i get this displayed, see attachment
weird... when I have a bridged test environment again, I'll have a look