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

XF 1.1 Links after upgrade from phpBB3

MattW

Well-known member
#1
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
 

MattW

Well-known member
#4
I'm also having issues with youtube links.

The link are all now the full URL, and not embedded

Code:
http://www.youtube.com/watch?v=j4VAF9QHxR
I've tried the below:

quick find
Code:
www.youtube.com
regex
Code:
#http:.+youtube.+v=(\w+)#siU
replace string
Code:
[media=youtube]\1[/media]
It's matching the string, but only the first letter/number of the video ID.

youtube.PNG

Thanks,
Matt
 

Jake Bunce

XenForo moderator
Staff member
#5
You will need to better define the ID by specifying what comes after it. Is there a common delimiter after the URL? Such as a space character or bracket?

A space:

Code:
#http:.+youtube.+v=(\w+) #siU
A bracket:

Code:
#http:.+youtube.+v=(\w+)\[#siU
 

MattW

Well-known member
#7
Or try this regex:

#http:.+youtube.+v=(\w+?)#siU
That almost works, unless there is a - in the video ID.
You will need to better define the ID by specifying what comes after it. Is there a common delimiter after the URL? Such as a space character or bracket?

A space:

Code:
#http:.+youtube.+v=(\w+) #siU
A bracket:

Code:
#http:.+youtube.+v=(\w+)\[#siU
Most of the posts are single posts with just the video URL in them, and nothing else after the URL.
 
#12
Hi Matt, I installed it, place the install files in the library directory and installed the xml file, when I go to Tools and select "Replace in Posts" I get the following error:

Error
The requested page could not be found.
Maybe I am not installing it correctly!!
Thanks
 

MattW

Well-known member
#18
Unless its conflicting with another addon! I have installed around 35! :confused:
Yes it did install fine and shows as installed.
I've got 24 installed on my main site.

Just to double check, when you unzipped the archive, you should have had a folder called "PostReplace". Inside that, there is another folder also called "PostReplace". You then upload the second PostReplace folder into the library folder, and installed the it using the xml file?