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 5 of 5

Thread: Condition for translation

  1. #1

    Question Condition for translation

    Hi

    I want to show the "Automatic Translation Powered by Google" in my footer below the copyright when a translated page is shown.

    But the $_GET['language'] condition does not work in the footer template.

    Is there another way?

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

    Default

    If you are using it in template use it in this way:
    $_GET[language]

  3. #3

    Default

    Does not work!

    <vb:if condition="$_GET[language]">
    <div class="shade footer_copyright" align="center">
    Automatic Translations (Powered by <span style="vertical-align: sub;"><img title="Powered by Google" src="http://www.google.com/uds/css/small-logo.png" alt="Powered by Google" border="0"></span>)
    </div>
    </vb:if>

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

    Default

    Sorry I miss section For vBET 4.x it is $_REQUEST['language'] (' signs are allowed in condition).

    PLEASE NOTE: It is not tested - vB4 requires to predefine all variables used in templates. Some are defined automatically, but not sure that $_REQUEST is so this can not work.

    If it doesn't work then ADDITIONALLY please edit file /includes/vbenterprisetrnaslator_functions_hooks.php
    1. Find:
    PHP Code:
    $templater->register('linkstitle'$linkstitle); 
    2. Put BEFORE:
    PHP Code:
    $templater->register('_REQUEST'$_REQUEST); 
    This was also not tested.
    Last edited by vBET; 01-04-10 at 12:47.

  5. #5

    Default

    Perfect, thanks

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
  •