Jake Bunce
Well-known member
I am posting this here for reference.
This assumes you enabled the option during the import to preserve the source ids.
If you use the "post thanks" addon in vB and you want to manually import those "thanks" as "likes" then run this query:
Then run this script:
https://xenforo.com/community/threa...t-profile-post-like-caches.42384/#post-457352
This assumes you enabled the option during the import to preserve the source ids.
If you use the "post thanks" addon in vB and you want to manually import those "thanks" as "likes" then run this query:
Rich (BB code):
INSERT INTO XFdbname.`xf_liked_content` (content_type, content_id, like_user_id, like_date, content_user_id)
SELECT 'post', vl.postid, vl.userid, vl.date, post.userid
FROM vBdbname.`post_thanks` AS vl
LEFT JOIN vBdbname.`post` AS post ON (post.postid = vl.postid)
ON DUPLICATE KEY UPDATE
content_id = VALUES(content_id);
Then run this script:
https://xenforo.com/community/threa...t-profile-post-like-caches.42384/#post-457352