• 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

Joshua

Active member
#1
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?
 

Joshua

Active member
#3
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
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.
 

Jake Bunce

XenForo moderator
Staff member
#5
But I need to make clickable all links.
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.

And I need to replace all [youtube] and media tags from mybb to xenforo, this is very difficult to me.
I need an example of an old [youtube] tag from MyBB.
 
#6
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
 

Jake Bunce

XenForo moderator
Staff member
#9
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
Use this addon:

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

Quick Find: [video=youtube

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

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



Quick Find: [video=youtube

[b]Regular expression:[/b] #\[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

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

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



Quick Find: [video=youtube

[b]Regular expression:[/b] #\[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]