MyBB Community Forums

Full Version: Link with MyBB users
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I wish to create a little website where my MyBB users can be identified with theirs MyBB ID.
This directory website is located into the MyBB root directory.

Why can i retrieve the MyBB users identification ?
For example, if i want to view my identification on new page how do i have to write ?
<?php
include_once "mysql_connection.php";
echo $the_data_including_my_identification;
?>

Thanks all for your help !
<?php
// GLOBALS
define("IN_MYBB", 1);
require_once "./global.php";
// User Info Ex.
$uid = $mybb->user['uid'];
$username = $mybb->user['username'];
$usergroup = $mybb->user['usergroup'];
// And so on ...
?>
Great Big Grin !

Thank you !

So i just put my files in Mybb root but it is not a big problem.