The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Contradicting post count
Hoping some of you great folk can assist me with this little problem I have.
We've added a profile popup to our forum for which we are calling the content from the mysql database which is working fine but it's causing a contradiction in the post count on postbit_legacy as it's including all the spam threads as well for which posts don't count. Is there anyway I can exclude these forum id's from the .php file so it only reads the correct postcount The code to grab the postcount.php is as follows; Code:
$grabposts = mysql_query("SELECT * FROM post WHERE userid = '" . $userid . "'"); $showposts = mysql_fetch_assoc($grabposts); $numposts = mysql_num_rows($grabposts); $postsamount = number_format($numposts); Thanks, JB |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|