• Page 1 of 1
  • 1
Forum moderator: bigblog  
Informer - If nothing outputs then display something
Posts: 12
Reputation: 0

Message # 1 | 9:16 AM
Hello uCoz Community!

Let's say I have an informer for a blog.

Normally, if there aren't any entries, the informer won't show anything.
I would want to show a <div> or <p> if there aren't any entries shown by the informer.

Is this possible? Thanks. biggrin
Posts: 1770
Reputation: 78

Message # 2 | 4:22 PM
nitroretroofficial, use this code instead of the original informer code:
<?if(len($MYINF_5$) == 0)?>
Replace this line with the text you want to be shown if there are no entries added in a specific module.

Be sure to put it using the HTML editor only, not the WYSIWYG one.

hey i'm joe and i do not work for the company anymore, please contact other staff or tech support
icon by ch-chau

sometimes i lurk here
Posts: 12
Reputation: 0

Message # 3 | 4:08 PM
Thanks bigblog, I always forget that you can check the length like that (on uCoz).
  • Page 1 of 1
  • 1