Hi :-)
I have embedded minibb in my site successfully. This site has a central switch where you can change the current page from German to English and back. Once choosen the language, it is saved in a GET-Variable 'lang=en' or 'lang=de' ('de' is the default) and it is appended to any link (I choose GET so users can bookmark the site in their language).
Ok. Now I want mnibb to overtook this central language setting and placed the following code in setup_options.php:
switch ($_REQUEST['lang']) { case 'en': $lang='eng'; $indexphp='index.php?lang=en&'; $startIndex='index.php?lang=en'; break; default: $lang='ges'; $indexphp='index.php?'; $startIndex='index.php'; }
(I don't use $setlang because I don't want to much GET-variables in my URL)
This works fine - but naturally only for anonym users.
For me it doesn't make much sense to choose language twice so I want to disable language setting in user preferences (no problem: changing the template) but also set the language for registered users to the one chosen on my site.
Where is the anchor to override an eventually set user language (I already have users with language set) with 'my' language?
May be I can change the corresponding database structure entry in setup_options.php ($dbUserSheme) to something void so minibb uses the default language $lang? (its only an idea - I'm not very familiar with databases ...)
Many thanks for any hints, Christoph |