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

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

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*