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 11 to 20 of 24

Thread: FAQ

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #7
    Michał Podbielski (vBET Staff)
    Join Date
    Oct 2009
    Posts
    3,037

    Default How to translate pages outside forum directory?

    If your forum is in subdirectory and you have pages outside it, which are handled by vBulletin, then vBET will support translation for those pages

    All you have to do is set appropriate rules in .htaccess file in forum PARENT directory:
    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)/$ index.php?language=$1&vbet_outside=true [L,QSA]
    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)/(.*)?$ $2?language=$1&vbet_outside=true [L,QSA]
    And for each subdirectory in your domain which should be supported by vBET (without forum directory itself) add this rule in .htaccess file inside of supported subdirectory:
    Code:
    RewriteCond %{QUERY_STRING} !vbet_outside=true
    RewriteRule ^(.*)$ $1?vbet_outside=true [L,QSA]
    So if forum PARENT directory also have to be supported it needs all those rules.

    If you also want to keep translation tracking for those you have to:
    1. Turn on URL tracking outside forum directory in options in Admin CP
    2. Make sure that links to those pages are ABSOLUTE (so starts from http)


    Also make sure that there is base tag in generated HTML output for pages outside forum directory. If not then edit template which generates those pages and add code below in any place between <head> and </head>:
    Code:
    <if condition="!$_REQUEST['language']"><base href="$vboptions[bburl]/" /></if>
    Last edited by vBET; 10-08-10 at 11:00.

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
  •