| The Arcive of vBulletin Modifications Site. | |
| 
			 
			#1  
			
			
			
			
			
		 | |||
| 
 | |||
|  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  --------------- 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.....   | 
| 
			 
			#2  
			
			
			
			
			
		 | |||
| 
 | |||
|   
			
			I think you want {vb:raw bbuserinfo.usergroupid}.
		 | 
| 
			 
			#3  
			
			
			
			
			
		 | |||
| 
 | |||
|   
			
			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!!! | 
| 
			 
			#4  
			
			
			
			
			
		 | |||
| 
 | |||
|   
			
			I think that would be $vbulletin->userinfo[usergroupid]
		 | 
| 
			 
			#5  
			
			
			
			
			
		 | |||
| 
 | |||
|   
			
			ffsssssssssssssssssss..... dummy of the century goes toooooo................   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 | 
|  | 
| 
 | 
 | 
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
| 
 | |
|  More Information | |
| Template Usage: 
 Phrase Groups Available: 
 | Included Files: 
 Hooks Called: 
 |