1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 manually import mybb likes

Discussion in 'Installation, Upgrade, and Import Support' started by Jake Bunce, Oct 15, 2014.

  1. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    I am posting this here for reference.

    This assumes you enabled the option during the import to preserve the source ids.

    The mybb_g33k_thankyoulike_thankyoulike table might be from an addon for MyBB. But if you have that table then you can import the likes using this query:

    INSERT INTO XFdbname.`xf_liked_content` (content_type, content_id, like_user_id, like_date, content_user_id)
    	SELECT 'post', vl.pid, vl.uid, vl.dateline, vl.puid
            FROM MyBBdbname.`mybb_g33k_thankyoulike_thankyoulike` AS vl
            content_id = VALUES(content_id);
    Then run this script:

    Dannymh, maszd, potito and 1 other person like this.

Share This Page