Link with MyBB users
#1
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 !
Reply
#2
<?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 ...
?>
Reply
#3
Great Big Grin !

Thank you !

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


Forum Jump:


Users browsing this thread: 1 Guest(s)