rejetto forum

Software => HFS ~ HTTP File Server => Topic started by: r][m on June 27, 2009, 04:27:29 PM

Title: ban-list
Post by: r][m 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?
Title: Re: ban-list
Post by: Mars 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 ;)
Title: Re: ban-list
Post by: r][m on June 27, 2009, 08:44:42 PM
It works perfectly  ;D
Many, Many, thanks for the help Mars
Title: Re: ban-list
Post by: Mars on June 27, 2009, 09:23:51 PM
 ;)