MyBB Community Forums

Full Version: Plugin noob
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm just wondering how I access globals such as user name, email, post count and everything like that. I'm a complete noob, so I might have more questions.

Also, is there any documentation on this, or something like that?

function something()
    global $mybb;
    echo $mybb->user['username'];

    echo $mybb->user['email'];

    echo $mybb->user['postnum'];

Thanks Nathan Malcolm. Is there any documentation anywhere for this?
Thanks Yaldaram, that's helpful. Smile