MyBB Community Forums

Full Version: How do you get user info from a post?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm modifying the postbit and I want to get the user who posted's GID and postcount, so I can use it in a custom function I am hooking into the postbit. Smile
You want to get Poster's Usergroup ID ?
$post['usergroup'] // Poster's Usergroup

$post['postnum'] // Poster's Number of Posts
So I just put that in my function?

function check() {
    Echo $post['usergroup'];
    echo $post'postnum'];
    }
Should be

function check($post) {
   echo $post['foobar'];
}

if you're using the postbit hook Smile
Yes, you can use these. But let me know what exactly you want with these variables ?
(2011-05-10, 11:36 AM)euantor Wrote: [ -> ]Should be

function check($post) {
   echo $post['foobar'];
}

if you're using the postbit hook Smile

I thought so Smile

Thanks guys Big Grin