XF 1.1 Links after upgrade from phpBB3

MattW

Well-known member
Hi,

After upgrading from phpBB3.0.10, the links in post are showing as plain html as per the below:

Code:
<a class="postlink" href="http://issues.pageturninteractive.com/CoverStory/four/?ptie=forums@chrisknott.co.uk" onclick="window.open(this.href);return false;">http://issues.pageturninteractive.com/C ... nott.co.uk</a>

Is there an automated way to resolve this post upgrade?

Thanks,
Matt
 
Not really, I ran the first command to convert all the URL links:

Now my youtube links look like this:

Code:
[url=http://www.youtube.com/watch?v=S05gRhsY3mQ&list=UUv8Nyrl_ydPoSv5qTVuqrMQ&index=1&feature=plcp]http://www.youtube.com/watch?v=S05gRhsY ... ature=plcp[/url]

when I convert the youtube links they are all duplicated:

Code:
[url=[media=youtube]5tUo_DX1ISc[/media]][media=youtube]5tUo_DX1ISc[/media][/url]

So that kind of messes it all up! :(

I need to somehow remove the URL tags and also the duplication.
 
#.+youtube.+v=([\w\-]+?)#siU will looks for anything with youtube in the middle.


If you want to look for youtu.be URL's

#youtu.be/([\w]+?)#siU
View attachment 37808

THIS one ALMOST works.

So close! It works for all the youtu.be short domains but not ones with hyphens. It leaves off the characters after the hyphen.

So for example if the URL is

Code:
https://youtu.be/T-456363626

It will change it to

Code:
[MEDIA=youtube]T[/MEDIA]

Any advise on including the hypens?

Also it should disregard URL lines that look like this:

Code:
[URL='http://youtu.be/T-k35Vj6D2s']text here[/URL]

Since people have linked it in a sentence, but these are coming up in this search. If it changes those it's going to mess up the sentence.

Thanks!
 
Last edited:
Top Bottom