1
snow77
How to extract a block from a module and make it render inside the theme.html?
  • 2006/8/31 1:37

  • snow77

  • Just can't stay away

  • Posts: 864

  • Since: 2003/7/23


The idea is that I want to use the Marquee module, only that I don't want to position the marquee (the block) using the admin of blocks.

I want, if there is a way, to get the code (of the block) and put it where I want somewhere on top of the header inside the theme.html. Does anyone know if this could be done? or a pattern of the code I can use in my theme to render this?

I tried:
<{include file="$xoops_url/modules/marquee/templates/blocks/marquee_block01.html"}>

but I guess it was too naive of me to think it could work so easily cause that didn't work
www.polymorphee.com
www.xoopsdesign.com

2
xuser
Re: How to extract a block from a module and make it render inside the theme.html?
  • 2006/8/31 8:55

  • xuser

  • Just popping in

  • Posts: 73

  • Since: 2002/11/26


you should look into the xoopsversion.php within the module dir. remember the block's show_func and template

then , in your php file, add such code
$block $show_func(param);
$xoopsTpl->assign("block"$block);


finally add the template's source into your theme.html as ur will

if the smarty variable "block" is confilcted with others, your can change them.
Xuser's site
http://xuser.org
http://theme.xoops.org.cn

3
snow77
Re: How to extract a block from a module and make it render inside the theme.html?
  • 2006/9/1 3:07

  • snow77

  • Just can't stay away

  • Posts: 864

  • Since: 2003/7/23


thank you, I'll practice and study this more.
www.polymorphee.com
www.xoopsdesign.com

Login

Who's Online

267 user(s) are online (173 user(s) are browsing Support Forums)


Members: 0


Guests: 267


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits