Trying to get stock ticker iframe to embed

Get help developing custom BBCodes or request one.
Post Reply
urzh
Registered User
Posts: 190
Joined: Mon Aug 05, 2019 1:51 pm
Name: Robert

Trying to get stock ticker iframe to embed

Post by urzh »

Here is the ticker source. I'm trying to get it embedded but bbcode not recognizing the iframe source.


Source: https://widgets.tc2000.com/edit?id=2014 ... rue#Custom

iFrame:

Code: Select all

<!-- Start TC2000 widget -->
<iframe width="400" noresize="noresize" scrolling="no" height="16" frameborder="0" src="https://widgets.tc2000.com/WidgetServer.ashx?id=201485"></iframe>
<!-- END TC2000 Widget -->
User avatar
Lumpy Burgertushie
Registered User
Posts: 68111
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Trying to get stock ticker iframe to embed

Post by Lumpy Burgertushie »

since bbcode only works in posts I assume you are trying this in a post.

please show us the actual bbcode you are creating and a sample post where you have tried to use it.

robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

If nobody is in the forest, does a tree really fall?
urzh
Registered User
Posts: 190
Joined: Mon Aug 05, 2019 1:51 pm
Name: Robert

Re: Trying to get stock ticker iframe to embed

Post by urzh »

Lumpy Burgertushie wrote:
Tue Sep 08, 2020 9:45 pm
since bbcode only works in posts I assume you are trying this in a post.

please show us the actual bbcode you are creating and a sample post where you have tried to use it.

robert
Hi, I am trying this in an extension that uses bbcode. It is Board Announcements: https://www.phpbb.com/customise/db/exte ... uncements/

CapturFiles.png
User avatar
Lumpy Burgertushie
Registered User
Posts: 68111
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Trying to get stock ticker iframe to embed

Post by Lumpy Burgertushie »

thanks,

ok, that is not bbcode. that is plain html.
you have to first go into your admin panel and create a bbcode for this particular iframe code.
then you can use that bbcode in the post in that extension.

I think it would be like this:
bbcode: [ticker][/ticker]
html replacement: <iframe width="400" noresize="noresize" scrolling="no" height="16" frameborder="0" src="https://widgets.tc2000.com/WidgetServer.ashx?id=201485"></iframe>

then, in the edit box for that extension just type in [ticker][/ticker] where you want the widget to show up.


I can't test this because I get a 403 error on my server because it won't let me use an iframe in this way.
not sure why, I disabled mod security for my server and that didn't help.
anyway, try it on your board and see what happens.

robert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.3 Styles by PlanetStyles.net

If nobody is in the forest, does a tree really fall?
urzh
Registered User
Posts: 190
Joined: Mon Aug 05, 2019 1:51 pm
Name: Robert

Re: Trying to get stock ticker iframe to embed

Post by urzh »

Incredible. Worked like a charm. THANK YOU
Post Reply

Return to “Custom BBCode Development and Requests”