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}>
<div id="extWait_block_submissions_modName"><{$module.name}></div>
<div id="extWait_block_submissions_itemList">
<ul>
<{foreach item=pending from=$module.pending}>
<{if $pending.pendingnum}>
<li><a href="<{$pending.adminlink}>"><{$pending.lang_linkname}></a>: <span class='hasItems'><{$pending.pendingnum}></span></li>
<{/if}>
<{/foreach}>
</ul>
</div>
<{/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

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