1
naabster
Call Module direct from Theme without Block?
  • 2006/4/12 13:01

  • naabster

  • Just popping in

  • Posts: 1

  • Since: 2006/4/12


Hi,
is there a possibility to call a module directly from the theme and not from a block?

I'd like to create a theme, where some modules are static on every page and are not within the left/right block area..

for example the module xlanguage should display its flags below the page along with copyright notes etc..

thanks for helping out,
naabster

2
jcssj
Re: Call Module direct from Theme without Block?
  • 2006/4/27 20:05

  • jcssj

  • Just popping in

  • Posts: 7

  • Since: 2004/5/20


Hi, I have the same requirement.

I'd like to put the language selection flag not in a block, but in the header or the foot on the theme.

I'm not a php programmer but i can see the following sentences in the xlanguage/blocks/xlanguage_blocks.php file
$list .= "?".$QUERY_STRING_new.XLANGUAGE_LANG_TAG."=".$lang['name']."">";
$list .= "/modules/xlanguage/images/".$lang['image']."" alt="".$lang['desc'].""
            style="
MozOpacity.8;opacity.8;filter:Alpha(opacity=80);"/>";
$list .= "";

There is any way to write in html this code in order to put in the theme?

I've been testing diferent ways and no success. I think the problem is comming on how to manage the PHPSESSIONID on html

thanks in advance

3
jcssj
Re: Call Module direct from Theme without Block?
  • 2006/6/26 19:24

  • jcssj

  • Just popping in

  • Posts: 7

  • Since: 2004/5/20


Just to refresh this S.O.S.

Any idea on how to solve it ??

Thanks

joancarles

4
kevinv
Re: Call Module direct from Theme without Block?
  • 2006/6/26 21:00

  • kevinv

  • Friend of XOOPS

  • Posts: 44

  • Since: 2003/1/4 1


I solved this by playing tricks with the columns & weights. I have a theme that is 2-column, so I placed blocks I wanted in non-standard locations in the right-most column and then assigned weights to the particular blocks that went in certain places. For example, I have a search block up in the header. To place this block I put the search block in the right column and assign it a weight of 1. Then in my theme I have:

<{foreach item=block from=$xoops_rblocks}>
   <{if 
$block.weight == 1}>
      <
div id="search"><{$block.content}>div>
   <{/if}>
<{/foreach}>


Note if you have a lot of blocks on the right this will be very slow looping through them all!

Login

Who's Online

385 user(s) are online (276 user(s) are browsing Support Forums)


Members: 0


Guests: 385


more...

Donat-O-Meter

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

Latest GitHub Commits