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 |
#102
|
|||
|
|||
No.
Why ? In vB 3.5 it is standard Look at the german vB-Site. There you can see in the footer the selection for the language. So no need for migration of this hack to 3.5 Best regards J?rg |
#103
|
||||
|
||||
Quote:
Or will it be when I install more languages? |
#104
|
|||
|
|||
Quote:
J?rg |
#105
|
|||
|
|||
The hack says to remove the etxt from:
// get default language $phraseinfo = $DB_site->query_first(" SELECT languageid" . fetch_language_fields_sql(0) . " FROM " . TABLE_PREFIX . "language WHERE languageid = " . intval($vboptions['languageid']) . " "); But in 3.0.8 it begins as follows: // get default language $DB_site->reporterror = 0; $phraseinfo = $DB_site->query_first(" SELECT languageid" . fetch_language_fields_sql(0) . " FROM " . TABLE_PREFIX . "language WHERE languageid = " . intval($vboptions['languageid']) . " "); The line: $DB_site->reporterror = 0; is not mentioned in the hack and I wonder if it should be removed for the Hack to work |
#106
|
|||
|
|||
Hi Maplewoods,
sorry, I have not tested the hack with 3.0.8. But as far as I see, you should insert the line "$DB_site->reporterror = 0;" above the line "$phraseinfo =....." Best regards Jörg |
#107
|
|||
|
|||
I have this hack on my 3.0.9 and now I need this hack for vBulletin 3.5 - to detect the browser-language automatic and show the board in the language of the user. Also could you help me to change the drop-down language menu in 3.5 to the flags.
thanx |
#108
|
|||
|
|||
Hi Fenriz !
Sorry, but until now I had no time to look closer at the version 3.5.0 Concerning the automatic detection of the laguage, maybe you can contact WildChild, if he can make a modification and publish it here. (He has done the modification for this hack too) Concerning the flags instead of the pull-down menue, I will have a look at this, but I can't prmise you when, because I am quite busy in these days. Best regards J?rg |
#110
|
|||
|
|||
Hi Fenriz !
For your flags, you only need to set this link: for your forum it would be: where x is the languageid So it is the same as it is now, just "langid" instead of "guestlanguageid". Concerning the automatic language-detection: I made it You find the hack here ! Please be so kind and test it and give me a feedback or write a new posting in the new hack thread. Best regards J?rg |
#111
|
|||
|
|||
Hei J?rg igjen! When I use http://www.yourforum/forum/index.php?langid=x link to a language, go in to a thread and click to choose another language, it redirects me to the index forum page. How I can stay in the thread and to have an opportunity to choose language without leaving this thread?
Could you help me? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|