The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Language-selection for guest Details »» | |||||||||||||||||||||||||
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
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 ! Note: A german version of the installation-instructions you will find here at vbulletin-germany.com Show Your Support
|
Comments |
#112
|
|||
|
|||
Hej Fenriz !
Without looking to the code, I don't know how to do that. I am not at home this week, but I will have a look at this next weekend. Best regards Jörg |
#113
|
|||
|
|||
Hi JoergZ,
Thank you for working to create a great hack. I tried to install it on my VB 3.0.8 board (which has 14 languages), and even though the URL reads correctly- for example: (http://russianmeetingplace.com/forum...stlanguageid=8) - the langauge does not change, and remains English. I previously installed a hack ("language_per_forum_langforum_vb3.0.7") which forces each foreign language forum into it's specific language, and I wonder if that is interfering with this hack? It makes a change to the global file, which may overside the language selection in sessions.php? Thanks for your thoughts, Khashyar |
#114
|
|||
|
|||
Hi JoergZ,
Do you know whether your hack is compatible with Andreas' "Set language by Forum" hack (which sets a language to a forum by changing the global.php file, which I believe overrides your hack's language settings in sessions.php). Thank you for any ideas as to how to allow both hacks to co-exist. Khashyar |
#115
|
|||
|
|||
I will have a look at the other hack. But probably they are not working together.
BR Jörg |
#116
|
|||
|
|||
That would be great if you had time to look at them....
The other hack really does not change that much code, but it certainly seems to be negating your hack (which I would love to install and use for my foreign language guests). Khashyar |
#117
|
|||
|
|||
Hi J?rg,
I tried to reinstall your hack again, and it still is not working for me. the link http://www.russianmeetingplace.com/f...stlanguageid=2 should change the language to German, but the language is remaining English. This means that the language Id change is not being recognized or initiated by the seesions.php code. I wonder why? I will double-check the changes that I made to the sessions file... Khashyar |
#118
|
|||
|
|||
The code seems to be o.k. in my sessions.php file.
I installed the browser detect version of your hack (version #3), if that makes any difference. If you can help me make your hack work in my forum, I would really appreciate it. Khashyar |
#119
|
|||
|
|||
Hello J?rg,
In the forum language select hack, there are a couple of code blocks that need moved around, but here is essentially what is added within the global.php file (if this helps you understand what might be the conflict) : Quote:
Thanks again for your help with this, Khashyar |
#120
|
|||
|
|||
I commented out the added code to global.php, and the guest registration hack was still not working, so there must be some other issue involved.
Also, I uninstalled the version 3 hack, and installed the version 1 of the hack, and it was still not displaying the correct languages. However, when I go into my control panel and change a language used, I am able to do that and the language is visible. Any ideas would be appreciated. Thanks, Khashyar |
#121
|
|||
|
|||
Hi JoergZ,
I found out why the software was not working on my 3.0.8 version of VB... In the 3.0.8 sessions.php file, there are 2 instances in the file with this same code: Quote:
I replaced that code where it occured in the beginning of the file, rather than at the end of the file, and your hack was not working for me. However, when I replaced the instance of that code where it occured at the end of the sessions file, and the hack worked for me. (Perhaps this will help someone else who wants to install the hack in VB 3.0.8). Your hack is an excellent and useful one, J?rg. Thanks again for sharing it. Khashyar |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|