The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
|||
|
|||
bbuserinfo Question
Hi all
Was wondering how I could easily access the $bbuserinfo array from a non-VB page. I have created a script that will practically re-create it, but it only works if the user tells vB to remember them. Anyone have any ideas for either changing this code or accessing bbuserinfo? Code:
<?php if ($_COOKIE['bbuserid']) { $db = new gt_mysql; $v = $db->db_selectData("SELECT * FROM user WHERE userid = '$bbuserid'"); $db->db_close; $r = mysql_fetch_row($v); $userInfo['id'] = $r[0]; $userInfo['groupid'] = $r[1]; $userInfo['name'] = $r[4]; $userInfo['email'] = $r[7]; $userInfo['join'] = date("m/d/Y", $r[17]); return $userInfo; } ?> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|