My forum lives in /forums/, my vBAdvanced is in the root of the domain.
I've added the global statements as directed in another post on your forum and I use "custom" placement for the flags and entered $vbenterprisetranslatorflags only once in my template. On my home page I see (I use an "if" statement so only admins see the flags) the squares for the flags put twice below the navbar. I do not see the flag pictures even though I put copies of them in /images/vbet/flags.
When the flag squares are clicked, the site translates however I get sent to /forums/ but would like the user to stay on the home page when they click a flag. I run NginX and here are my current rewrites for your product. I do not use the SEO option in vbet settings.
# Start translation
location ~* /forums/.*\.(jpg|jpeg|gif|css|png|js) {
root /var/www/htdocs/wizard;
}
location /forums/ {
root /xxx/www/htdocs/wizard;
rewrite ^/forums/(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)/$ /forums/vbenterprisetranslator_seo.php?vbet_lang=$1 last;
rewrite ^/forums/(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)/(.*)?$ /forums/vbenterprisetranslator_seo.php?vbet_lang=$1 last;
if (!-e $request_filename) {
rewrite ^/forums/(.*)$ /forums/vbenterprisetranslator_seo.php last;
}
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /xxx/www/htdocs/wizard$fastcgi_script_name;
include fastcgi_params;
# Resolve some FastCGI errors, with more tolerant buffers and timeouts
fastcgi_connect_timeout 120;
fastcgi_send_timeout 60;
fastcgi_read_timeout 120;
fastcgi_buffer_size 128k;
fastcgi_buffers 4 256k;
fastcgi_busy_buffers_size 256k;
fastcgi_temp_file_write_size 256k;
fastcgi_intercept_errors on;
}
# Stop translation
1. Why a double set of flags?
2. If I have the images in the correct path, what would stop them from displaying?
3. Do you know what I would need to add to my nginx cfg file to allow a user to click a flag on my home page and not get sent to the forums?
Thank you




Reply With Quote
