XF 2.2 [FIXED - thx Brogan] Custom BB code media headache

El Porcharo

Well-known member
I'm trying to add an embedding code for Voomly.com, but I don't know why there seems to be some issues.

The setup seems to be ok, but there's no chance to see the video on my test thread. Their embed code is fully working on Wordpress.

I'm going to share my real video link, so anyone willing to help could test on their own.

Here it is: https://share.voomly.com/v/XsGn834cJ

While this one here is the embed code:
<script src="https://embed.voomly.com/embed/embed-build.js"></script> <div class="voomly-embed" data-id="XsGn834cJ" data-ratio="1.778" data-type="v"></div>

Here's my setup for the new BB code media site (advanced options not set) followed by the code text itself:

1614798372873.webp

Match URLs: share.voomly.com/v/{$id}

Embed template: <div class="bbMediaWrapper">[I][/I] <div class="bbMediaWrapper-inner"> <script src="https://embed.voomly.com/embed/embed-build.js"></script> <div class="voomly-embed" data-id="{$id}" data-ratio="1.778" data-type="v"></div> </div> </div>

The strange thing is that the HTML code doesn't seem to be placed at all within the source page...

Is there anyone that already had to deal with it and knows how to fix?


Thanks in advance!
 
Solution
Remove the script code -- <script src="https://embed.voomly.com/embed/embed-build.js"></script> -- from the embed template and place it in the PAGE_CONTAINER template between the <head> </head> tags.
Remove the script code -- <script src="https://embed.voomly.com/embed/embed-build.js"></script> -- from the embed template and place it in the PAGE_CONTAINER template between the <head> </head> tags.
 
Solution
YEEEEEAHHHHH!!!! 🥳

It's working!
Don't actually know what happened, I was like 😠💭"Ok... Brogan did it!!! I must do it too!" 😁

So I started a delete+addNew+setup+test+delete+addNew+setup+test process for a couple of times, and it probably got stressed enough! :ROFLMAO:

On second attempt it just showed the empty space, but no video. After the third attempt it finally appeared!
:unsure: Might be because my board it's still private, you can't see content without logging in... Never mind! 😃 It works now!


Thanks Brogan for your infinite patience, you're always so kind and helpful ❤️
 
Top Bottom