8
I have been working on something like this for my modules, the one thing I see wrong with ghia's code is that it is just smarty code and not XOOPS smarty code.
What does that mean? Well smarty uses this:
{/foreach}
but XOOPS does it this way:
<{/foreach}>
the code to do it in the jobs module would be something like this:
in the template file you would add this:
<{foreach from=$items item=item name=items}>
<{if $smarty.foreach.items.iteration eq 3}>
<{/if}>
then in the php file you would add this:
$banner = xoops_getbanner();
$xoopsTpl->assign('banner', $banner);
That should give you something to work with.
Hope it helps,
John