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

Thread: vBET integration instructions

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

    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 : http://www.vbenterprisetranslator.co....html#post1546
    Last edited by vBET; 11-07-11 at 01:34.

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

    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. #3
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    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:
    http://www.vbenterprisetranslator.co...tegration.html

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

    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. #5
    Michał Podbielski (vBET Staff) vBET's Avatar
    Join Date
    Oct 2009
    Posts
    3,037

    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: http://www.vbenterprisetranslator.co....html#post1546

    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; 22-04-10 at 20:44.

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

    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; 22-04-10 at 15:28.

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
  •