thenashy
Active member
I found a thread on here regarding bringing across out DB-Tech likes using the following:
There is also a likes rebuild file which I have run.
I am seeing the posts state the likes are there, but the users aren't being credited with it. My account for example shows 0 under my user details, but there are posts which are liked.
Any ideas?
Code:
INSERT INTO broncos_xenforo.`xf_liked_content` (content_type, content_id, like_user_id, like_date, content_user_id)
SELECT 'post', dbt.contentid, dbt.userid, dbt.dateline, post.userid
FROM broncos_bhqvb.`dbtech_thanks_entry` AS dbt
LEFT JOIN broncos_bhqvb.`post` AS post ON (post.postid = dbt.contentid)
ON DUPLICATE KEY UPDATE
content_id = VALUES(content_id);
There is also a likes rebuild file which I have run.
I am seeing the posts state the likes are there, but the users aren't being credited with it. My account for example shows 0 under my user details, but there are posts which are liked.
Any ideas?