Question Export Likes to Xenforo?

Status
Not open for further replies.
Hi there,

At this time there's no way to do that, as it requires mapping old post IDs to new content IDs, is there a way to detect this in an imported xenForo database just now?
 
Could you please double-check to make sure? If they are, I can write a SQL query to import the likes for you :)
 
Try this, remember to backup your likes table first:
Code:
INSERT INTO xf_liked_content
(content_type, content_id, like_user_id, like_date, content_user_id)
SELECT contenttype, contentid, userid, dateline, receiveduserid FROM dbtech_thanks_entry WHERE contenttype = 'post' AND varname = 'likes'
 
Hey... That worked. I had to make a minor tweak, but it's all good.

Code:
INSERT IGNORE INTO xenforo.xf_liked_content (content_type, content_id, like_user_id, like_date, content_user_id) SELECT contenttype, contentid, userid, dateline, receiveduserid FROM forum.dbtech_thanks_entry WHERE contenttype = 'post' AND varname = 'likes'

Then I ran the rebuildlikes.php script from here. Is there a way to rebuild post/profile-post like caches? | XenForo Communit

Thanks for the help!!
 
Status
Not open for further replies.

Legacy Advanced Post Thanks / Like

vBulletin 3.8.x vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
4,024
Customer rating
5.00 star(s) 1 ratings
Back
Top