Here you have instructions for integration: http://www.vbenterprisetranslator.co...tructions.html
THere is described how to integrate with mods which doens't support global_complete hook. In example PhotoPost doesn't - I do not know how it is in case of Photoploq
Anyway I checked this URL: pl/gallery/ - Pentax News & Rumors - PentaxForums.com and it still doesn't work... You wrote that it is fine now, but as I see it isn't...
As I see changes you made are wrong. There is no instruction which describes to set rules with language codes inside of plugin directory.
Please try this set.
For main .htaccess:
Code:
Options All -Indexes
Options +FollowSymLinks
ErrorDocument 404 http://www.pentaxforums.com/404.php
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.pentaxforums\.com
RewriteRule (.*) http://www.pentaxforums.com/$1 [R=301,L]
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 [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 [QSA]
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{Script_FILENAME} !-f
RewriteRule ^(.*)$ index.php?a=$1 [QSA]
For gallery .htaccess:
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.pentaxforums\.com
RewriteRule (.*) http://www.pentaxforums.com/gallery/$1 [L,R=301]
RewriteCond %{QUERY_STRING} !vbseourl=
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /forums/vbseo.php?vbseourl=$1&vbseorelpath=../gallery/&%{QUERY_STRING}
RewriteCond %{QUERY_STRING} !vbet_outside=true
RewriteRule ^(.*)$ $1?vbet_outside=true [L,QSA]
Or for for gallery .htaccess (not according to instructions - try it later):
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.pentaxforums\.com
RewriteRule (.*) http://www.pentaxforums.com/gallery/$1 [L,R=301]
RewriteCond %{QUERY_STRING} !vbet_outside=true
RewriteRule ^(.*)$ $1?vbet_outside=true [QSA]
RewriteCond %{QUERY_STRING} !vbseourl=
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /forums/vbseo.php?vbseourl=$1&vbseorelpath=../gallery/&%{QUERY_STRING} [L]
Please note that this doesn't cover case when global_complete is not supported, but first let just make translation links working appropriately and then check what is going on with translation.
Plrase try it with booth versions for gallery .htaccess. If still not working you can try also this for main .htaccess (with booth versions for gallery .htaccess):
Code:
Options All -Indexes
Options +FollowSymLinks
ErrorDocument 404 http://www.pentaxforums.com/404.php
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.pentaxforums\.com
RewriteRule (.*) http://www.pentaxforums.com/$1 [R=301,L]
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
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{Script_FILENAME} !-f
RewriteRule ^(.*)$ index.php?a=$1 [QSA]
This is also modification because of your rule which maps everthing on index.php - I think that this is the reason why it doesn't work right now.