![]() |
check usergroup of user
how do i check what usergroup a user is a member of?
|
<if condition="is_member_of($bbuserinfo, 5,6,7)">
|
thank you very much.
--------------- Added [DATE]1207102264[/DATE] at [TIME]1207102264[/TIME] --------------- need a bit of help please.. keep getting the error: Parse error: syntax error, unexpected '<' in /home/slothdog/domains/weedtracker.com/public_html/forums/profile.php(842) : eval()'d code on line 9 I guess i cant put conditionals into a plugin? I want to check the usergroup and if they are in certain usergroups move them to a secondary group and if they are in other groups move them to a primary usergroup if they answer 'yes' to a custom profile field. and if they answer 'no' to move them back to a different primary usergroup. i hacked this from the primary and secondary usergoup based on profile field plugin. i want to combine the two into a single plugin. this is what ive come up with (im not much of a coder these days): Code:
// Get the value for field 9 |
I didn't know you were using it in php. I thought it was a template. It should be like this then:
Code:
// Get the value for field 9 |
oh duh i should have known that! vbulletin confuses me so much sometimes on when to use templates and when to use php. thanks for the help.
|
All times are GMT. The time now is 03:55 PM. |
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:
|