vFranky Active member Nov 28, 2019 #1 Hello, our community wants to have the information how much "likes" each users got in 2019. Is there a simple way to get theses numbers? Perhaps an addon? Thank you in advance! Kind regards, Frank
Hello, our community wants to have the information how much "likes" each users got in 2019. Is there a simple way to get theses numbers? Perhaps an addon? Thank you in advance! Kind regards, Frank
K Kirby Well-known member Nov 28, 2019 #2 For 2019 in UTC+1: Code: SELECT COUNT(*) AS likes, xf_user.user_id, xf_user.username FROM xf_liked_content INNER JOIN xf_user ON (xf_user.user_id = xf_liked_content.content_user_id) WHERE xf_liked_content.like_date > 1546297200 GROUP BY xf_user.user_id ORDER BY likes DESC Upvote 0 Downvote
For 2019 in UTC+1: Code: SELECT COUNT(*) AS likes, xf_user.user_id, xf_user.username FROM xf_liked_content INNER JOIN xf_user ON (xf_user.user_id = xf_liked_content.content_user_id) WHERE xf_liked_content.like_date > 1546297200 GROUP BY xf_user.user_id ORDER BY likes DESC
vFranky Active member Nov 28, 2019 #3 Thank you, but get an error in PHPmyAdmin => #1146 - Table 'client9301_db2.xf_liked_content' doesn't exist The wrong tool? Upvote 0 Downvote
Thank you, but get an error in PHPmyAdmin => #1146 - Table 'client9301_db2.xf_liked_content' doesn't exist The wrong tool?
K Kirby Well-known member Nov 28, 2019 #4 Are you 100% sure that client9301_db2 is a XF 1.5 database? Edit Just to be extra safe (though this was unnecessary) I've tested this in 6 different XF 1.5 DBs - no problems Last edited: Nov 28, 2019 Upvote 0 Downvote
Are you 100% sure that client9301_db2 is a XF 1.5 database? Edit Just to be extra safe (though this was unnecessary) I've tested this in 6 different XF 1.5 DBs - no problems
vFranky Active member Nov 28, 2019 #5 Kirby said: Are you 100% sure that client9301_db2 is a XF 1.5 database? Click to expand... You are right, wrong database. Sorry. Now it works! Thank you! Upvote 0 Downvote
Kirby said: Are you 100% sure that client9301_db2 is a XF 1.5 database? Click to expand... You are right, wrong database. Sorry. Now it works! Thank you!