Different content for different usergroups in anycontent.php Different content for different usergroups in anycontent.php
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Different content for different usergroups in anycontent.php

Started by peng12341, August 24, 2006, 01:29:41 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

peng12341

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

Sami

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 ....
‍I don't answer to PM with support question
Please post your issue to related board

peng12341

Thank you very much.
Thats exactly what I needed!

*thumbs up*