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.
Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Googlebot has discovered errors

  1. #1

    Default Googlebot has discovered errors

    Text automatically translated from: Russian to: English
    Translated text
    Good day!
    Got a message from Google:
    Original text

    Робот Googlebot столкнулся с проблемами при сканировании вашего сайта http://www.manual-car.org.ua/.

    Робот Googlebot обнаружил чрезвычайно большое количество ссылок на вашем сайте. Это может свидетельствовать о проблеме, связанной со структурой URL-адресов сайта. Возможно, робот Googlebot без необходимости сканирует большое количество различных URL, указывающих на идентичное или похожее содержание, либо сканирует разделы сайта, не требующие сканирования. В результате робот Googlebot может потреблять гораздо больше ресурсов канала передачи данных, чем необходимо. Кроме того, есть вероятность, что он не сможет полностью просканировать все содержание сайта.


    Приводим примерный список URL-адресов с возможными проблемами. Обратите внимание, что данный список может быть неполным.


    * http://www.manual-car.org.ua/id/member.php/12471-elili
    * http://www.manual-car.org.ua/et/memberlist.php?&pp=30&order=desc&sort=posts&page=286
    * http://www.manual-car.org.ua/mk/pt/en/tr/yi/af/en/archive/index.php/f-1.html?language=tl
    * http://www.manual-car.org.ua/th/bg/en/ko/en/archive/index.php/f-1.html?language=tl
    * http://www.manual-car.org.ua/yi/memberlist.php?&pp=30&order=asc&sort=reputation&page=107
    * http://www.manual-car.org.ua/?pageid=Mitsubishi&news_all_page=117
    * http://www.manual-car.org.ua/hi/archive/index.php/t-1584.html
    * http://www.manual-car.org.ua/hr/da/cs/archive/index.php/f-1.html?language=tl
    * http://www.manual-car.org.ua/is/es/sw/iw/member.php?u=2342&language=id
    * http://www.manual-car.org.ua/th/member.php?u=15412
    * http://www.manual-car.org.ua/ko/memberlist.php?ltr=0Q&order=DESC&sort=posts&pp=30
    * http://www.manual-car.org.ua/be/showpost.php?p=1338
    * http://www.manual-car.org.ua/ja/member.php?u=2398&tab=aboutme
    * http://www.manual-car.org.ua/af/member.php?u=16856
    * http://www.manual-car.org.ua/sl/showthread.php?p=2711
    * http://www.manual-car.org.ua/ga/af/gl/member.php?u=2525
    * http://www.manual-car.org.ua/zh-CN/member.php/13062-nicko.black
    * http://www.manual-car.org.ua/uk/fi/vi/?pageid=Nissan&language=yi
    * http://www.manual-car.org.ua/tl/showthread.php?t=887&daysprune=-1
    * http://www.manual-car.org.ua/sl/attachment.php?attachmentid=1198&d=1288080097
    * http://www.manual-car.org.ua/da/fa/ko/hi/af/en/archive/index.php/f-1.html?language=tl
    * http://www.manual-car.org.ua/th/member.php?u=509&tab=aboutme
    * http://www.manual-car.org.ua/pt/member.php?u=3692&tab=aboutme
    * http://www.manual-car.org.ua/id/archive/index.php/t-658.html
    * http://www.manual-car.org.ua/en/showthread.php/813-Renault-(Dacia)-Logan-User-Guide-instruction-on-repair-maintenance-and-operation-of-the-vehicle.
    * http://www.manual-car.org.ua/mt/?
    * http://www.manual-car.org.ua/mk/ko/es/it/fa/af/en/archive/index.php/f-1.html?language=tl
    * http://www.manual-car.org.ua/uk/member.php?u=18428
    * http://www.manual-car.org.ua/fa/ja/lt/archive/index.php/f-1.html?language=tl
    * http://www.manual-car.org.ua/zh-CN/es/sw/de/no/vi/?pageid=Nissan&language=lt
    * http://www.manual-car.org.ua/ca/sl/fi/hi/af/en/archive/index.php/f-1.html?language=tl
    * http://www.manual-car.org.ua/hr/newreply.php?t=1792
    * http://www.manual-car.org.ua/fa/showthread.php?t=1810&page=1
    * http://www.manual-car.org.ua/gl/showthread.php?t=1018&pagenumber=&p=1377
    * http://www.manual-car.org.ua/no/forumdisplay.php?f=57&page=2
    * http://www.manual-car.org.ua/de/?pageid=Kia&news_all_page=24
    * http://www.manual-car.org.ua/et/memberlist.php?&order=asc&sort=username&page=218
    * http://www.manual-car.org.ua/en/showthread.php?t=1587&page=1
    * http://www.manual-car.org.ua/ro/memberlist.php?&pp=30&order=desc&sort=posts&page=441
    * http://www.manual-car.org.ua/ca/member.php/12388-audrius
    * http://www.manual-car.org.ua/es/showthread.php?t=1119&p=1544
    * http://www.manual-car.org.ua/th/fr/es/ko/fa/af/en/archive/index.php/f-1.html?language=tl
    * http://www.manual-car.org.ua/es/es/hu/ar/vi/?pageid=Nissan&language=sw
    * http://www.manual-car.org.ua/da/sk/pt/vi/?pageid=Nissan&language=cy
    * http://www.manual-car.org.ua/lv/member.php?u=9707&tab=aboutme
    * http://www.manual-car.org.ua/id/showthread.php?p=1826
    * http://www.manual-car.org.ua/ar/showthread.php/1094-Great-Wall-Hover-%D1%81-2004-%D1%80%D1%83%D0%BA%D0%BE%D0%B2%D0%BE%D0%B4%D1%81%D1%82%D0%B2%D0%BE-%D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D0%BE%D0%B2%D0%B0%D1%82%D0%B5%D0%BB%D1%8F-%D0%B8%D0%BD%D1%81%D1%82%D1%80%D1%83%D0%BA%D1%86%D0%B8%D1%8F-%D0%BF%D0%BE-%D1%80%D0%B5%D0%BC%D0%BE%D0%BD%D1%82%D1%83-%D0%BE%D0%B1%D1%81%D0%BB%D1%83%D0%B6%D0%B8%D0%B2%D0%B0%D0%BD%D0%B8%D1%8E-%D0%B8-%D1%8D%D0%BA%D1%81%D0%BF%D0%BB%D1%83%D0%B0%D1%82%D0%B0%D1%86%D0%B8%D0%B8.
    * http://www.manual-car.org.ua/mt/es/ms/nl/yi/member.php?u=2126&language=tl
    * http://www.manual-car.org.ua/it/ar/be/af/ar/tr/member.php?u=1
    Text automatically translated from: Russian to: English
    Translated text
    use robots.txt

    - How to fix these bugs crawl Google ..?

    Thank you!
    Original text

  2. #2
    vBulletin Enterprise Translator (vBET) Staff
    Join Date
    May 2010
    Posts
    1,000

    Default

    hmm As I see in zour post you have a url into:
    1. attachment
    2 member
    3. memberlist
    and in your robots.txt file I can't see this pages blocked (must be for all enabled language)

    example:
    Code:
    Disallow: /forum/mt/member.php
    Disallow: /no/member.php
    Disallow: /fa/member.php
    Disallow: /pl/member.php
    Disallow: /pt/member.php
    Disallow: /ro/member.php
    Disallow: /ru/member.php
    Disallow: /sr/member.php
    Disallow: /sk/member.php
    Disallow: /sl/member.php
    Disallow: /es/member.php
    Disallow: /sw/member.php
    Disallow: /sv/member.php
    
    Disallow: /memberlist.php
    Disallow: /af/memberlist.php
    Disallow: /sq/memberlist.php
    Disallow: /ar/memberlist.php
    Disallow: /hy/memberlist.php
    Disallow: /az/memberlist.php
    Disallow: /eu/memberlist.php
    Disallow: /be/memberlist.php
    Disallow: /bg/memberlist.php
    Disallow: /ca/memberlist.php
    Disallow: /zh-CN/memberlist.php
    Disallow: /hr/memberlist.php
    so block this pages for all languages in robots.txt.

    What about archive links? I was on your archive and links and translations inside looks ok, but in this google message you have a double or more coge key in url. Maybe old cache? please try to clead all cache and check it again.
    Last edited by kamilkurczak; 14-01-11 at 13:37.

  3. #3

    Default

    Quote Originally Posted by kamilkurczak View Post
    hmm As I see in zour post you have a url into:
    1. attachment
    2 member
    3. memberlist
    and in your robots.txt file I can't see this pages blocked (must be for all enabled language)

    example:
    Code:
    Disallow: /forum/mt/member.php
    Disallow: /no/member.php
    Disallow: /fa/member.php
    Disallow: /pl/member.php
    Disallow: /pt/member.php
    
    Disallow: /memberlist.php
    Disallow: /af/memberlist.php
    Disallow: /sq/memberlist.php
    Disallow: /ar/memberlist.php
    Disallow: /hy/memberlist.php

    so block this pages for all languages in robots.txt.
    Text automatically translated from: Russian to: English
    Translated text
    - Added the robots in all languages ....
    Original text

    Quote Originally Posted by kamilkurczak View Post
    ... in this google message you have a double or more coge key in url. Maybe old cache? please try to clead all cache and check it again.
    Text automatically translated from: Russian to: English
    Translated text
    - A cache you have in mind (cache vBulletin or cache server, FreeBSD)?
    Original text

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

    Default

    Hello. I see the issue - it is because you have in links several times language code! So there is loop in links which provides to endless amount of URLs with same pages.

    I will fast check what happens there - does those links are inside of your forum (so does vBET on your forum on translated page generates wrong URLs) or maybe you are attacked by someone from outside who on his own page created manually wrong URLs and Google started crawling it.

    Also I will give you additional .htaccess rule which will find such URLs and redirect it to 1 language used. This will solve the issue.

    Please give me some little time to check it on your forum first

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

    Default

    After fast check of mentioned links I see that you have also other issue on your forum - not related to vBET. Your archive pages generates wrong. This is not related to vBET, because it happens on original - not translated pages.

    Please see here:
    Code:
    http://www.manual-car.org.ua/archive/index.php/f-1.html
    There is no content... It should include links to sub-forums but it doesn't.

    Also checking this page I can tell that vBET generates appropriate links. When I went to translated one:
    Code:
    http://www.manual-car.org.ua/pl/archive/index.php/f-1.html
    All links in other flags are OK - do not add more that one language code like you have from Google:
    Code:
    http://www.manual-car.org.ua/mk/pt/en/tr/yi/af/en/archive/index.php/f-1.html?language=tl
    Please note language= at the end of URL - you have turned on SEO links, so vBET doesn't generate nothing like that. Probably you had language= type of links previously and changed it to SEO without adding to .htaccess additional rules which will redirect language= links to SEO links.

    And this language= is the reason of whole issue. You can check it - links created by vBET are OK after translation. Links written manually with language= creates error.

    Please give your full .htaccess content - I will write you back how it should look after adding appropriate rules.
    Last edited by vBET; 14-01-11 at 19:47.

  6. #6

    Default

    Options +FollowSymLinks
    RewriteEngine On
    RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

    RewriteCond %{HTTP_HOST} ^manual-car.org\.ua$ [NC]
    RewriteRule ^(.*)$ http://www.manual-car.org.ua/$1 [R=301,L]



    #RULES for SEO translation links without any SEO engine (on raw vBulletin links)
    #If you are using vB 'Mod Rewrite Friendly URLs' then put those rules JUST BEFORE vB rules
    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)/archive/index.php/(.*)?$ archive/index.php?/$2&language=$1 [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)/$ index.php?language=$1 [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 [QSA]

    #************************************************************************--
    #RULES for SEO translation links with vBSEO (have to be included before all rules to vbseo.php)
    #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)/$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/ [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)/(.*)?$ vbenterprisetranslator_seo.php?vbet_lang=$1&redirected=/$2 [L,QSA]

    #RewriteCond %{REQUEST_URI} !(admincp/|modcp/|vbseo_sitemap/|cron)
    #RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbenterprisetranslator_seo.php [L,QSA]

    #RewriteCond %{REQUEST_FILENAME} !-f
    #RewriteCond %{REQUEST_FILENAME} !-d
    #RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
    #RewriteRule $ vbenterprisetranslator_seo.php [L,QSA]

    #************************************************************************--
    #RULES for pages outside forum directory handled by vBulletin

    #Those rules have to be in domain main folder
    #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]

    #This rule must be in each directory which have to be supported (without forum directory itself)
    #RewriteCond %{QUERY_STRING} !vbet_outside=true
    #RewriteRule ^(.*)$ $1?vbet_outside=true [L,QSA]


    #####Start VB Pro Garage Settings##########

    RewriteRule ^garage.html$ garage.php [NC,L]
    RewriteRule ^garage-category-([0-9]+)-([0-9]+).html$ garage.php?sub_id=$1&page=$2 [QSA,NC,L]
    RewriteRule ^garage-category-([0-9]+).html$ garage.php?sub_id=$1 [QSA,NC,L]
    RewriteRule ^garage-browse-([0-9]+).html$ garage.php?do=browse&page=$1 [QSA,NC,L]
    RewriteRule ^garage-browse.html$ garage.php?do=browse [QSA,NC,L]
    RewriteRule ^garage-search.html$ garage.php?do=search [QSA,NC,L]
    RewriteRule ^garage-vehicle-map.html$ garage.php?do=veh_map [NC,L]
    RewriteRule ^garage-search_results-([0-9]+).html$ garage.php?do=search_results&page=$1 [QSA,NC,L]
    RewriteRule ^garage-search_results.html$ garage.php?do=search_results [QSA,NC,L]
    RewriteRule ^garage-timeslips-([0-9]+).html$ garage.php?do=timeslip&page=$1 [QSA,NC,L]
    RewriteRule ^garage-timeslips.html$ garage.php?do=timeslip [QSA,NC,L]
    RewriteRule ^garage-vehicle-([0-9]+)-AllImages-([a-zA-Z0-9_-]+).html$ garage_vehicle.php?do=view_vehicle&subdo=images&order=all&id=$1 [NC,L]
    RewriteRule ^garage-vehicle-([0-9]+)-([a-zA-Z0-9_-]+).html$ garage_vehicle.php?do=view_vehicle&id=$1 [NC,L]
    RewriteRule ^garage-image-comments-([0-9]+)-([0-9]+).html$ garage_comments.php?do=view_img_comments&id=$1&page=$2 [NC,L]
    RewriteRule ^garage-image-comments-([0-9]+).html$ garage_comments.php?do=view_img_comments&id=$1 [NC,L]
    RewriteRule ^garage-user-view-([0-9]+).html$ garage.php?do=user_garage_view&id=$1 [NC,L]
    RewriteRule ^garage-attach-([0-9]+).html$ garage_attachment.php?id=$1 [NC,L]
    RewriteRule ^garage-attach-([0-9]+)-full.html$ garage_attachment.php?id=$1&attach_type=full [NC,L]
    RewriteRule ^garage-view-timeslip-([0-9]+).html$ garage_timeslips.php?do=view_timeslip&id=$1 [NC,L]
    RewriteRule ^garage-all-comments-([0-9]+).html$ garage_comments.php?do=viewall&page=$1 [NC,L]
    RewriteRule ^garage-all-comments.html$ garage_comments.php?do=viewall [NC,L]
    RewriteRule ^garage-browse-make-([0-9]+)-([a-zA-Z0-9_-]+).html$ garage.php?do=browse_front_model&front_make_id=$1 [NC,L]
    RewriteRule ^garage-browse-model-([0-9]+)-([0-9]+)-([a-zA-Z0-9_-]+).html$ garage.php?do=browse_model&front_model_id=$2&page=$1 [NC,L]
    RewriteRule ^garage-browse-model-([0-9]+)-([a-zA-Z0-9_-]+).html$ garage.php?do=browse_model&front_model_id=$1 [NC,L]

    #####End VB Pro Garage Settings##########
    Last edited by Vetall; 17-01-11 at 07:01.

  7. #7
    vBulletin Enterprise Translator (vBET) Staff
    Join Date
    May 2010
    Posts
    1,000

    Default

    hello,

    As michał said the indexed url with language code inside can provide this issue.

    As I see you don't use vBSEO?
    I will check your .htaccess fille and write here a new one for you because the code from FAQ is working only with vBSEO.
    I am working on quick fix for you.
    Last edited by kamilkurczak; 17-01-11 at 16:45.

  8. #8
    vBulletin Enterprise Translator (vBET) Staff
    Join Date
    May 2010
    Posts
    1,000

    Default

    Hello,
    I have a quick fix for you.
    This solution redirect you from many language code (example: /pl/ru/iw/) to one language code (in this example should be /pl/)
    This is solution for foruma pages:

    1.open, edit and make a copy of /forum root/includes/vbenterprisetranslator_functions_hooks.php file
    2. in this file find:
    PHP Code:
    function vbet_global_bootstrap_complete() { 
    3. in this function find:
    PHP Code:
    if (THIS_SCRIPT != 'css' && !$vbulletin->userinfo['userid'] && $vbulletin->options['vbenterprisetranslator_guestfilecache_use'] && vbet_isLangOn($_REQUEST['language'], 'vbenterprisetranslator_guestfilecache'
    4. paste BEFORE this code:
    PHP Code:
    if ('REQUEST_URI' == $vbulletin->options['vbenterprisetranslator_linkstype'] && $_REQUEST['goto'] != 'newpost' && $_REQUEST['language'])
        {
            require_once(
    DIR'/includes/vbenterprisetranslator_functions_url_tracking.php');
            
    $url str_replace('/'.$_REQUEST['language'].'/''/'$_SERVER['REQUEST_URI']);
            
            if(
    preg_match('/\/('.VBET_LANGUAGESMATCH.')\//',$url)) 
            {
                
                
    $url preg_replace('/('.VBET_LANGUAGESMATCH.')\//','',$url);
                
    exec_header_redirect($url);
            }
        } 
    5. save and update file.
    6. test it.

    and here you have a solution for archive part of your forum:

    1.open, edit and make a copy of /forum root/includes/vbenterprisetranslator_functions_hooks.php file
    2. in this file find:
    PHP Code:
    function vbet_archive_complete(&$output) { 
    3. in this function find:
    PHP Code:
    $vboptions['cutbburl'] =  vbet_createURLForAddressNoReplace($_REQUEST['language'], $vboptions['cutbburl']);

    4. paste AFTER this code:
    PHP Code:
    if ('REQUEST_URI' == $vbulletin->options['vbenterprisetranslator_linkstype'])
              {
                  
    $url str_replace('/'.$_REQUEST['language'].'/''/'$_SERVER['REQUEST_URI']);
                  
                  if(
    preg_match('/\/('.VBET_LANGUAGESMATCH.')\//',$url)) 
                  {
                    
                      
    $url preg_replace('/('.VBET_LANGUAGESMATCH.')\//','',$url);
                      
    exec_header_redirect($url);
                  }
              } 
    5. save and update file.
    6. test it.

    Please, after this changes confirm it here and I will check it how it works on your forum.

    I am waiting for confirmation.
    I will move this thread into bug reporting section.
    Solved and will be included in the next relase.
    Thanks.
    Last edited by kamilkurczak; 19-01-11 at 10:25.

  9. #9

    Default

    Text automatically translated from: Russian to: English
    Translated text
    Hi!
    Thank you for your work!

    only in my file / Forum root / includes / vbenterprisetranslator_functions_hooks.php

    no:
    Code:
    function vbet_global_bootstrap_complete() {
    Code:
    if (THIS_SCRIPT != 'css' && !$vbulletin->userinfo['userid'] && $vbulletin->options['vbenterprisetranslator_guestfilecache_use'] && vbet_isLangOn($_REQUEST['language'], 'vbenterprisetranslator_guestfilecache')
    but there is:
    Code:
    if (THIS_SCRIPT != 'css' && !$vbulletin->userinfo['userid'] && $vbulletin->options['vbenterprisetranslator_guestfilecache_use']

    I put him in front of your code:
    Code:
    if ('REQUEST_URI' == $vbulletin->options['vbenterprisetranslator_linkstype'] && $_REQUEST['goto'] != 'newpost' && $_REQUEST['language'])
        {
            require_once(DIR. '/includes/vbenterprisetranslator_functions_url_tracking.php');
            $url = str_replace('/'.$_REQUEST['language'].'/', '/', $_SERVER['REQUEST_URI']);
            
            if(preg_match('/\/('.VBET_LANGUAGESMATCH.')\//',$url)) 
            {
                
                $url = preg_replace('/('.VBET_LANGUAGESMATCH.')\//','',$url);
                exec_header_redirect($url);
            }
        }

    I also completed the second change:
    Code:
    $vboptions['cutbburl'] =  vbet_createURLForAddressNoReplace($_REQUEST['language'], $vboptions['cutbburl']);
    }
    if ('REQUEST_URI' == $vbulletin->options['vbenterprisetranslator_linkstype'])
              {
                  $url = str_replace('/'.$_REQUEST['language'].'/', '/', $_SERVER['REQUEST_URI']);
                  // if languages code is still in url
                  if(preg_match('/\/('.VBET_LANGUAGESMATCH.')\//',$url)) 
                  {
                      //all unnecessary languages are cut off immediately (no more redirection)
                      $url = preg_replace('/('.VBET_LANGUAGESMATCH.')\//','',$url);
                      exec_header_redirect($url);
                  }
              }  
    }
    function vbet_editor_toolbar_end(&$editor_template_name) {
    require_once(DIR. '/includes/vbenterprisetranslator_functions_utils.php');
    Check:

    Code:
    http://www.manual-car.org.ua/zh-CN/es/sw/de/no/vi/?pageid=Nissan
    - Is transformed into

    Code:
    http://www.manual-car.org.ua/zh-CN/?pageid=Nissan
    - Works!


    Code:
    http://www.manual-car.org.ua/ca/sl/fi/hi/af/en/archive/index.php/f-1.html?language=tl
    - Not converted remains the same:

    Code:
    http://www.manual-car.org.ua/ca/sl/fi/hi/af/en/archive/index.php/f-1.html?language=tl
    [

    - Does not work ... :-(
    Original text
    Last edited by kamilkurczak; 19-01-11 at 10:18.

  10. #10
    vBulletin Enterprise Translator (vBET) Staff
    Join Date
    May 2010
    Posts
    1,000

    Default

    hello,

    Firstly please edit your post because it is not translated (please set a good language)
    so please try this code into archive:
    and here you have a solution for archive part of your forum:

    1.open, edit and make a copy of /forum root/includes/vbenterprisetranslator_functions_hooks.php file
    2. in this file find:
    PHP Code:
    function vbet_archive_complete(&$output) { 
    3. in this function find:
    PHP Code:
    $vboptions['cutbburl'] =  vbet_createURLForAddressNoReplace($_REQUEST['language'], $vboptions['cutbburl']);

    4. paste AFTER this code:
    PHP Code:
    if ('REQUEST_URI' == $vbulletin->options['vbenterprisetranslator_linkstype'])
              {
                 require_once(
    DIR'/includes/vbenterprisetranslator_functions_url_tracking.php');
                  
    $url str_replace('/'.$_REQUEST['language'].'/''/'$_SERVER['REQUEST_URI']);
                  
                  if(
    preg_match('/\/('.VBET_LANGUAGESMATCH.')\//',$url)) 
                  {
                      
                      
    $url preg_replace('/('.VBET_LANGUAGESMATCH.')\//','',$url);
                      
    exec_header_redirect($url);
                  }
              } 
    5. save and update file.
    6. test it.

    Please, after this changes confirm it here and I will check it how it works on your forum.

    I am waiting for confirmation.

    Thanks.
    Last edited by kamilkurczak; 19-01-11 at 10:25.

Page 1 of 2 12 LastLast

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
  •