View Full Version : Mini Mods - Set forum-language automatic to browser-language for first-time-visitors
JoergZ
05-23-2010, 10:00 PM
Short-description
This is an update for vB4 of my older version (https://vborg.vbsupport.ru/showthread.php?t=129081).
This Hack detects the browser-language automatic and shows the board in the language of the user, if the user has never been at your board before or has no cookie for your board.
The mod was rewritten and don't need any manual edit anymore as in earlier versions.
Requirements
vB 4.0 (Tested with 4.0.3)
Of course more than one installed and selectable language, otherwise this modification makes no sense ;)Installation
Easy: Only import the product-xml -> Done
PLEASE CLICK THE INSTALL BUTTON IF INSTALLED! :)
Support
I did not marked the "Supported" box, because I may have not the time to react immedeately to questions. But don't worry, I will not abandon you ;)
------------------------------------------------------------------------
If you want to test the hack after installing, do it like this:
- Open a new browser-window and use the "in private-mode"
- Set your language preferences in the browser
- Go to your forum homepage
Datenpapst
05-24-2010, 01:36 PM
Note: It is necessary, that your installed languages have the
correct id in the field "Language Code"
(AdminCP -> Languages & Phrases -> Langauge Manger -> Edit Settings)
Where to do that? There are no numbers like in the old version ^^
JoergZ
05-24-2010, 03:03 PM
In the settings of your language.
As I wrote: AdminCP -> Languages & Phrases -> Langauge Manger -> Edit Settings
There the field "Language Code". A list of correct languages-codes can be found e.g. here: http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
I attached 3 screenshots.
Usually the language-code is correct, after you import a language. At least for the official languages. I wrote it in the description, just to make it sure it's there, because my little hack needs this information.
Br
Joerg
Datenpapst
06-04-2010, 08:32 PM
ah ok, so no more numbers to type in the code? ^^
JoergZ
06-04-2010, 09:04 PM
Nope.. :)
Totally "Plug-and-Play" :D
CrystaStarLight
08-17-2010, 07:02 PM
Hi! Great mod! Is this compatible with this mod?
https://vborg.vbsupport.ru/showthread.php?t=232456
JoergZ
08-17-2010, 07:39 PM
Hi !
Nice to hear you like this little modification. :)
There should be no problems having it installed together with the translation-mod.
Joerg
lemonadesoda
08-19-2010, 07:06 PM
This is very useful. Thanks
COL NIL SATIS
08-19-2010, 07:46 PM
Will this work for curent members too ...we have a large Greek base at our site and this would be great for the Greek lads ??
digitalnorte
09-21-2010, 07:03 PM
Installing and running fine !!!
Tks Joerg :)
JoergZ
09-27-2010, 11:15 AM
Hi COL NIL SATIS,
sorry, I did not saw your question earlier.
Will this work for curent members too ...we have a large Greek base at our site and this would be great for the Greek lads ??
This hack has only an effect for people, who visit your board for the first time, or have no cookie stored for your site.
Existing members usually have a cookie and have saved their preferred language in the board-settings. In this case my hack has no effect, because these settings have a higher priority. In other words: Existing members will not notice any change when you install my hack. (Except they use the "log out" function, then the cookie from the board is removed).
If you have furhter questions, don't hestiate to ask.
Best regards
Joerg
Gnoll
09-27-2010, 12:01 PM
Thats the mod i'm looking ty :)
COL NIL SATIS
09-28-2010, 04:50 PM
Hi COL NIL SATIS,
sorry, I did not saw your question earlier.
This hack has only an effect for people, who visit your board for the first time, or have no cookie stored for your site.
Existing members usually have a cookie and have saved their preferred language in the board-settings. In this case my hack has no effect, because these settings have a higher priority. In other words: Existing members will not notice any change when you install my hack. (Except they use the "log out" function, then the cookie from the board is removed).
If you have furhter questions, don't hestiate to ask.
Best regards
Joerg
Ok mate ..great stuff..thanks :)
Luca_ITA
12-23-2011, 12:01 PM
THX. Works perfect on 4.1.9
Princezz
04-01-2012, 08:03 PM
Danke dir ;) ist ein sehr n?tzliches Plugin.
Orfalopi
07-12-2012, 01:06 PM
Hi,
Product installed, and it works perfectly on vBulletin version 4.1.12
Exactly what I was looking for.
Thank you for this useful product :)
Orfalopi
fxdigi-cash
04-12-2013, 07:15 AM
Thanks a lot for this mod. works fine on vb4.2 pl3
Cheers :)
allanh
10-26-2013, 08:28 PM
can you make one for vBulletin 5.0? thanks
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.