By User on Friday, 04 December 2020
Posted in General Issues
Replies 3
Likes 0
Views 503
Votes 0
Hello. There is no statistic in backend. So I don't know How much photos on my site Is it possible to know it? May be with database in PhpMyAdmin? Total photos (from members and in clusters). Thanks.
Hey there,

You can try to run the following SQL query to check it out:

For cluster(group, event, page)

SELECT COUNT(1) FROM `jos_social_photos` WHERE `type` != 'user';


For a user --> replace 477 to the user id that you want

SELECT COUNT(1) FROM `jos_social_photos` WHERE `user_id` = 477;


Take note that you need to replace 'jos' with your table prefix before you run it.
·
Friday, 04 December 2020 10:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello.
For cluster(group, event, page)

SELECT COUNT(1) FROM `jos_social_photos` WHERE `type` != 'user';
This one display 27977 photos. In group, event, page?


For a user --> replace 477 to the user id that you want

SELECT COUNT(1) FROM `jos_social_photos` WHERE `user_id` = 477;
But how to see all users photos (not one)?
Thanks.

I want to display on site homepage statistic that "There is 90 000+ photos total on site". Thanks.
·
Friday, 04 December 2020 13:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

This one display 27977 photos. In group, event, page?


It includes all group, event and page.

But how to see all users photos (not one)?


You can try to run the following SQL query to check it out:


SELECT COUNT(1) FROM `jos_social_photos` WHERE `type` = 'user';
·
Friday, 04 December 2020 19:29
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post