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; } ?> |
#2
|
|||
|
|||
You can get $bbuserinfo by calling global.php
PHP Code:
PHP Code:
|
#3
|
|||
|
|||
[QUOTE=Akex]You can get $bbuserinfo by calling global.php
PHP Code:
I've been testing a content management application which bolts on to vB on a dedicated server here. When I included the vB files and hit it with about 7,000 requests, it brought the server load from 0.00 to 18.57. If I manually added the $bbuserinfo array without loading the vBulletin files, it was running around 1.5. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|