Creating/editing a block!

Support for IntegraMOD 141

Moderator: Integra Moderator

Creating/editing a block!

PostAuthor: Nixius » Tue Aug 14, 2007 7:51 am

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!
Last edited by Nixius on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Nixius
Newbie
Newbie
 
Posts: 10
Likes: 0 post
Liked in: 0 post
Joined: Tue Jul 31, 2007 7:02 am
Cash on hand: 0.00

PostAuthor: tmotley » Tue Aug 14, 2007 10:43 am

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?
Last edited by tmotley on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
User avatar
tmotley
IntegraMODerators
IntegraMODerators
 
Posts: 524
Likes: 0 post
Liked in: 0 post
Joined: Mon Mar 27, 2006 3:56 am
Cash on hand: 0.00
Location: Missouri, USA

PostAuthor: Nixius » Tue Aug 14, 2007 1:01 pm

"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?
Last edited by Nixius on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Nixius
Newbie
Newbie
 
Posts: 10
Likes: 0 post
Liked in: 0 post
Joined: Tue Jul 31, 2007 7:02 am
Cash on hand: 0.00

Re: Creating/editing a block!

PostAuthor: Helter » Tue Aug 14, 2007 9:29 pm

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>
Last edited by Helter on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.
"Success is getting what you want. Happiness is wanting what you get." - Dale Carnegie
User avatar
Helter
Administrator
Administrator
 
Posts: 4554
Likes: 40 posts
Liked in: 116 posts
Images: 0
Joined: Sat Mar 11, 2006 4:46 pm
Cash on hand: 1,959.15
Location: Seattle Wa
IntegraMOD version: phpBB2x

PostAuthor: Nixius » Wed Aug 15, 2007 4:30 pm

Thanks the html worked well, but the BBCode just displays the text that you wrote above.
Last edited by Nixius on Wed Dec 31, 1969 5:00 pm, edited 1 time in total.

Nixius
Newbie
Newbie
 
Posts: 10
Likes: 0 post
Liked in: 0 post
Joined: Tue Jul 31, 2007 7:02 am
Cash on hand: 0.00


Return to IntegraMOD 141

Who is online

Registered users: App360MonitorBot, Bing [Bot], Google [Bot], Majestic-12 [Bot]