rejetto forum

ban-list

r][m · 4 · 3120

0 Members and 1 Guest are viewing this topic.

Offline r][m

  • Tireless poster
  • ****
    • Posts: 347
    • View Profile
I'm trying to set up a visual flag to notify if any ip is banned
using this macro. I don't get any macro error, but I don't get any result
either.

{.if|{.from table|#ini|ban-list=.}|{:{!result 2.}|{.!result 1.}:}
/if.}

What I need it to do is:
If the ini ban list is empty one result, if not, then the other result.

Is this possible? Any help, anyone?


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2059
    • View Profile
This is the exact syntax to be used without changing anything ;)

Quote
{.if|{.no pipe|{.from table|#ini|ban-list.}.}|{:{.!result 2.}:}|{:{.!result 1.}:}
/if.}

if you use it in a diff template , you have to define result 1 and result 2 into the main-tpl ;)
« Last Edit: June 27, 2009, 05:35:42 PM by Mars »


Offline r][m

  • Tireless poster
  • ****
    • Posts: 347
    • View Profile
It works perfectly  ;D
Many, Many, thanks for the help Mars


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2059
    • View Profile