View Full Version : Advertisment in different languages
Hello, Is there any possibly way to have different banners or links per Language landing spot?
I'm getting a bunch of new hits from a foreign country and there language but they cant understand my advertisement. Is there any way to change banners per language landing spot on my website?
First you can simply use Google AdSense - it will show advertisments appropriatelly for current page language.
If you want to do this manually tou have to edit your templates and in places where you have banner add conditions checking what is value of $_REQUEST['language'] - this way you can set different banners for different translations.
Vbet thanks for help so far..
Google ad sense isn't a good option for what we advertise.
How does one go about editing the templates in this?
Can I have an example of the code or something?
Can I have an example of the code or something please I will try and figure it out.
Can I have an example of the code or something please I will try and figure it out.
This will be shown only on translated pages:
<vb:if condition="$_REQUEST['language']">
THIS IS ONLY ON TRANSLATED SITE
</vb:if>
And here example if you want to separate 1 language:
<vb:if condition="$_REQUEST['language'] == 'pl'">
THIS IS ONLY ON POLISH TRANSLATION
<vb:else />
THIS IS EVERYWHERE ELSE
</vb:if>
And here example if you want to separate many languages:
<vb:if condition="$_REQUEST['language'] == 'pl'">
THIS IS ONLY ON POLISH TRANSLATION
<vb:else if condition="$_REQUEST['language'] == 'ar'" />
THIS IS ONLY ON ARABIC TRANSLATION
<vb:else if condition="$_REQUEST['language'] == 'de'" />
THIS IS ONLY ON GERMAN TRANSLATION
<vb:else />
THIS IS EVERYWHERE ELSE
</vb:if>
Thanks man.
Exactly what I was looking for :)
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.