Download Resized question Download Resized question
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Download Resized question

Started by Hot Rides, June 04, 2008, 05:30:22 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Hot Rides

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

Stramm

tried something like that?

if (USER_GROUP != 'my_group' || USER_GROUP != 'my_other_group' )  return $pic_data;

Hot Rides

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

Stramm

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

Hot Rides

i get this displayed, see attachment

Stramm

weird... when I have a bridged test environment again, I'll have a look