No the url is not linked, this is what it produces. (Just like youtube videos)does your post look like this with the url linked or notView attachment 22965
Lemme know and I will give it a try.
[video=vimeo;20759609]http://vimeo.com/20759609[/video]
[media=vimeo]20759609[/media]
I was thinking the same thing, at the very least converting vB4 links.Should there be a list of links ?
and what is needed to convert them ?
I have a test install with my vB4 database imported, it's not currently live. However I'd prefer having the expressions ready before I DO upgrade/migrate the live site.Have you already setup a xenforo install and imported your db and are using this addon to replace post content...or are you trying to replace eveything ahead of time...I am a little confused because I see the screenshot and I see that it is not xenforo.
[video=vimeo;20759609]http://vimeo.com/20759609[/video]
[media=vimeo]20759609[/media]
[video=youtube;aNsucu92jwk]http://www.youtube.com/watch?v=aNsucu92jwk[/video]
[media=youtube]aNsucu92jwk[/media]
Please, You can write this in the first post?Place the entire PostReplace directory into the /library/
No that's not right, the Regular Expression should grab just the 20759609 and the Replacement String should be something like this:#\[video\=vimeo\;[0-9]+\]http://vimeo.com/#si matches [video=vimeo;20759609]http://vimeo.com/
#\[/video\]#si matches [/video]
As long as that works out for you on your testbed, I will post up the youtube as well.
[media=vimeo]\2[/media]
#\[video\=vimeo\;[0-9]+\]http://vimeo.com/#si
Array
(
[0] => Array
(
[0] => [video=vimeo;20759609]http://vimeo.com/
)
)
I see what you're doing now.matchesCode:#\[video\=vimeo\;[0-9]+\]http://vimeo.com/#si
Code:Array ( [0] => Array ( [0] => [video=vimeo;20759609]http://vimeo.com/ ) )
It catches just fine....
If you have
[video=vimeo;20759609]http://vimeo.com/20759609[/video]
the id is there twice, I am matching from the [ to the / after .com replace that with [media=vimeo]
ill use that page you posted to show you...I switched the match function to a replace there so you can see the replacement..
View attachment 23044
On the other post where I showed an image of the post replacement tool...I didn't put the replacement string in...that line would be the line from this image named 'Enter text to replace matches with here: (backreferences are ok)'
I know it worked because I tried it![]()
I get the following error after checking save and clicking proceed#\[video=youtube\;[a-z0-9-_]+\]http\://www\.youtube\.com/watch\?v=#si
replace with:
[media=youtube]
The closing tag should be changed already per the post above.
[ame]http://www.youtube.com/watch?v=76RbWuFll0Y&ob=av2e[/ame]
Quick Find: [ame
Regular Expression: #\[ame]("|'|)http:.+youtube.+v=(\w+)\1\].+\[/ame]#siU
Replacement String: [media=youtube]\2[/media]
Please enter a message with no more than 5 pieces of media.
Try these in this orderI have downloaded and installed this add on and I did a run of it yesterday to which it managed to find 2 and fix fine however I am unable to get it to fix the rest that I still have on the forums.
Currently I still have the following on my forums which haven't fixed
Code:[ame]http://www.youtube.com/watch?v=76RbWuFll0Y&ob=av2e[/ame]
I have tried using the following to find and replace these posts but it does not seem to work
Code:Quick Find: [ame Regular Expression: #\[ame]("|'|)http:.+youtube.+v=(\w+)\1\].+\[/ame]#siU Replacement String: [media=youtube]\2[/media]
any help is greatly appreciated.
We use essential cookies to make this site work, and optional cookies to enhance your experience.