MyBB Community Forums

Full Version: Vars
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want to play a little with code;
Is there any list containing how to get data?
I mean like that:
$user['uid']
What data can I get in this way for forums, threads, posts, user and ETC..?
Is there an organized list?
$mybb->user['X']

Replace X with anything in the users table. for example $mybb->user['uid'], $mybb->user['email'],$mybb->user['username'] etc.
Is there a doc of the user table's scheme?
But it depend on where you want to use this thing. e.g. If you want to show threads, posts to the end user's screen, you have to use the syntax like;

$mybb->user['X']

If you want to put this thing in Profile page then use;

$memprofile['X']

If you want to put this in postbit or showthread, then;

$post['X']