View Full Version : Solved 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?
If you are using it in template use it in this way:
$_GET[language]
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>
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:
$templater->register('linkstitle', $linkstitle);
2. Put BEFORE:
$templater->register('_REQUEST', $_REQUEST);
This was also not tested.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.