Thread: Posts count
View Single Post
Old September 10th, 2007, 01:54 PM   #10 (permalink)
SHalliday
Member
Verified Customer
 
Join Date: Sep 2002
Location: Long Beach, CA
Posts: 157
Send a message via Yahoo to SHalliday
Quote:
Originally Posted by Zachariah View Post
I do not know about that.

- In the early days vBGallery counted images and posts as 1 value and added this to the forums post count located in the User table of vBulletin. The problems with this was anytime you wanted to get the total images or posts a user did you would have to run a query and count it from the gallery tables. Another problem many Admins were running into was if they did a "update counters" maintenance on post counts the data from the gallery was not updated.

Today the counts are in two rows in the same table that the forum post count is in (User table) as ppicount (image count) and pppcount (post count). This allows the gallery post and image count data to be obtained anytime a user's info is requested.

EX:
- Postbit templates
$post[ppicount]
$post[pppcount]

- Memberinfo (profile area)
$userinfo[ppicount]
$userinfo[pppcount]
Exactly! It would sure be nice if PhotoPost Pro, Classifieds and ReviewPost products vb integration features work exactly the same way!

Last edited by SHalliday; September 10th, 2007 at 02:13 PM.
SHalliday is offline   Reply With Quote