
11-23-2009, 04:43 PM
|
|
|
Join Date: Dec 2003
Posts: 563
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Here are a few examples of Geotargeting by country and some examples with $_GET[language]. Requires Apache2, this plugin and Apache mod_geoip.
Quote:
<if condition="in_array($_SERVER['GEOIP_COUNTRY_CODE'], array('US','UK','CA','GB','IN','AU','MY','SG','HK' ))">
<!-- Your CPM Ad Code Here -->
<else />
<!-- Your Adsense Ad Code Here -->
</if>
|
Here is another example (for postbit)
Quote:
<if condition="(($post[postcount] % $vboptions[maxposts] == 1)) AND is_member_of($vbulletin->userinfo, 1,3,4,11,21)">
<if condition="in_array($_SERVER['GEOIP_COUNTRY_CODE'], array('UK','GB'))">
<div class="postbit_adcode">
<span style="float:right; margin: 0 0 30px 30px; width: 310px; height: 260px;">
<!-- Your CPM Ad Code for the UK Here) -->
</span>
</div>
</if>
<if condition="in_array($_SERVER['GEOIP_COUNTRY_CODE'], array('US','CA','IN','AU','MY','SG','HK'))">
<div class="postbit_adcode">
<span style="float:right; margin: 0 0 30px 30px; width: 310px; height: 260px;">
<!-- Your CPM Ad Code for the US, Canada, etc Here) -->
</span>
</div>
</if>
<if condition="!in_array($_SERVER['GEOIP_COUNTRY_CODE'], array('US','UK','CA','GB','IN','AU','MY','SG','HK' )) AND !$_GET[language]">
<div class="postbit_adcode">
<span style="float:right; margin: 0 0 30px 30px; width: 310px; height: 260px;">
<!-- Your Rest-of-the-World CPM Code in Your Standard Forum Language Here) -->
</span>
</div>
</if>
<if condition="!in_array($_SERVER['GEOIP_COUNTRY_CODE'], array('US','UK','CA','GB','IN','AU','MY','SG','HK' )) and $_GET[language] ">
<!-- Your World Adsense Ad Code for all your Translated Languages Here) -->
</if>
</if>
|
Enjoy.
|