Important: This page is using cookies (cookies). Using this website without turning off cookies in browser, means that you agree for using it.
Buy Now! Features Downloads

Earn with us!

If you would like to start earning money with vBET join to Affiliate Program.
Results 1 to 7 of 7

Thread: Advertisment in different languages

  1. #1

    Default 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?

  2. #2
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    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.

  3. #3

    Default

    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?
    Last edited by hotslot; 30-04-10 at 00:00.

  4. #4

    Default

    Can I have an example of the code or something please I will try and figure it out.

  5. #5
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    Default

    Quote Originally Posted by hotslot View Post
    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:
    Code:
    <vb:if condition="$_REQUEST['language']">
      THIS IS ONLY ON TRANSLATED SITE
    </vb:if>
    And here example if you want to separate 1 language:
    Code:
    <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:
    Code:
    <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>
    Last edited by vBET; 01-05-10 at 13:44.

  6. #6

    Default

    Thanks man.

    Exactly what I was looking for

  7. #7

    Default

    Text automatically translated from: German to: English
    Translated text
    Many thanks
    Original text

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •