1
m0nty
Blocks Question??
  • 2004/2/4 22:03

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


On Koudanshi's site http://www.bbpixel.com

there are 2 buttons at the top, which turn each block on/off when u click them!!

is this a hack that's generally available as I think it's pretty damn nifty, and oughta be implemented into the core..

2
Mithrandir
Re: Blocks Question??

Yeah, pretty nifty.

If you could figure out, how it is done, I'm sure it will be welcomed by everyone

3
SevenD
Re: Blocks Question??
  • 2004/2/5 1:19

  • SevenD

  • Not too shy to talk

  • Posts: 143

  • Since: 2003/7/23



Save this code like html file and give a look, this is simple demo of javascript controled column.

Quote:












Block controler   Block controler







     







4
hsalazar
Re: Blocks Question??
  • 2004/2/5 1:46

  • hsalazar

  • Just popping in

  • Posts: 78

  • Since: 2003/2/6 1


Another possible path: download theme MP00 and see how it's done.

https://xoops.org/modules/news/article.php?storyid=1098

Cheers.

5
m0nty
Re: Blocks Question??
  • 2004/2/5 2:41

  • m0nty

  • XOOPS is my life!

  • Posts: 3337

  • Since: 2003/10/24


yeah thanks guys.. i figured it out by viewin his source on his page.. been tryin to implement into my own theme.. and i've just about done it..

so if anyone else wants to implement into their existing theme then >

enter this into the head section of theme.html



then where u want the switch buttons in the main body use something similar to this >

Left Block Control

Right Block Control

& finally the columns section (will vary depending on your theme tho) >

<{if $xoops_lblocks}>



<{foreach item=block from=$xoops_lblocks}>
<{include file="/theme_blockleft.html"}>
<{/foreach}>
<{/if}>






<{$xoops_contents}>



<{if $xoops_showcblock == 1}>











<{foreach item=block from=$xoops_ccblocks}>
<{include file="/theme_blockcenter_c.html"}>
<{/foreach}>





<{foreach item=block from=$xoops_clblocks}>
<{include file="/theme_blockcenter_l.html"}>
<{/foreach}>





<{foreach item=block from=$xoops_crblocks}>
<{include file="/theme_blockcenter_r.html"}>
<{/foreach}>




<{/if}>







<{if $xoops_showrblock == 1}>




<{foreach item=block from=$xoops_rblocks}>
<{include file="/theme_blockright.html"}>
<{/foreach}>



<{/if}>




again thanks, and thanks to koudanshi for the source code ;)

6
script_fu
Re: Blocks Question??

Very cool... Most of the e-xoops themes have this toggle blocks fuction also. Nice work on the port guys...

Login

Who's Online

138 user(s) are online (121 user(s) are browsing Support Forums)


Members: 0


Guests: 138


more...

Donat-O-Meter

Stats
Goal: AU$15.00
Due Date: Jun 30
Gross Amount: AU$0.00
Net Balance: AU$0.00
Left to go: AU$15.00
Make donations with PayPal!

Latest GitHub Commits