Author Topic: ban-list  (Read 1501 times)

0 Members and 1 Guest are viewing this topic.

Offline r][m

  • Tireless poster
  • ****
  • Posts: 347
    • View Profile
ban-list
« on: June 27, 2009, 04:27:29 PM »
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: 1890
    • View Profile
Re: ban-list
« Reply #1 on: June 27, 2009, 05:32:09 PM »
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
Re: ban-list
« Reply #2 on: June 27, 2009, 08:44:42 PM »
It works perfectly  ;D
Many, Many, thanks for the help Mars

Offline Mars

  • Operator
  • Tireless poster
  • *****
  • Posts: 1890
    • View Profile
Re: ban-list
« Reply #3 on: June 27, 2009, 09:23:51 PM »
 ;)