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

XF 1.3 MyBB Test Import Link and Attachment Issues

Discussion in 'Installation, Upgrade, and Import Support' started by Joshua, Apr 11, 2014.

  1. Joshua

    Joshua Active Member

    I have a fresh test import of a MyBB 1.6.x forum that shows attachments in posts like this:
    Code:
    [attachment=xxxxxx]
    And links are not clickable. Any ideas what could be causing this and how to remedy it?
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    I have a script to auto-hyperlink raw URLs using XF's own helper functions. I would prefer to run it myself if you want to give me FTP access.

    The attachment posting codes can probably be regexed using this tool:

    http://xenforo.com/community/resources/post-content-find-replace.1549/

    But I would want to verify that the ids are the same first. I can look at this too if you give me access.
     
  3. Joshua

    Joshua Active Member

    Thanks for the help, Jake. The IDs are the same. I think I ran into this same problem when you converted another MyBB site of mine.
    I'll see if the regex tool works on my test import.

    As for auto-hyperlinks, maybe I can have you run your script on the final import since it sounds like a sure thing once I'm ready for it to be done.
     
  4. potito

    potito Member

    I am in the same situation.
    I have been replaced all [attachment=xxx] with and works fine.

    But I need to make clickable all links.

    And I need to replace all [youtube] and media tags from mybb to xenforo, this is very difficult to me.

    Jake, you can help me to made clickable all links with your script?

    Thanks.
     
  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Hyperlinking URLs in posts is not so easily done. I tried to do this with regex once before but it didn't work well. You really need to use a proper parser to auto-link URLs. I have a script for this which I can run for you. But I would insist on running it myself. I can do this if you give me access to your server.

    I need an example of an old [youtube] tag from MyBB.
     
  6. potito

    potito Member

    Dear Jake, this is the most common youtube tags in my mybb forum:

    Code:
    [video=youtube]http://www.youtube.com/watch?v=krQ83ZlFQQs[/video]
    
    [video=youtube]http://www.youtube.com/watch?feature=player_detailpage&v=XuTpoAUp5aM[/video]
    
    [video=youtube]http://www.youtube.com/watch?v=IYzlVDlE72w&list=AL94UKMTqg-9CQFF3Epre-tJwBZnsFLLEL&feature=share&index=6[/video]
    
    [video=youtube]http://youtu.be/7mFDXNODNyc[/video]
    
    [youtube]y9ANOzmSKQg[/youtube]
    
    
    

    Tomorrow I will write you an private message with my FTP login and pw :D
    Thank you
     
  7. potito

    potito Member

    Another problem:
    The arrow of the quotes is missing. screenshot-by-nimbus.png
     
  8. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    The arrow only shows if the quote refers to a specific postid. Your imported quotes probably don't do this.
     
  9. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Use this addon:

    https://xenforo.com/community/resources/post-content-find-replace.1549/

    Quick Find: [video=youtube

    Regular expression: #\[video=youtube\]http://www\.youtube\.com/watch\?v=([a-zA-Z0-9_\-]+)\[/video\]#siU

    Replacement String: [media=youtube]\1[/media]



    Quick Find: [video=youtube

    Regular expression: #\[video=youtube\]http://www\.youtube\.com/watch\?feature=player_detailpage&v=([a-zA-Z0-9_\-]+)\[/video\]#siU

    Replacement String: [media=youtube]\1[/media]



    Quick Find: [video=youtube

    Regular expression: #\[video=youtube\]http://www\.youtube\.com/watch\?v=([a-zA-Z0-9_\-]+)&[^\[]+\[/video\]#siU

    Replacement String: [media=youtube]\1[/media]



    Quick Find: [video=youtube

    Regular expression: #\[video=youtube\]http://youtu\.be/([a-zA-Z0-9_\-]+)\[/video\]#siU

    Replacement String: [media=youtube]\1[/media]



    Quick Find: [youtube

    Regular expression: #\[youtube\]([a-zA-Z0-9_\-]+)\[/youtube\]#siU

    Replacement String: [media=youtube]\1[/media]
     
    potito likes this.
  10. potito

    potito Member

    Thank you I send to you 1 conversation with the data of my server :) if you like to running the script to make links clickable :)
    Thanks.
     

Share This Page