MyBB Community Forums
Could I embed a video from PPPoker? - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Resources (https://community.mybb.com/forum-8.html)
+--- Forum: Third Party Integration (https://community.mybb.com/forum-132.html)
+--- Thread: Could I embed a video from PPPoker? (/thread-230762.html)



Could I embed a video from PPPoker? - tempolivre - 2021-01-05

Hi!

This is my first post here and I'm not sure if here is the right place. Sorry if don't.

Are there a way to embed this video at my forum?

http://replay.pppoker.net/game_record_publish/Frame/rls_20201225/index.html?shareKey=34cdd9ca-5d92-6f4f-39a0-9ce17c2d8908&lan=pt

TY


RE: Could I embed a video from PPPoker - [ExiTuS] - 2021-01-06

This content can be embedded to your forum using an iframe
<iframe src="..." width="..." height="..." ...></iframe>

If you want such contents to be available within posts, create an MyCode to gnerate an iframe then.

[ExiTuS]


RE: Could I embed a video from PPPoker - tempolivre - 2021-01-06

TY @[ExiTuS], I'm happy to know that but some good soul can help me with a 'how to'? The only thing I know is where to create the MyCode.  Angel

I made this  forum do study with friends but I'm a 52er old man who don't know nothing about dev or coding.

Testing Iframe:

<iframe src="http://replay.pppoker.net/game_record_publish/Frame/rls_20201225/index.html?shareKey=34cdd9ca-5d92-6f4f-39a0-9ce17c2d8908&lan=pt" width="696" height="928"></iframe>

I believe my problem is:

Quote:If you want such contents to be available within posts, create an MyCode to gnerate an iframe then.

Unfortunately I don't know how to do it, would I get any help at this point?


RE: Could I embed a video from PPPoker? - [ExiTuS] - 2021-01-06

To create a new MyCode for iframes, try this one for example...

Regular Expression:
\[IFRAME\](.*?)\[/IFRAME\]
That's the easy way for an element with one single parameter.

Replacement:
<iframe src="$1" frameborder="1" width="100%" height="800"></iframe>
$1 is the value to be replaced by the URL given in the expression. Play arounf with borders, width and height to fit your needs.

Now users can use the following MyCode in posts:
[IFRAME]https://...[/IFRAME]

[ExiTuS]


RE: Could I embed a video from PPPoker? - tempolivre - 2021-01-06

TYVM @[ExiTuS], that worked but I found a strange bug. I did this:

Regular:
\[IFRAME\]http://replay.pppoker.net/(.*?)\[/IFRAME\]

Replacement
<iframe src="http://replay.pppoker.net/$1" frameborder="1" width="425" height="568></iframe>

And I'm testing with this code:
[IFRAME]http://replay.pppoker.net/game_record_publish/Frame/rls_20201225/index.html?shareKey=34cdd9ca-5d92-6f4f-39a0-9ce17c2d8908&lan=pt[/IFRAME]

Now I can see the table in the topic, but everything below is missing, including the text, the forum controls are gone, there are no more buttons like MP, Search, Edit and etc ..., nor quick response or anything below the post . Please take a look at this:

(link removed)

Yeahhhh... got it... The " after height="568 is missing...

Solved and thank you very much!!! You are great!!!

[x] Close the topic and ban the user Big Grin


RE: Could I embed a video from PPPoker? - [ExiTuS] - 2021-01-06

The regular expression must be:
\[IFRAME\](.*?)\[/IFRAME\]
Only when posting this MyCode the individual URL is inserted within.

OK, saw this is now working on your forum as desired.

[ExiTuS]