View Full Version : Total comments??
08-23-2006, 07:28 AM
Simple question about comments.
Is there a code or tag for showing the total amount of comments for all pictures?
And for just one picture?
08-23-2006, 02:20 PM
for one: <IMAGE_COMMENTS_NUMBER>
I'm not sure there is one for all of them, but you could do a for loop and find it.
08-23-2006, 02:28 PM
I'm going to guess that you want something like this
// count comments!
$commentnumb = sql_array("select count(*) as count from ".$pixelpost_db_prefix."comments");
taken from /admin/comments.php
vBulletin® v3.7.3, Copyright ©2000-2013, Jelsoft Enterprises Ltd.