TinyPortal

Development => Support => Topic started by: clickbouyow on September 26, 2006, 07:21:59 PM

Title: Nesting Blocks
Post by: clickbouyow on September 26, 2006, 07:21:59 PM
I did a search and didn't find anything like this.  I was wondering if there is a way to "nest" blocks (put two or more blocks inside of a block)?  This would be a great way to show servers or special deals.

Thanks,
Title: Re: Nesting Blocks
Post by: akulion on September 26, 2006, 07:27:28 PM
well the blocks are basically containers

so you can put any and all sort of elements into them

to have the appearance of 2 blocks inside one simply use HTML tables to create the look

if you have anything specific in mind let me know - ill try and help u wih the code with what limited knowledhe i have ;)
Title: Re: Nesting Blocks
Post by: clickbouyow on September 26, 2006, 07:49:23 PM
OK.  Maybe this will help.  I want to move the two game server block on the left side of the screen here (http://www.deadboneplatoon.com/smf/) to a "single" center block.   I don't think I can do it with html.

EDIT:  Now that I think about it, I think I can do it.  I can use a center HTML block and use the code there using, as you suggested, a table.  I will play around with that.  Thanks!
Title: Re: Nesting Blocks
Post by: akulion on September 26, 2006, 08:10:30 PM
ur welcome

shouldnt be too tough at all


<table border=0><tr><td>
CODE FOR BLOCK 1
</td><td>
CODE FOR BLOCK 2
</td></tr></table>



Just remember one thing though...if its a PHP block (the server blocks)

the the table would have to be echoed out like so:



echo'
<table border=0><tr><td>';
CODE FOR BLOCK 1
echo'</td><td>';
CODE FOR BLOCK 2
echo'</td></tr></table>';

Title: Re: Nesting Blocks
Post by: Thurnok on September 26, 2006, 08:17:03 PM
Don't let Aku fool you clip, his knowledge is not as limited as he eludes to.
You'll find him to be an extremely helpful person.  :)
Title: Re: Nesting Blocks
Post by: akulion on September 26, 2006, 09:25:31 PM
lol i have a lot to learn still so lots of mistakes and stumbles on the way to finally get somewhere

thanks for the compliment though :D
Title: Re: Nesting Blocks
Post by: clickbouyow on September 26, 2006, 10:12:50 PM
Quote from: akulion on September 26, 2006, 08:10:30 PM
ur welcome

shouldnt be too tough at all


<table border=0><tr><td>
CODE FOR BLOCK 1
</td><td>
CODE FOR BLOCK 2
</td></tr></table>



Just remember one thing though...if its a PHP block (the server blocks)

the the table would have to be echoed out like so:



echo'
<table border=0><tr><td>';
CODE FOR BLOCK 1
echo'</td><td>';
CODE FOR BLOCK 2
echo'</td></tr></table>';



Actually, a center block will not work, since I have a forum and articles inabled.  I put it into an article, but the BBCode showed.  I was able to do it without tabling, I just need to work on it.  Thanks, again!
Title: Re: Nesting Blocks
Post by: akulion on September 26, 2006, 10:16:09 PM
ur welcome - anytime u need help just say and dont be shy

Also if ur using articles there is a button marked < > press that to change over to HTML, using html may prove to be more useful since it supports a lot more customization than BB codes
Title: Re: Nesting Blocks
Post by: clickbouyow on September 26, 2006, 11:04:13 PM
Thanks.  That is what I was planning to do.  Drag out dreamweaver and wizzywig it then paste the html.
Title: Re: Nesting Blocks
Post by: akulion on September 26, 2006, 11:08:37 PM
oki doki good luck and ur welcome
Title: Re: Nesting Blocks
Post by: Porky on September 27, 2006, 12:39:45 AM
Sounds like all you need to due it in Html and place it in a center block....

like mine http://www.devilsrejectsdod.com/smf/index.php?action=forum