![]() |
usergroup variable?
Is there a built in variable that lets you pull the usergroup ID that a user is in??? I have some ideas to get around, but.. really ghetto.....
Would love to know if this var exists :eek: --------------- Added [DATE]1311647992[/DATE] at [TIME]1311647992[/TIME] --------------- <vb:if condition="$bbuserinfo['usergroupid'] == 6">Global Level: <input readonly="readonly" value="6" type="text" size="5" /></vb:if> <vb:if condition="$bbuserinfo['usergroupid'] == 7">Global Level: <input readonly="readonly" value="7" type="text" size="5" /></vb:if> <vb:if condition="$bbuserinfo['usergroupid'] == 5">Global Level: <input readonly="readonly" value="5" type="text" size="5" /></vb:if> <vb:if condition="$bbuserinfo['usergroupid'] == 9">Global Level: <input readonly="readonly" value="9" type="text" size="5" /></vb:if> I mean... REALLY.. ffs..... gotta be a better way tho..... :eek: |
I think you want {vb:raw bbuserinfo.usergroupid}.
|
awesome.. step two...
i'm trying to make a plugin mysql_query("UPDATE members SET global = $bbuserinfo['usergroupid'] WHERE username = '$usernamefield' ", $connection); what's the correct variable...... its driving me nuts!!! |
I think that would be $vbulletin->userinfo[usergroupid]
|
Quote:
gawsh, thanks! --------------- Added [DATE]1311649557[/DATE] at [TIME]1311649557[/TIME] --------------- I also got around it by putting it in an input field and making it update in my database heh..... both work swell tho |
All times are GMT. The time now is 07:48 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:
|