I already hide flags from English users via template conditionals, but now I'd like to take this to the next level, as English-speaking users in other countries who have their browser language set to a foreign language, but land on translated pages of our site when searching with google want to automatically view the English versions rather than the translated versions.
In order to do this I have written the following code.
However, as I'm not that familiar with the internal workings of vBET, I don't know where to place it or how to complete it. Could you please help me with this?
PHP Code:
if ($_GET['language'] != "en" and $vbulletin->userinfo['vbet_def_lang'] == 'en')
{
revert language to english
}
-Which plugin/file would this go into?
-What would I put in place of 'revert language to English'?
Thanks