coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 permissions => Topic started by: peng12341 on August 24, 2006, 01:29:41 PM

Title: Different content for different usergroups in anycontent.php
Post by: peng12341 on August 24, 2006, 01:29:41 PM
Hi.
How can I show users with different usergroups different content in the anycontent.php-file.
Is it possible to get the usergroups for the current user?

Thanks in advance,
peng12341
Title: Re: Different content for different usergroups in anycontent.php
Post by: Sami on August 24, 2006, 02:27:57 PM
something like this could work fro you :

if (USER_GROUP=='administrator'){
//content for administrator
}else if (USER_GROUP=='Registred'){
//content for registered group
}

USER_GROUP variable has the title of group
also you can use case statment and also you can first query xxx_categories table and find all categories title ....
Title: Re: Different content for different usergroups in anycontent.php
Post by: peng12341 on August 24, 2006, 05:42:43 PM
Thank you very much.
Thats exactly what I needed!

*thumbs up*