![]() |
if($bbuserinfo['membergroupids'] == "") { How do i work this out?
Im still not to good with php, but to allow my staff to only see some pages on my site, i included global.php and all the other needed vb3 files now, and used:
<? if($bbuserinfo['usergroupid'] == "5") { ?> Content <? } ?> How can i change that so it searches membergroup id's also? I know there layed out in the Database with more then 1 id to a collumn so if a user was in 5 groups, there would be 5 ids How would i change this line: if($bbuserinfo['usergroupid'] == "5" OR $bbuserinfo['membergroupids'] == "5" OR $bbuserinfo['membergroupids'] == "6" OR $bbuserinfo['membergroupids'] == "7" OR $bbuserinfo['membergroupids'] == "9") { So it would work on people with more then 1 ID in membergroupids? |
Use is_member_of()
PHP Code:
HTML Code:
<if condition="is_member_of($bbuserinfo, 5)"> |
All times are GMT. The time now is 03:08 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|