Fixed Youtube Link Not Getting Parsed Using IPBoard Importer

Affected version
XF1.5/2.0

Gator

Well-known member
#1
I imported many posts that had YouTube videos in them, but now the threads are blank

Code:
<p style="text-align: center;">
    <strong class="bbc">You can rate the&nbsp;video here: &nbsp;<a href="https://www.the-armory.net/videos/view-302-valerian-final-trailer-extended-2017/">VALERIAN Final Trailer (Extended) 2017</a></strong>
</p>
<p style="text-align: center;">
    &nbsp;
</p>
<p style="text-align: center;">
    &nbsp;
</p>

<div class="ipsEmbeddedVideo" contenteditable="false">
    <div>
        <iframe allowfullscreen="true" frameborder="0" height="270" src="https://www.youtube.com/embed/ChVRE7z5_MM?feature=oembed" width="480"></iframe>
    </div>
</div>
<p>
    &nbsp;
</p>
Here is the result after import
 

Chris D

XenForo developer
Staff member
#3
I imported many posts that had YouTube videos in them, but now the threads are blank

Code:
<p style="text-align: center;">
    <strong class="bbc">You can rate the&nbsp;video here: &nbsp;<a href="https://www.the-armory.net/videos/view-302-valerian-final-trailer-extended-2017/">VALERIAN Final Trailer (Extended) 2017</a></strong>
</p>
<p style="text-align: center;">
    &nbsp;
</p>
<p style="text-align: center;">
    &nbsp;
</p>

<div class="ipsEmbeddedVideo" contenteditable="false">
    <div>
        <iframe allowfullscreen="true" frameborder="0" height="270" src="https://www.youtube.com/embed/ChVRE7z5_MM?feature=oembed" width="480"></iframe>
    </div>
</div>
<p>
    &nbsp;
</p>
Here is the result after import
I've just knocked up a quick test script which performs the exact replacements we make on IPS post content on your original post content above and it became this:
Code:
[CENTER]
[B]You can rate the video here: [URL="https://www.the-armory.net/videos/view-302-valerian-final-trailer-extended-2017/"]VALERIAN Final Trailer (Extended) 2017[/URL][/B]
[/CENTER]

[CENTER]
 
[/CENTER]

[CENTER]
 
[/CENTER]

[MEDIA=youtube]ChVRE7z5_MM[/MEDIA]
Which should render like this:

You can rate the video here: VALERIAN Final Trailer (Extended) 2017







With that in mind, I can't reproduce this. Though, at the same time, I can clearly see there is a problem.

I think really the only way forward is if you're able to share, at minimum, the IPS database and we'll do some more testing. We're gearing up towards a XF 1.5.x release so if it's something you can share fairly quickly then that'd be appreciated.
 
Top