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: vbMediaWiki Vector integration

  1. #1
    Junior Member
    Join Date
    Sep 2010
    Posts
    22

    Default vbMediaWiki Vector integration

    I am currently using this mod
    Code:
     vbulletin.org/forum/showthread.php?t=247279
    It doesn't seems to compatible with vBET since when I tried to browsing to this page
    Code:
    mysite/forum/de/wiki
    It was returned "Page not found"

    Normally the wiki page must be access using this url
    Code:
    mysite/forum/wiki
    Any htaccess modification need to be fix?

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

    Default

    Please show us your actual .htaccess rules and point those which are made for vbMediaWiki (if any).

  3. #3
    Junior Member
    Join Date
    Sep 2010
    Posts
    22

    Default

    Here is all I got

    Code:
    #===VBSEO
    
    # Comment the following line (add '#' at the beginning)
    # to disable mod_rewrite functions.
    # Please note: you still need to disable the hack in
    # the vBSEO control panel to stop url rewrites.
    RewriteEngine On
    
    # Some servers require the Rewritebase directive to be
    # enabled (remove '#' at the beginning to activate)
    # Please note: when enabled, you must include the path
    # to your root vB folder (i.e. RewriteBase /forums/)
    #RewriteBase /forum/
    
    #RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
    #RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]
    
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    
    ### VBET 
    
    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=/forum/index.php [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=/forum/$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]
    
    ## END VBET
    
    
    ### VBSEO
    #RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
    RewriteCond %{REQUEST_URI} !(media/|admincp/|modcp/|cron|vbseo_sitemap)
    RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]
    
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php [L,QSA]

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

    Default

    I just checked link you gave:
    Code:
    YOURFORUM_DOMAIN/forum/wiki
    and it also doesn't work. Please first make sue that the mod is working at all, or give appropriate URL to access its pages.

  5. #5
    Junior Member
    Join Date
    Sep 2010
    Posts
    22

    Default

    Quote Originally Posted by vBET View Post
    I just checked link you gave:
    Code:
    YOURFORUM_DOMAIN/forum/wiki
    and it also doesn't work. Please first make sue that the mod is working at all, or give appropriate URL to access its pages.

    Sorry I was told you the wrong url, actually it should be mydomain/wiki not mydomain/forum/wiki

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

    Default

    So everything is clear now You have to integrate it as described here: How to translate pages outside forum directory?

    This will make links to translated pages recognized. If after this pages will not translate (but work), then please use also this integration instruction for mods which doesn't supports global_complete hook (I do not know will it be necessary of not - I'm giving this information just in case )

  7. #7
    Junior Member
    Join Date
    Sep 2010
    Posts
    22

    Default

    This code should be in mydomain/forum/.htaccess ?? or mydomain/.htaccess?
    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]
    If it should be in mydomain/forum/.htaccess
    Which location I should place the code? after or before the vBET existing condition?
    It just placed it before the vBET and result is : it cause existing vBET feature to broken and not even translate at all.

    And this code should be in mydomain/wiki/.htaccess right?
    Code:
    RewriteCond %{QUERY_STRING} !vbet_outside=true
    RewriteRule ^(.*)$ $1?vbet_outside=true [L,QSA]

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

    Default

    You do not change your .htaccess in forum directory. This is already working. Now you have to integrate directories outside forum.

    It is clearly described, that first set of rules you have to add into .htccess in forum PARENT directory. So mydomain/.htaccess

    And yes - 2nd set you add into wiki directory

  9. #9
    Junior Member
    Join Date
    Sep 2010
    Posts
    22

    Default

    I managed to make it almost working.
    When browsing to following URL My Wiki got translated properly.
    Code:
    http://mydomain/zh-CN/wiki
    However, the navigation menu of wiki alway pointed to incorrect url which is
    Code:
    http://mydomain/forum/zh-CN/wiki.
    How can I fix this ?
    Last edited by cevo; 16-09-10 at 08:30.

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

    Default

    Do you have turned on option URL tracking outside forum directory?
    Do you use ABSOLUTE link (starts from http) for wiki in your output html?

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
  •