Page 1 of 1

Getting this code to display in small custom block

Posted: 16. January 2010 21:18
by Foxy
Your Portal Version: 1.0.4
Your phpBB Type: Standard phpBB3
MODs installed: Yes
Your knowledge: Beginner
Boardlink: http://www.border-forums.com

What have you done before the problem was there?
Nothing

What have you already tryed to solve the problem?
Various editing of code, adding BB tags etc etc.

Description and Message
Hi,

I am trying to get this code to display properly in the small custom block on my portal page:

<iframe src="http://www.worldcommunitygrid.org/getDy ... cial=false" frameborder="0" name="di" scrolling="no" width="405px" height="145px"></iframe>

The code should display an image with some statistics from my team that I created on the World Community Grid.

Regards, fujcube

Re: Getting this code to display in small custom block

Posted: 16. January 2010 21:53
by Marc
First of, it doesn't fit in the small custom block, just in the center custom block.

Second of, it does work. Just enable the custom block and copy the iframe code in the codebox in the ACP. Make sure that BBCode is not enabled.

P.S: Because of the iframe, the page is not XHTML valid anymore.

Re: Getting this code to display in small custom block

Posted: 16. January 2010 22:01
by Foxy
Hi,

Thanks for the reply. I can change the 'widget' for a smaller one, the code will be similar, just a smaller image. What does this mean "Because of the iframe, the page is not XHTML valid anymore"

Someone over at phpBB.com suggested:
http://www.phpbb.com/community/viewtopi ... #p11768455


Regards

Re: Getting this code to display in small custom block

Posted: 16. January 2010 23:05
by Marc
XHTML valid just means that the code is 100% correct regarding the XHTML 1.0 standard. The iframe shouldn't cause any errors.

What the user over at phpBB.com suggested, doesn't change anything, as it is still an iframe.

Re: Getting this code to display in small custom block

Posted: 16. January 2010 23:17
by Foxy
Thank you. I changed the widget code for a smaller one did as you suggested. Now working fine.

Regards, fujcube