1
mboyden
Extended Waiting Block: Template to Reduce Content Space
  • 2008/9/10 13:50

  • mboyden

  • Moderator

  • Posts: 484

  • Since: 2005/3/9 1


I'm a fan (and user) of the Extended Waiting Module by GIJoe. However, I didn't like the amount of real-estate it took on the page displaying all the modules that didn't have waiting content, so I reprogrammed the template to only show active alerts (instead of all those with 0 waiting). Here's the template code I used. If you'd like to use it, just replace the template with this one (I use the GIJoe AltSys module to do that). Hope it helps someone else!

<{foreach item=module from=$block.modules}>
<{assign var=extWaitShowModule value=false}>
<{foreach item=pending from=$module.pending}>
<{if $pending.pendingnum > 0}>
<{assign var=extWaitShowModule value=true}>
<{/if}>
<{/foreach}>
<{if $extWaitShowModule}>
<{$module.name}>



    <{foreach item=pending from=$module.pending}>
    <{if $pending.pendingnum}>
  • <{$pending.lang_linkname}>: <{$pending.pendingnum}>

  • <{/if}>
    <{/foreach}>


<{/if}>
<{/foreach}>

[Note: I used the id's and class for stylesheet display info.]
Pessimists see difficulty in opportunity; Optimists see opportunity in difficulty. --W Churchill

XOOPS: Latest | Debug | Hosting and Web Development

2
Anonymous
Re: Extended Waiting Block: Template to Reduce Content Space
  • 2008/9/10 13:56

  • Anonymous

  • Posts: 0

  • Since:


Quote:
mboyden wrote:

Hope it helps someone else!


Should do, particularly now that altsys is part of XOOPS 2.3.0

GIJoe's modules are excellent.

Login

Who's Online

461 user(s) are online (133 user(s) are browsing Support Forums)


Members: 0


Guests: 461


more...

Donat-O-Meter

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

Latest GitHub Commits