PDA

View Full Version : Advertisment in different languages



hotslot
29-04-10, 03:12
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?

vBET
29-04-10, 22:05
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.

hotslot
29-04-10, 23:45
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?

hotslot
30-04-10, 17:19
Can I have an example of the code or something please I will try and figure it out.

vBET
01-05-10, 12:16
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>

StarBuG
15-05-10, 22:26
Thanks man.

Exactly what I was looking for :)

Kolbi
16-05-10, 19:09
Thank you:)

AfrikaansAlbanianArabicBelarusianBulgarianCatalanChineseCroatianCzechDanishDutchEnglishEstonianFilipinoFinnishFrenchGalicianGermanGreekHaitian CreoleHebrewHindiHungarianIcelandicIndonesianIrishItalianJapaneseKoreanLatvianLithuanianMacedonianMalayMalteseNorwegianPersianPolishPortugueseRomanianRussianSerbianSlovakSlovenianSpanishSwahiliSwedishTaiwaneseThaiTurkishUkrainianVietnameseWelshYiddish
Translations delivered by vB Enterprise Translator 4.9.99