XF 2.3 Custom BB code media, help

SergeyAxt

Member
Hello!

I am trying to add Custom BB code for my video site, built on the PlayTube script, which is located on a subdomain.

I am using this code -

<div class="bbMediaWrapper" data-media-site-id="{$siteId}" data-media-key="{$id}">
<div class="bbMediaWrapper-inner bbMediaWrapper-inner--232px">
<iframe src="https://video.1dvru.com/embed/{$id}?"
</iframe>
</div>
</div>

Match URLs -

video.1dvru.com/embed/{$id}
video.1dvru.com/{$id}
video.1dvru.com/v/{$id}
video.1dvru.com/v={$id}
video.1dvru.com/*&v={$id}

Снимок экрана 2024-08-07 в 10.38.58.webp

The script has two ways to embed videos externally, "Share" and "Embed."

If I use "Share," I get a link like this - https://video.1dvru.com/v/Of67A4, but with my code, it says - "Video not found."

If I use "Embed," (code - <iframe src="https://video.1dvru.com/embed/KDzUSOXjoY7xUvf" frameborder="0" width="700" height="400" allowfullscreen></iframe>) the player with the video gets embedded, but with extra "characters" from the code.

But if I open the video in a new tab, I get a link like this - https://video.1dvru.com/embed/KDzUSOXjoY7xUvf, and with this link, it embeds correctly in the XenForo message.

I am a newbie in this matter, but honestly, I have watched and read a lot on the forum.

If anyone can suggest what I need to fix, I would be grateful.

Thank you in advance!
 
Last edited:
Back
Top Bottom