![]() |
Set language by Forum
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 |
This is something I was looking for. Since I am not coder, i will wait with install for profs review .-)
Any screenshots? |
Great Idea, thanks for sharing.
|
Hmm, there is not much to see - except a new option in Forum Manager.
Anyway, screenshot attached :) |
Can someone post a URL to a site using this mod? I looked at Kirby's site but I couldn't find a forum where it was being used.
|
Kirby, thanks for the demo. I've installed at my site, and the language setting is saved when I edit the forum, but it's not working when you browse to the forum.
Maybe I'm misunderstanding something from Step #2 of your instructions: PHP Code:
If it helps, this is the forum in question, and the language file I've specified is Spanish (obviously). |
OK, in other words:
Locate the the first Code-Block that is being shown in the instructions, cut it out. Now locate the second code block and paste the code you just cut out above that. Then above the code you just pasted add code block 3. I know that this Hack is complicated, that's why I put it in Beta ;) |
Thanks Kirby, that did the trick. The wording on step two is a little awkward, and you're explanation makes a lot more sense.
|
;)
My english isn't that perfect, sorry. Gonna update the instructions now it make it more clear. |
Hi Kirby,
A wonderful hack, thank you for sharing it... I would also want a way that, for example, a German speaker who is in the German language forum section on my website, can click on the navigational bar choices on top, and be sent to the "memberlist," or other pages in their own language as well (in the langauge of that particular forum). Do you know of a way to do this? Thanks again for sharing your useful hack. Khashyar |
Hi Everyone,
I do like having this hack in my forums. 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). Is anyone else having the same issue? Khashyar |
Hello, would that be released or 3.5 in the future ?
Bernhard |
I don't plan to port this for 3.5, as it can't be done without File Edits.
|
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. |
Hi Andreas,
Thank you again for creating this hack. 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? Thanks for your ideas, Khashyar I tried to install another hack which allows |
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. |
Thanks for responding, Andreas...
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? Khashyar |
Hi Andreas,
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. Khashyar |
Hi Andreas,
I fugured out how to make JoergZ's "guest registration hack" work for my forum. Now, I have included both of your hacks in my forum. Thank you for contributing your hack. Khashyar |
Hi Andreas,
you said that this hack should work with vB 3.5.x too. I'm sorry .. but it does not. :( 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) 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 ^^) .. PHP Code:
PHP Code:
I would be very pleased if you can help me with this. Maybe a hint is enough, but currently I do not know what I have to do. Thank you very much, regards Ben. |
I said it is pretty similar, I didn't say that iw would be exactly the same ;)
If I got time i'll take a look into this. |
Quote:
Quote:
|
*push* .. maybe someone else?
|
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. |
It would be so nice if there where a product corresponding to this.
|
I am searching for anything similar to this mod because I want to have multiple language packs for my spanish, english, french board categories.
|
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 |
can you update this for use with 3.7 ?
|
I want it too for 3.7
|
wanted for 3.7.3 Plz or anything like that :)
|
Waiting the 3.8 version...
|
All times are GMT. The time now is 02:56 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|