MyBB Community Forums

Full Version: User variable
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Where can I find a list of available user variables. for example mybb->user[' *need what goes here' ]; I'm mainly looking for rank, but I'd like to see all of them. I would also like to know the user id number so that I can link their profile.
1. Create a new file with the following code:

<?php

define("IN_MYBB", 1);
require_once "./global.php";

echo "<pre>";
print_r($mybb);
echo "</pre>";

?>

2. Upload it to the root of your MyBB installation.

3. Visit it in your web browser.
I can tell that I have been on the internet way too much when I expect their to be question marks somewhere in that list.
^ hmm., could you elaborate that ...
(2011-08-31, 01:15 PM)ranjani Wrote: [ -> ]^ hmm., could you elaborate that ...

I'm used to seeing

1.) do this

2.) then do this

3.) ???

4.) profit
That's exactly what I told you.

What don't you understand?
well, the profit depends on what you understand from the output given by that code !!
I understand what you told me Favious, I was just making a joke on the over usage of memes in popular internet culture. Thank you, I have the variables I need.
Yeah, I'm familiar with the meme. I just thought you still weren't understanding me. :p