Geo targeting ads issue – Magiks script/plugin
-
Hi,
I bought the geo country bundle from this site: http://geotargetingscripts.com
I have problems implementing it. I don’t know why but the ads do not change by changing location.
This is my code:<?php if (class_exists('magiks_geo_shortcode_class')) { $rand = rand(0,1); if($rand == 1) echo do_shortcode(' [m_geocountry locations="BU"] <a href="http://www.example.com/?aff=1"><img src="http://www.example.com/example_BU.jpg" /></a> [/m_geocountry] [m_geocountry locations="AR"] <a href="http://www.example.com/?aff=1"><img src="http://www.example.com/example_AR.jpg" /></a> [/m_geocountry] [m_geocountry locations="FR"] <a href="http://www.example.com/?aff=1"><img src="http://www.example.com/example_FR.jpg" /></a> [/m_geocountry] [m_geocountry locations="US"] <a href="http://www.example.com/?aff=1"><img src="http://www.example.com/example_US.jpg" /></a> [/m_geocountry] [m_geocountry locations="MR"] <a href="http://www.example.com/?aff=1"><img src="http://www.example.com/example_SW.jpg" /></a> [/m_geocountry] [m_geocountry locations="MR,US,FR,AR,BU" display="0"] <a href="http://www.example.com/?aff=1"><img src="http://www.example.com/example.jpg" /></a> [/m_geocountry] '); elMR echo do_shortcode(' [m_geocountry locations="BU"] <a href="http://www.example.com/?aff=2"><img src="http://www.example.com/example_BU.jpg" /></a> [/m_geocountry] [m_geocountry locations="AR"] <a href="http://www.example.com/?aff=2"><img src="http://www.example.com/example_AR.jpg" /></a> [/m_geocountry] [m_geocountry locations="FR"] <a href="http://www.example.com/?aff=2"><img src="http://www.example.com/example_FR.jpg" /></a> [/m_geocountry] [m_geocountry locations="US"] <a href="http://www.example.com/?aff=2"><img src="http://www.example.com/example_US.jpg" /></a> [/m_geocountry] [m_geocountry locations="MR"] <a href="http://www.example.com/?aff=2"><img src="http://www.example.com/example_SW.jpg" /></a> [/m_geocountry] [m_geocountry locations="MR,US,FR,AR,BU" display="0"] <a href="http://www.example.com/?aff=2"><img src="http://www.example.com/example.jpg" /></a> [/m_geocountry] '); }I am working with W3TC (WordPress Total Cache), so also thought that this could be an issue of caching. Tried to wrap a code around the code above, that will prevent caching this specific code:
<!-- mfunc -->PHP code<!-- /mfunc -->Didn’t help me….
Can you please advice..?
Many thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Geo targeting ads issue – Magiks script/plugin’ is closed to new replies.