| The Arcive of vBulletin Modifications Site. | |
| 
			 
			#1  
			
			
			
			
			
		 | ||||
| 
 | ||||
|  get usergroupid value 
			
			I use this code in external vbulletin page : PHP Code: 
			but for another users that usergroup is 20 : display 1 ( unregistered) user is logged in forum are there another way for get usergroupid? | 
| 
			 
			#2  
			
			
			
			
			
		 | |||
| 
 | |||
|   Code: require_once('./global.php');
$username = mysql_real_escape_string($vbulletin->userinfo['username']);
$usergroupfield = $vbulletin->userinfo[usergroupid]; | 
| 
			 
			#3  
			
			
			
			
			
		 | ||||
| 
 | ||||
|   Quote: 
 I create a file test.php and insert that codes so , my usergroup is 6 and when i run this page show 6 but for other users for example moderators and registered group display 1 1 is for unregistered group this file can not detect other peoples just work for me | 
| 
			 
			#4  
			
			
			
			
			
		 | |||
| 
 | |||
|   
			
			If it's displaying 1 then it's probably seeing them as not logged in. I see that you're using chdir(), so I guess this is a script that's outside the forum directory? You might need to change your setting for "Path to Save Cookies" to '/'.
		 | 
| 
			 
			#5  
			
			
			
			
			
		 | ||||
| 
 | ||||
|   Quote: 
 other folder that i want to use forum cookie is : site.com/admin cookie path setting is on : / domain cookie setting is on : (space) What value i need to set to work cookies on site.com/admin ? | 
|  | 
| 
 | 
 | 
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
| 
 | |
|  More Information | |
| Template Usage: 
 Phrase Groups Available: 
 | Included Files: 
 Hooks Called: 
 |