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 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: Forum links = failure

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

    Default

    Quote Originally Posted by moman View Post
    Ok- thanks! I will try this, but I have one more question.

    Is it possible to just disable translation for those areas and have the link properly point to the url? I have a hunch that the section in question won't translate as it isn't a vBulletin plugin (it only queries the DB separately).
    It doesn't have to be vB plugin - it just have to be page generated by vB. See on our main page, Download or Buy Now sections - those are not made by any plugin, but are generated by vB. So have appropriate template includes global.php and so on. So such pages can be easily translated in the way I described you.

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

    Default

    Quote Originally Posted by moman View Post
    I'll try this with the htaccess file, but five bucks says it won't work. The section in question doesn't necessarily need translation at all, as it is highly technical, so I just want to get around the bug in vBET that translates external links that aren't necessarily part of vB.
    I checked your site. It is working fine - just go to your forum, put some translation and see that tracking is not added to lensreviews...

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

    Default

    Quote Originally Posted by moman View Post
    I applied the htaccess rules as stated in the readme.

    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]
    
    RewriteCond %{QUERY_STRING} !vbet_outside=true
    
    RewriteRule ^(.*)$ $1?vbet_outside=true [L,QSA]
    While Page Not Found - PentaxForums.com did not return a 404, the page was not translated (obviously, since there's no vbet init there), and, furthermore, all links from that page returned the 404 as vBSEO CRR's stopped working.

    Therefore, let's just take the simpler solution and save ourselves a headache:

    How to I prevent forum links from translating?

    Currently, Pentax Lens Review and Specification Database - Main Index (a link) is rewritten to http://www.pentaxforums.com/forums/pl/lensreviews/ (404).

    I want the link to remain unchanged.
    I clearly wrote that site have to be generated by vBulletin to be able to translate it.

    Also - I do not see what you are writing about. I was there and link to lensreviews is not changed. Please give me exact link to page where I can see this broken link.

  4. #14
    Senior Member
    Join Date
    Nov 2009
    Posts
    168

    Default

    Quote Originally Posted by vBET View Post
    Please give me exact link to page where I can see this broken link.
    Go to PentaxForums.com - Pentax Photography Forum and click on Obiektyw Pentax Specyfikacja i weryfikacja danych (it's in the 4th category). You will get a 404.

    However, this same link is in the navbar (first entry under the 'Reviews' button) and you do NOT get a 404.

    Thanks for your help. I still think we're not on the same page as far as what exactly the problem is, so feel free to let me know if you need further explanation. One more time, though, the problem is that

    mysite.com / lensreviews / is rewritten to mysite.com / forums / pl / lensreviews when it goes through a forum link.

    I put spaces so that the URL isn't parsed.

  5. #15
    Senior Member
    Join Date
    Nov 2009
    Posts
    168

    Default

    I suppose a quick fix to this would be to use vBSEO's "Replace 'Forum Links' with direct links to target URLs". However, as I use hit tracking for my external links, doing so would break that system.

    Thus, in accordance with my post above, let's find the correct solution to this.

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

    Default

    Quote Originally Posted by moman View Post
    Go to PentaxForums.com - Pentax Photography Forum and click on Obiektyw Pentax Specyfikacja i weryfikacja danych (it's in the 4th category). You will get a 404.

    However, this same link is in the navbar (first entry under the 'Reviews' button) and you do NOT get a 404.

    Thanks for your help. I still think we're not on the same page as far as what exactly the problem is, so feel free to let me know if you need further explanation. One more time, though, the problem is that

    mysite.com / lensreviews / is rewritten to mysite.com / forums / pl / lensreviews when it goes through a forum link.

    I put spaces so that the URL isn't parsed.
    Now I see it. Those 2 links which you are writing about are not same. One is exact - 2nd have redirections and the issue is right here.

    This with redirections goes by:
    Code:
    Original:
    http://www.pentaxforums.com/forums/pl/forumdisplay.php?f=35
    Then some redirection (not vBET - probably vBSEO or .htaccess):
    http://www.pentaxforums.com/forums/pentax-lens-review-specification-database/
    And next one is by vBET (added language):
    http://www.pentaxforums.com/forums/pl/pentax-lens-review-specification-database/
    Then we have next redirection (not vBET - probably vBSEO or .htaccess):
    http://www.pentaxforums.com/lensreviews/index.php
    And one more time vBET is adding language:
    http://www.pentaxforums.com/forums/pl/lensreviews/
    So here vBET is adding language because you start as link to forum and you have translation tracking on. Then you made 2 redirections and each time vBET is adding translation tracking.

    Quick fix for you below (not tested - so made copy of file and let us know does it work). Also - you should reconfigure your forum to go where you want in first redirection if it is possible.

    Quick fix. Open file vbenterprisetranslator_seo.php, find line:
    Code:
    if (isset($_COOKIE['vbet_language']) && !isset($_GET['language']) && false === strpos($_SERVER['REQUEST_URI'],'external.php')) {
    and replace it by:
    Code:
    if (isset($_COOKIE['vbet_language']) && !isset($_GET['language']) && false === strpos($_SERVER['REQUEST_URI'],'external.php') && false === strpos($_SERVER['REQUEST_URI'],'lensreviews/index.php')) {
    Also we will look for some better solution included in vBET. At this moment vBET is only checking original URL - we didn't thought about such situation as yours. I reopen this issue. Will be closed when official solution will be included in vBET
    Last edited by vBET; 25-12-09 at 18:02.

  7. #17
    Senior Member
    Join Date
    Nov 2009
    Posts
    168

    Default

    Thank you! I modified the code slightly, but it did work. Initially I had to put 'pentax-lens-review-specification-database' for the strpos, but I further changed it to '-review' as I also have PentaxForums.com Third-Party Pentax Lens Review Database - Main Index that was being redirected in error.

    PHP Code:
    if (isset($_COOKIE['vbet_language']) && !isset($_GET['language']) && false === strpos($_SERVER['REQUEST_URI'],'external.php') && false === strpos($_SERVER['REQUEST_URI'],'-review-')) { 
    So now both /lensreviews/ and /userreviews/ is being redirected properly.

    Thanks again!

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

    Default

    Quote Originally Posted by moman View Post
    Thank you! I modified the code slightly, but it did work. Initially I had to put 'pentax-lens-review-specification-database' for the strpos, but I further changed it to '-review' as I also have PentaxForums.com Third-Party Pentax Lens Review Database - Main Index that was being redirected in error.

    PHP Code:
    if (isset($_COOKIE['vbet_language']) && !isset($_GET['language']) && false === strpos($_SERVER['REQUEST_URI'],'external.php') && false === strpos($_SERVER['REQUEST_URI'],'-review-')) { 
    So now both /lensreviews/ and /userreviews/ is being redirected properly.

    Thanks again!
    3.3.0 has additional parameter 'Ignore URLs' - it will keep chosen URLs out of translation tracking. Please check it

Page 2 of 2 FirstFirst 12

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
  •