- Compatible XF 1.x versions
- 1.4
- Additional requirements
- Requires PHP GeoIP installed ( PECL GEOIP )
- Visible branding
- No
This simple basic and beta add-on will provide an additionnal template variable so that you can hide or show template elements based on the surfer's IP.
Example :
Modify page_container
Add
<!-- Surfer IP in {xen:raw $geoipcountry} -->
To hide something to surfer from China
<xen:if is="{$geoipcountry} != 'CN">China does not see this</xen:if>
Example :
Modify page_container
Add
<!-- Surfer IP in {xen:raw $geoipcountry} -->
To hide something to surfer from China
<xen:if is="{$geoipcountry} != 'CN">China does not see this</xen:if>