MyBB Community Forums

Full Version: Could I embed a video from PPPoker?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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_pu...908&lan=pt

TY
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]
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?
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]
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
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]