Iframe and BB Code

Get help developing custom BBCodes or request one.
Celest-ZPest
Registered User
Posts: 4
Joined: Sun Aug 06, 2023 10:04 pm

Iframe and BB Code

Post by Celest-ZPest »

I need help making this work

I created the proper BB Code for the HTML.
Everything seems to check out but the forum will not display EXTERNAL websites. Whatever URL I input it only displays the fourm's "Page Not Found" page.

I'm stuck at what I'm supposed to do next.

This is the BB Code that I created :
[iframe]{URL}[/iframe]

This is the html syntax I used :
<iframe src="url" height="480" width="800"></iframe>
User avatar
warmweer
Jr. Extension Validator
Posts: 11660
Joined: Fri Jul 04, 2003 6:34 am
Location: Van Allen Bel ... gium

Re: Iframe and BB Code

Post by warmweer »

Celest-ZPest wrote: Mon Aug 26, 2024 8:52 pm I need help making this work

I created the proper BB Code for the HTML.
Everything seems to check out but the forum will not display EXTERNAL websites. Whatever URL I input it only displays the fourm's "Page Not Found" page.

I'm stuck at what I'm supposed to do next.

This is the BB Code that I created :
[iframe]{URL}[/iframe]

This is the html syntax I used :
<iframe src="url" height="480" width="800"></iframe>
"url" is not the same as {URL}

You probably need to do something like

<iframe src="{URL}/embed" ....</iframe>
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
User avatar
Steve
Registered User
Posts: 1496
Joined: Tue Apr 07, 2009 7:48 pm
Name: Steven Clark

Re: Iframe and BB Code

Post by Steve »

@ The Chief Medical Officers guideline for men is that: You are safest not to drink regularly more than 14 units per week.
- I drank that today++ :lol: 🍺

No: https://phpbb3bbcodes.com/viewforum.php?f=66 [r=66]Steve[/r=66]
User avatar
Sniper_E
Registered User
Posts: 1189
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: Iframe and BB Code

Post by Sniper_E »

I prefer to size my iframe depending on what I'm putting in there.
This is the html syntax I used : <iframe src="url" height="480" width="800"></iframe>
I use what you have there. The full url because it's not used for youtube videos only. And specify width and height.
[iframe={NUMBER1},{NUMBER2}]{URL}[/iframe]
<iframe src="{URL}" frameborder="0" marginwidth="0" marginheight="0" scrolling="yes" width="{NUMBER1}" height="{NUMBER2}" allowfullscreen></iframe>
Iframe: [iframe=width,height]url[/iframe]
Example post: [iframe=800,400]https://www.phpbb.com/app.php/mchat[/iframe]
And if you want a border around your iframes then change html replacement to frameborder="1"

Additionally: I think iframe bbcodes should be in an extension so you can set permissions who can use it.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:

Return to “Custom BBCode Development and Requests”