2013-02-20, 12:40 AM
I am attempting to pass MyBB username and uid to pro chat rooms for automatic login.
Any idea where I'm going wrong?
Any idea where I'm going wrong?
define("IN_MYBB", 1);
require '../forums/global.php';
if($mybb->user['uid'] > 0)
{
$userid = $mybb->user['uid'];
$user = get_user($uid);
$name = $user['username'];
}
// Enter your CMS Global values below for Pro Chat Rooms
define('C_CUSTOM_USERNAME', $name); // username
define('C_CUSTOM_USERID', $userid); // userid