Version: 1.01, by Andreas
Developer Last Online: Jan 2023
Version: 3.0.7
Rating:
Released: 06-07-2005
Last Update: 06-16-2005
Installs: 12
DB Changes
Code Changes Is in Beta Stage
No support by the author.
Set Language by Forum
This hack allows you to specify the language that should be used for each forum.
If a language is set, it will override the users selection and board default language
ATTN: This adds 1 query when a forum with language override is being viewed.
Details
Queries to run: 1
Files to Edit: 2
Difficulty: Difficult
I am releasing this as beta because i am not sure if it does not produce any side-effects.
Please let me know if it does work.
History
1.00 Initial Release
1.01 Updated installation instructions to (hopefully) make them easier to understand
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
However, I am finding that the charset settings that are inluded in the language packs (the Russian pack, for example) is not being applied to the forum.
My default forum language is English, but although after the hack, the Russian language pack IS being applied, the Russian letters are not displaying correctly.
I checked, and the charset setting is correct (windows-1251).
I didnt any plugins for now, but if i understand well, whats not possible is to add the acp part, but with a file to edit , with correspondance between languageid and forumid, it should be makable or am i wrong ? (perhaps i would try myself in this case)
Bernhard
The ACP Part isn't a Problem, that can be done with Plugins easily.
But loading the specified language is ... at least I think so.
Gonna take a look at it now.
At the moment, even with this hack, it seems that a person can only register in the default language (even if the forum that they click "register" on is in a non-default language.
Any idea as to how to allow guests in a foreign language forum section to register in the same language as that forum?
The registration page is not assigned to any forum - it covers the whole board, thererfore it will always use the default language.
Maybe it would be possible to add languageid=$foruminfo[languageid] to the registration link, but not sure.
Actually, yes, for each language or even style template, it's psosible to add a &styleid=xx, and that will take you to the first page of a foreign page registration. But then, when you clikc the next button, the register.php file takes you to the default language page for the next page.
I wonder if there is a way to add a "styleid" or "languageid" to registration links in the register.php file? When a person goes to the registration page, does VB retain the info for the styleid or languageid variables so they can be called up?
I actually tried to install a "Guest registration in detected language" hack by JoergZ, but it did not work because I believe that the changes to the global.php file from your hack is over-riding the guest language select option in the other hack, so that the guest registration language always will be the default language.
JoergZ's guest language registration hack modifies the sessions.php file.
Both of your hacks are great, and if you have any ideas as to how they can co-exist, then I would appreciate it very much.