Page 1 of 1

Creating/editing a block!

PostPosted: Tue Aug 14, 2007 7:51 am
Author: Nixius
Hey, I have some html code for a magic 8-ball and I wanted to add it as a 'block'. But I can't find anything on how to create one. I've tried looking at the current blocks but I don't inderstand them.

At the moment I took an existing block I don't ever intend to use, commented out the code and added an include (xxx.htm) statement. This works fine except the htm file appears outside of the block at the top of the page. Leaving an empty block underneath it also.

It looks somethign like this (Sorry this is a bit messy looking)

Banner
-------------------------------
Calender
-------------------------------
Brd _||___8ball.htm___||clock
Nav_|| <emptyblock>_||NewestPic
____||____News______||_______


I don't udnerstand why it appears outside of the block, ideally I would like it to look like this:

Banner
-------------------------------
Calender
-------------------------------
Brd _||____News______||clock
Nav_||______________||NewestPic
____||_______________||8Ball

Any help is always appreciated!

PostPosted: Tue Aug 14, 2007 10:43 am
Author: tmotley
Have you tried to have the code saved on your webspace as 8ball.htm, create a new block using the web tag and your 8ball.htm full url, setting it to use bbcode, and submit?

PostPosted: Tue Aug 14, 2007 1:01 pm
Author: Nixius
"Template->make_filename(): Error - template file not found: blocks/8ball_block.tpl"

"create a new block using the web tag and your 8ball.htm"

I am not sure of what you mean. I uploaded the htm and the images to the Blocks folder (if it worked id move all the images to a sub folder), then I went from ACP>block management > install>selected 8ball from the list. If I set it to bbcode or html same error occurs.

Any extre advice?

Re: Creating/editing a block!

PostPosted: Tue Aug 14, 2007 9:29 pm
Author: Helter
create a folder in your forum root called "html". put 8ball.htm in that folder. when you create the block, choose one of these methods


choose "type" "html" and use this code
Code: Select all
<iframe></iframe>


choose "type" "BBCode" and use this code
Code: Select all
[web height=350]http:///html/8ball.htm[/web:1ve18y9x]



"block file:" = "none"
"Localize Titlebar:" = "No"

You should also add an index.html to this folder to protect nosey ppl from browsing the contents. This index.html, may be blank, or include a redirect back to index.php

Code: Select all
<HTML><HEAD><META></HEAD><BODY></BODY></HTML>

PostPosted: Wed Aug 15, 2007 4:30 pm
Author: Nixius
Thanks the html worked well, but the BBCode just displays the text that you wrote above.