The future is now!
vBulletin Enterprise Translator (vBET)  
Automatic Translations (Powered by Powered by Google):
Afrikaans Albanian Arabic Belarusian Bulgarian Catalan Chinese Croatian Czech Danish Dutch English Estonian Filipino Finnish French Galician German Greek Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Taiwanese Thai Turkish Ukrainian Vietnamese Welsh Yiddish

Go Back   vBulletin Enterprise Translator (vBET) > vBET 4.x Plugin/Mod > vBET4 Integration with other plugins
Register FAQ Calendar Mark Forums Read EnglishTranslations

Closed Thread
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-14-2010, 03:21 PM
vBET's Avatar
Michał Podbielski (vBET Staff)
 
Join Date: Oct 2009
Posts: 1,615
Default vBET integration instructions

Installation of vBET is easy Still integration with other plugins can be tricky. It is because each mod is working in different way and using other hooks. But first of all:
You do NOT have to integrate vBET with all your other mods. Most mods are working fine with vBET without any additional steps.

Below you will find general integration instructions and after that instructions for specific mods (if you do not find your mod name there - please fallow general instructions).

Which mods possibly will require additional vBET integration:
  1. Generating page content by Ajax
  2. SEO engines
  3. Creating new ways of adding user messages
  4. Using its own subdirectory in URL (excluding SEO engines, where such subdirectory is virtual)
  5. Generating content without usage of global_complete hook

How to integrate vBET exactly with this mod:
Also if you want to translate pages supported by vBulletin, but outside forum directory, then see here for instructions : FAQ

Last edited by vBET; 05-13-2010 at 05:57 PM.
  #2 (permalink)  
Old 03-14-2010, 03:27 PM
vBET's Avatar
Michał Podbielski (vBET Staff)
 
Join Date: Oct 2009
Posts: 1,615
Default Integrate with mods generating page content by Ajax

Requires basic PHP knowledge.
Integration of first group is easy as long as xml_print_output is used. If you are not sure does specific mod is using it ask mod author or just try to integrate and check results.
So to integrate it all what you have to do is find place (in some plugin or php file) where mod generates URL for Ajax request and add at the end of this request:
Code:
.'&language='.$_REQUEST['language']
or if there is no any parameter in URL:
Code:
.'?language='.$_REQUEST['language']
  #3 (permalink)  
Old 03-14-2010, 03:28 PM
vBET's Avatar
Michał Podbielski (vBET Staff)
 
Join Date: Oct 2009
Posts: 1,615
Default Integrate with SEO engines

vBET4.x officially supports vBulletin4 Frinedly URLs and vBSEO. Friendly URLs are working without any additional integration. For vBSEO integration instructions please see here:
vBSEO integration
  #4 (permalink)  
Old 03-14-2010, 03:29 PM
vBET's Avatar
Michał Podbielski (vBET Staff)
 
Join Date: Oct 2009
Posts: 1,615
Default Integrate with mods creating new ways of adding user messages

In such case there is needed special integration mod designed for specific plugin. For example vBET3.x supports adding content by vB Advanced Dynamics (here is integration plugin).
  #5 (permalink)  
Old 03-14-2010, 03:31 PM
vBET's Avatar
Michał Podbielski (vBET Staff)
 
Join Date: Oct 2009
Posts: 1,615
Default Integrate with mods using its own subdirectory in URL (excluding SEO engines, where such subdirectory is virtual)

First go to Admin CP -> vBET -> Main and set your additional directories in Keep Directories parameter.

For next step we have 2 cases here:
a) Your forum is using subdirectory in URL so you need to support content outside forum directory.
In such case just fallow instructions in this article: FAQ

b) Your forum is not using subdirectory in URL, so all directories added by mods are subdirectories of forum URL
In such case check does it is working right now. If not then add to .htaccess file in your forum main directory this rule (BEFORE other vBET rules):
Code:
RewriteRule ^/?(af|sq|ar|be|bg|ca|zh-CN|hr|cs|da|nl|en|et|tl|fi|fr|gl|de|el|iw|hi|hu|is|id|ga|it|ja|ko|lv|lt|mk|ms|mt|no|fa|pl|pt|ro|ru|sr|sk|sl|es|sw|sv|zh-TW|th|tr|uk|vi|cy|yi)/ADDITIONAL_DIRECTORY/(.*)?$ /ADDITIONAL_DIRECTORY/$2?language=$1 [L,QSA]
Please note that you have to change there ADDITIONAL_DIRECTORY to your directory name and you need such rule for each additional directory which you want to support and which is not working. Also please note that it is mostly needed when vBSEO is used.

Last edited by vBET; 04-22-2010 at 07:44 PM.
  #6 (permalink)  
Old 03-14-2010, 03:35 PM
vBET's Avatar
Michał Podbielski (vBET Staff)
 
Join Date: Oct 2009
Posts: 1,615
Default Integrate with mods generating content without usage of global_complete hook

Supported since: vBET 4.2.1

Some mods like PhotoPost uses its own directories in URL and generate results straight to the output without usage of global_complete, which is necessary for vBET to make translation. In such case please follow instructions below.

NOTE: use it ONLY for mods which generates output using vBulletin but without global_complete hook. If you are not sure does particular mod is using it or not then please check mods list in first post. If you will not find it there then please first fallow steps from previous post and check does it working. If not then fallow this one. Please backup your .htaccess file before changes. Please note that it was tested on PhotoPost and we cannot guarantee that it will work for other mods without additional .htaccess changes which are not listed in instructions below.

Integration instructions:
  1. In vBET package /do-not-upload/tools/vbenterprisetranslator_front_controller.php change 'SET_HERE_FULL_FORUM_DIRECTORY_PATH' to your full forum directory path.
    Do not use '/' at the end. If you do not know what is your path, please see below for instructions.
  2. Copy vbenterprisetranslator_front_controller.php file to directory used by mod in URL
  3. Edit/create .htaccess file in directory used by mod in URL - for each existing rule make sure that it ends by [QSA] (it cannot end by [L] or even have L inside of ending [])
  4. For directory used by mod in URL fallow instructions from previous post.
  5. At the end of .htaccess file in directory used by mod in URL add this rule:
    Code:
    RewriteCond %{QUERY_STRING} !redirected=
    RewriteCond %{QUERY_STRING} language=
    RewriteRule ^(.*)$ vbenterprisetranslator_front_controller.php?redirected=$1&vbet_outside=true [L,QSA]
  6. If rule bellow exists in edited .htacess file then make sure that it is at the end of file, if not then add it there:
    Code:
    RewriteCond %{QUERY_STRING} !vbet_outside=true
    RewriteRule ^(.*)$ $1?vbet_outside=true [L,QSA]

How to check my full forum directory path:
  1. Upload file vBET_package/do-not-upload/tools/actualdirectory.php to your forum directory.
  2. Put URL to actualdirectory.php file in web browser and see the results.

Last edited by vBET; 04-22-2010 at 02:28 PM.
Closed Thread

Tags
htaccess, integration, language, mod, plugin, seo, sitemap, translation, vb enterprise translator, vbet, vbseo, vbulletin

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 02:20 PM.


vBET 3.3.6 gives automatic translations
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.5.1 PL1

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23