Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
2 + 9 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

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

thank you, I'll practice and study this more.
Re: How to extract a block from a module and make it render inside the theme.html?
by xuser on 2006/8/31 8:55:41

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
le="color: #000000"><?php $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.
How to extract a block from a module and make it render inside the theme.html?
by snow77 on 2006/8/31 1:37:01

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

Who's Online

822 user(s) are online (768 user(s) are browsing Support Forums)


Members: 0


Guests: 822


more...

Donat-O-Meter

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

Latest GitHub Commits