xoops forums

achz04

Just popping in
Posted on: 2010/6/17 5:37
achz04
achz04 (Show more)
Just popping in
Posts: 14
Since: 2010/6/15
#1

combine modules

Hi guys,

How can I put other modules block inside other modules..

For example i want to combine 'xlogcounter' Counter blocks inside 'Whose Online' blocks (/modules/system/templates/blocks/system_block_online.html) which is in the system modules.

Can i do that... i know php a little bit.. which can use Include syntax but the 'whose online' modules is in html which i dont know how to include the xlogcounter blocks (/modules/logcounterx/templates/blocks/lcx_block_display.html)

Thanks for the help.

ghia

Community Support Member
Posted on: 2010/6/17 7:56
ghia
ghia (Show more)
Community Support Member
Posts: 4953
Since: 2008/7/3 1
#2

Re: combine modules

Maybe you can do something with Blocks Anywhere.

trabis

Core Developer
Posted on: 2010/6/17 13:16
trabis
trabis (Show more)
Core Developer
Posts: 2269
Since: 2006/9/1 1
#3

Re: combine modules

You can use defacer module for xoops 2.4.x. It also has blocks anywhere feature with support for blocks using css an js.
You can assign any block to a smarty variable and then use that variable inside another block(or other) template.
You have to consider the block order, IMPORTANT! The block rendered by defacer must be rendered before the block that holds the smarty variable.

mboyden

Moderator
Posted on: 2010/6/18 14:20
mboyden
mboyden (Show more)
Moderator
Posts: 484
Since: 2005/3/9 1
#4

Re: combine modules

There are two options for inline blocks that I've found.
Pessimists see difficulty in opportunity; Optimists see opportunity in difficulty. --W Churchill

XOOPS: Latest | Debug | Hosting and Web Development