Resource icon

GeoIP template Variable 2015-06-05

No permission to download

Weppa333

Well-known member
Weppa333 submitted a new resource:

GeoIP template Variable - Two letter code of the surfer's IP available as a template variable

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>

Read more about this resource...
 
Fatal error: Call to undefined function geoip_country_code_by_name() in ...library\Weppa\GlobalTemplateVariable\Listener.php on line 6
 
Top Bottom