PDA

View Full Version : how to find thread poster post count?


al3bed
03-12-2009, 11:22 PM
hello,

I think this can be done only by query but if there is another way please tell me!

I tried this:
$getposterposts = $vbulletin->db->query_read(" SELECT posts FROM " . TABLE_PREFIX . "user
LEFT JOIN " . TABLE_PREFIX . "thread ON (user.userid = thread.postuserid)");
$getposts = $db->fetch_array($getposterposts)
$getposts[posts] = vb_number_format($getposts[posts]);

if ($getposts[posts] >= $minmum_posts){
/*statments*/}


but I get an error

help please :)

ZomgStuff
03-12-2009, 11:38 PM
What are you trying to do with this value? Templates already have a bbcode for this.

al3bed
03-13-2009, 12:00 AM
I want to use it with plugin. in ACP options admin can choose how many posts poster - (person who write the thread) - should reach to show someting :)

so I need this value to compare it with option in my product