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.
I have made some changes in the files, so I have to use $vbulletin->userinfo instead of $bbuserinfo and $db->query_read() instead of $DB_Site->query() .. okay.
Should not be the problem ..
I upload the files and run the SQL query. Now I have the opportunity to change the language in the admin control panel .. hmm .. I thought I have it.
If I want to save the option I get this error message
Code:
Schwerer Fehler: Field languageid is not defined in $validfields in class vB_DataManager_Forum in /includes/class_dm.php (Zeile 485)
"Schwerer Fehler" ... is German and means "Fatal error" .. for all who do not speak/understand German language.
I know you (Andreas) do
That within the verify()-method of class vB_DataManager_Form. I tried to set to this (without knowing what I do I admit ^^) ..
I guess this hasn't gone any further? I'm running version 3.6.1 and this hack isn't working
Something like this would be very useful to me also. If someone has come across to any ways to do something like this, please let us know
Also, I have encountered a strange behaviour, which I don't fully understand, it sort of relates to this. I have a forum with four languages, and four main areas, where the discussion is made in the language in question (so there's English discussion, where the language of the interface should be English, Swedish discussion, where the language of the interface should be Swedish etc...).
If I use URL with the GET-parameter for the language selection from an external source, it works just fine, the correct forum opens up and the language is right (such as http://mydomain/forumdisplay.php?f=16&langid=2 to point to the English discussion and making the language selection to English). But if I set this URL to the category's Forum Link value, I get an error about redirecting (FireFox says: The page isn't redirecting properly, Firefox has detected that the server is redirecting the request for this address in a way that will never complete), and actually the links from the external source also stop working, why is this?
Anyhow, the default selection for forum's language would be much better choice anyway.
I prefer to hide a forum is is not related to the language some body chooses
so when some body chooses English he does not need to have the pain to look
at all chinese forums
I beleive that makes more sense