Some bug fixes:
find:
PHP Code:
function show($userinfo) {
global $thread, $post, $forum, $event, $gotforum, $hideprivateforums, $bbuserinfo, $timeformat, $displayemails, $enablepms, $bbtitle, $usergroupdef, $numberguests;
If it doesnt have $DB_site in global then add it such as:
PHP Code:
function show($userinfo) {
global $thread, $post, $forum, $event, $gotforum, $hideprivateforums, $bbuserinfo, $timeformat, $displayemails, $enablepms, $bbtitle, $usergroupdef, $numberguests,$DB_site;
then find:
PHP Code:
case 'mail':
$user = explode('userid=', $userinfo[location]);
if (intval($user[1])) {
$user = $DB_site->query_first("SELECT username FROM user WHERE userid = ".intval($user[1]));
and change it to:
PHP Code:
case 'mail':
$user = explode('userid=', $userinfo[location]);
if (intval($user[1])) {
$user = $DB_site->query_first("SELECT username,userid FROM user WHERE userid = ".intval($user[1]));
now find:
PHP Code:
case 'getinfo':
$userid = explode('userid=', $userinfo[location]);
$user = $DB_site->query_first("SELECT username FROM user WHERE userid = ".intval($userid[1]));
and change it to:
PHP Code:
case 'getinfo':
$userid = explode('userid=', $userinfo[location]);
$user = $DB_site->query_first("SELECT username,userid FROM user WHERE userid = ".intval($userid[1]));
Now every thing should work correctly.
Im also using vbulletin 2.2.9