You're right, the IPADDRESS constant works like a charm, but there's one last snag. We need to compare it to a
range of addresses.
Basically, the condition looks like this:
PHP Code:
<if condition="IPADDRESS == 'IP Range'"><a href = link>Link</a><else /></if>
The problem is with the IP Range bit... I know about the
array(X,Y,Z) option, but that's kind of limited for what we need, because we'd have to write down every single address in the range.
Ultimately, our if rule should be like
PHP Code:
<if condition="IPADDRESS == '192.168.1.x'"><a href = link>Link</a><else /></if>
but we don't know how to define the range per-se or the
x part.
Later edit:
We figured it out. You have to use a start and end value, like so:
PHP Code:
<if condition="(IPADDRESS >= '192.168.1.1') and (IPADDRESS <= '192.168.1.254')">