How do you get user info from a post?
#1
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
Reply
#2
You want to get Poster's Usergroup ID ?
$post['usergroup'] // Poster's Usergroup

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

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

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

if you're using the postbit hook Smile
Reply
#5
Yes, you can use these. But let me know what exactly you want with these variables ?
Reply
#6
(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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)