XF 2.0 Cannot Embed Iframe

CjTheFish

Member
Hey there, I'm running an adult forum and trying to add a section for videos from reputable adult sites.

All of these use iFrame players and I cannot figure out how to get this configured. I wen't into the "Edit BB Code Media Sites" section within my admin CP, and tried to replicate the settings for youtube over for an adult site but to be honest I have no idea what I am doing.

I just want users to be able to embed videos into their posts.

Any help?

Adult site- Think of the major xxx tube sites. Xenforo originally bleeped out the name in my OP.
 
Speaking totally generally, you would look at a URL of the vide and generally it will have some sort of unique ID or key which represents the video.

You would then look at the embed code they provide and in an ideal world you will see the same ID in the iframe src.

You take the embed code and replace that ID with {$id}.

When setting up the BB code media site, you can set up match URLs. Usually it’s just s case of taking the normal video URL and replacing the unique ID/key with {$id} again. And in the embed HTML field add the embed code with the {$id} replacement and save and it should start working.

If the ID in the URL is different from the ID in the embed code then it will likely need custom code to do, for which you’ll need the help of a third party developer.

If you can post here the URL and the embed code (replacing any inappropriate words and changing the URL to example.com) then we’ll be able to give you an idea as to whether it’s possible or not.
 
Speaking totally generally, you would look at a URL of the vide and generally it will have some sort of unique ID or key which represents the video.

You would then look at the embed code they provide and in an ideal world you will see the same ID in the iframe src.

You take the embed code and replace that ID with {$id}.

When setting up the BB code media site, you can set up match URLs. Usually it’s just s case of taking the normal video URL and replacing the unique ID/key with {$id} again. And in the embed HTML field add the embed code with the {$id} replacement and save and it should start working.

If the ID in the URL is different from the ID in the embed code then it will likely need custom code to do, for which you’ll need the help of a third party developer.

If you can post here the URL and the embed code (replacing any inappropriate words and changing the URL to example.com) then we’ll be able to give you an idea as to whether it’s possible or not.


Hi there, many thanks.

This is an example of the embed code given for the video. Replacing the actual URL with example.

HTML:
<iframe src="https://www.example.com/embed/ph5ac09d10afaa1" frameborder="0" width="560" height="315" scrolling="no" allowfullscreen></iframe>

If I were to look at just the URL for the video it would say this

HTML:
https://www.example.com/view_video.php?viewkey=ph5ac09d10afaa1

Many thanks :)
 
Most likely just needs this for the match URLs:

HTML:
https://www.example.com/view_video.php?viewkey={$id}

And this for the embed html:

HTML:
<iframe src="https://www.example.com/embed/{$id}" frameborder="0" width="560" height="315" scrolling="no" allowfullscreen></iframe>
 
"The specified URL cannot be embedded as media."

--

No worries though, I do not want to take up too much of your time. I appreciate you're help up to this point. I'll try and figure it out from here on my own.
 
Hey there, just wanted to update you in case you are around and willing to provide any advice.

I was able to configure the following for my BB code media site.

Media site ID- example

Site title- example

Site URL- http://example.com

Match URLs- https://www.example.com/view_video.php?viewkey={$id}

Embed template-
Code:
<div class="bbMediaWrapper">
    <div class="bbMediaWrapper-inner">
        <iframe src="https://www.example.com/view_video.php?viewkey={$id}?wmode=opaque&start={$start}"
                width="560" height="315"
                frameborder="0" allowfullscreen="true"></iframe>
    </div>
</div>

When I go to "insert media" into my posts now it accepts the URL and embeds it into the post, however on the actual post page once its been submitted it is completely empty and just displays the white background.

Any ideas?
 
Top Bottom