twollert Active member Dec 4, 2011 #1 After the import from vBulletin to XenForo a lot of postings contain video code like that: Code: [video=youtube;DV5ZyyCU0_g]http://www.youtube.com/watch?v=DV5ZyyCU0_g[/video] How can I change that back to embedded clips?
After the import from vBulletin to XenForo a lot of postings contain video code like that: Code: [video=youtube;DV5ZyyCU0_g]http://www.youtube.com/watch?v=DV5ZyyCU0_g[/video] How can I change that back to embedded clips?
Jake Bunce Well-known member Dec 5, 2011 #2 Use Kier's addon: http://xenforo.com/community/threads/post-content-find-replace.6548/ Here is the code you need to use with this addon: Quick Find: [video Regular Expression: #\[video=youtube;([^\]]+)\]([^\[]+)\[/video\]#siU Replacement String: [media=youtube]\1[/media] Here is a picture: Upvote 0 Downvote
Use Kier's addon: http://xenforo.com/community/threads/post-content-find-replace.6548/ Here is the code you need to use with this addon: Quick Find: [video Regular Expression: #\[video=youtube;([^\]]+)\]([^\[]+)\[/video\]#siU Replacement String: [media=youtube]\1[/media] Here is a picture:
twollert Active member Dec 5, 2011 #3 Jake Bunce said: Here is the code you need to use with this addon: Click to expand... Thanks, Jake! I tried that. When the "Save Changes" box is unchecked everything looks fine. I get 914 results that match. But when I check the box and proceed I get the error: "Please enter a message with no more than 5 pieces of media." Upvote 0 Downvote
Jake Bunce said: Here is the code you need to use with this addon: Click to expand... Thanks, Jake! I tried that. When the "Save Changes" box is unchecked everything looks fine. I get 914 results that match. But when I check the box and proceed I get the error: "Please enter a message with no more than 5 pieces of media."
Paul B XenForo moderator Staff member Dec 5, 2011 #4 In which case you need to increase the maximum number of media embeds in Options -> Messages. Upvote 0 Downvote
IcEWoLF Well-known member Mar 3, 2013 #6 Jake Bunce said: Use Kier's addon: http://xenforo.com/community/threads/post-content-find-replace.6548/ Here is the code you need to use with this addon: Quick Find: [video Regular Expression: #\[video=youtube;([^\]]+)\]([^\[]+)\[/video\]#siU Replacement String: [media=youtube]\1[/media] Here is a picture: View attachment 22162 Click to expand... Awesome, thanks Jake! Upvote 0 Downvote
Jake Bunce said: Use Kier's addon: http://xenforo.com/community/threads/post-content-find-replace.6548/ Here is the code you need to use with this addon: Quick Find: [video Regular Expression: #\[video=youtube;([^\]]+)\]([^\[]+)\[/video\]#siU Replacement String: [media=youtube]\1[/media] Here is a picture: View attachment 22162 Click to expand... Awesome, thanks Jake!
CoZmicShReddeR Well-known member Feb 7, 2018 #7 This is old but saved me a bunch of time! I didn't see this when I was using XF1 now I am on XF2 and thought I was out of luck but thankfully @Chris D Made it availible for XF2 https://xenforo.com/community/resources/categories/xenforo-2.42/ Thanks @Jake Bunce for posting this fix! Upvote 0 Downvote
This is old but saved me a bunch of time! I didn't see this when I was using XF1 now I am on XF2 and thought I was out of luck but thankfully @Chris D Made it availible for XF2 https://xenforo.com/community/resources/categories/xenforo-2.42/ Thanks @Jake Bunce for posting this fix!