Version: 1.00, by JoergZ
Developer Last Online: Dec 2012
Version: 3.0.0
Rating:
Released: 01-02-2004
Last Update: 03-08-2004
Installs: 58
Code Changes
No support by the author.
PLEASE CLICK THE INSTALL BUTTON IF INSTALLED!
Hallo,
the vB3 offers the chance to have multi languages, but at the moment it is unfortunally only for registred / logged-in users possible to select a language. Guests / not logged-in users will see always the default language.
With this modification you can offer your guests / not-logged-in users an option to select a language, so they can see the forum and the registration in the selected language. Further the selected language will be set during the registratin as default for the new user.
Short-description
Language-Selection for not logged-in users
Requirements
vB3 RC1 or higher (Tested up to 3.0.7) NOTE !! For installation on 3.0.8 or above read this posting !! Thanks to Khashyar for finding this change !
Of cource more than one installed language, otherwise this modification make no sense
Installationtime
about 5 minutes
The use of this modification is as always at your own risk !
J?rg
Update 05. January 2004 (added version 2)
Update 09. March 2004 (added version 3)
Update 27. March 2004: Tested in 3.0.0 Gold
Version 1:
In this version you have to enter for each language a menue-entry manually
Version 2:
This version detects the selectable languages automaticly and the menue-entries are created automaticly too. To get the menue-entries, the function "Use DHTML Popup Menus" must be activated. This version has an additional query with each page-call. If you don't like this, use version 1.
Version 3:
This version is based on version 1, but it detects the browser-language automatic and shows the board in the language of the user. This automatic-detection of the user-language was realised by WildChild. Thanks for this extension of my hack. Note the difference to my version 2: My Version 2 detects the installed languages automatic, version 3 detects the language which is set in the users browser !
Guest select English, register, and during registration the english is written in his profile as default-language. Check if you made the modifications in register.php correct.
In the description of the hack, you will find how to add an menue-point for selecting the language. When the user selects manually a language, this one has priority over the automatic detected language.
In the description of the hack, you will find how to add an menue-point for selecting the language. When the user selects manually a language, this one has priority over the automatic detected language.
Could anyone tell, how to make returning to the page guest was previously viewing after guest switched to another language (for example by link http://example-domain.com/forumdispl...stlanguageid=3)?
I am asking because guest always goes to the main page after switching languages..
Sorry, but without re-writing the complete hack, it is not possible. The procedure for changing the language (interpreting the parameter &guestlanguage=x) is only in the index.php
(Maybe there is a way, to recognise from where the link was called, so you can redirect back to that page, but I don't know how.)