View Full Version : Language-selection for guest
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
vB3 RC1 or higher (Tested up to 3.0.7) NOTE !! For installation on 3.0.8 or above read this posting (http://www.vbulletin.org/forum/showthread.php?p=803822) !! Thanks to Khashyar for finding this change !
Of cource more than one installed language, otherwise this modification make no sense :D
Installationtime
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 (http://www.vbulletin-germany.com/forum/showthread.php?s=&threadid=8649)
MindTrix
03 Jan 2004, 16:15
Nice and nifty :) Well done mate im sure a fair amount of people will want this :)
Congrats!!
DarkJediKiller
03 Jan 2004, 17:04
Nice Job! My members will love this feature. It might give em a chance to actually LEARN the languages LoL.
Bernd Glasstett
04 Jan 2004, 22:55
That's a nice hack - but I would love to have one more thing: Is it somehow possible to have the installed languages displayed automatically? It's just, that we already have four languages: English, German, French and Luxemburgish - and we will have a fifth soon (Italian). I would love to not have to change the templates for every language again -> /me being lazy ;)
Is it somehow possible to have the installed languages displayed automatically?
Possible is nearly everything... It is always a question of time. ;)
But I don't like the idea not so much. Not because of the time, but such a change would mean you have additionally querys everytime a guest loads the main-page.
For my board I would prefer the template-editing solution instead of having additionally querys. I mean you are not installing a new language every week.. ;)
If you insist upon this automatic, I will see if I have time and if I could manage it.
Jörg
Bernd Glasstett
04 Jan 2004, 23:42
The additional query (should be one) would only be for the guests, right? Well, that should be manageable by the server ;)
O.k. I found a solution for you lazy person. :D
You find the update in the first posting.
Jörg
Luciolle
05 Jan 2004, 19:29
Thanks alot for your work and your hack !
It's very good !
Khashyar
11 Jan 2004, 18:40
This is a wonderful hack... thank you for posting it...
I am actually looking for a similar hack for VB2.x...
I have five language templates on my websites vb (www.russianmeetingplace.com/forums), and would like to find a way for users to be able to register in their own language...
I would appreciate if anyone has any ideas..
Thanks,
Khashyar
Nice to hear you like my improvement Khashyar.
For vB2, have a look here (http://www.vbulletin.org/forum/showthread.php?t=33418).
With this hack, you can add a style-seleciton on your forum-home page.
Jörg
Khashyar
11 Jan 2004, 21:21
Thank you, Joerg...
Will that vB2 hack allow users to register in the language that they choose? Or.. will they still need to register in English (or the default forum language?)
Thanks again,
Khashyar
I suppose you have solved the multi-language with different styles. With this hack, you can select styles. And I think, if the user have selected a style, the registration will come up in the selected style.
You should try this. Another solution I don't know for vB2.
Jörg
Khashyar
11 Jan 2004, 21:49
Thanks, Joerg...
Ir could have an autodetect language JavaScript as well ...
Khashyar
17 Jan 2004, 17:46
I didn't need to install the 2.x hack... actually, an admin. at vb.org just gave me a line of text to add to any link code (i.e., "register in German" html link , for example) that allowed people to register in their own language....
Khashyar
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
vB3 RC1
Of cource more than one installed language, otherwise this modification make no sense :D
Installationtime
about 5 minutes
The use of this modification is as always at your own risk !
Jörg
Update 05. January 2004 (added version 2)
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.
Note: A german version of the installation-instructions you will find here at vbulletin-germany.com (http://www.vbulletin-germany.com/forum/showthread.php?s=&threadid=8649)
i am not worthy :)
Didi_gt
18 Jan 2004, 20:56
thanks Joerg .....awesome :) http://www.granturismo.de/forums/images/smilies/top.gif
works also in RC2
Bernd Glasstett
12 Feb 2004, 09:46
I have a small suggestion: If you add
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
around the entry on navbar, noone sees the guestselection, when they are registered and logged in :)
If you follow exactly my instructions, it IS like you describe, that the selection-menue-entry is only shown when you are not logged in.
Why ? In my isntruction is written, that you have to look for
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
and directly after that my code should be added.
So my code is within the condition to show the register-button. --> Language selection is only shown when register-button is shown. And register-button is only shown, when you are not logged in.
So I think, everything is fine... :)
Jörg
P.S. I have not checked RC4 yet. Maybe there were some changes in the navbar template ?
I have checked this part in RC4 and it still works :)
Could I choose it by the flag .gif icon? Like German, English and Estonian flags on the forumhome top?
Yes you can, for this use better the version 1. The link you must use is described in the installation-description.
Jörg
Bernd Glasstett
13 Feb 2004, 11:53
If you follow exactly my instructions, it IS like you describe, that the selection-menue-entry is only shown when you are not logged in.
Ah I know, why I haven't done this - In the first place, I tried to change the hack a bit, so that everyone would have been able to change the language by that menu. But then some users didn't like it - i changed it back and overlooked that part. Soooo, shame on me ;)
bjornstrom
22 Feb 2004, 14:36
Would it be possible to use a URL such as:
http://www.99mac.se/forum/?styleid=1&language=2
(this way I could use the 99mac.se domain for swedish and .com for english)
You must use http://www.99mac.se/forum/index.php?styleid=1&guestlanguageid=2
Then the forum will be shown in the language-id 2 for guests.
Jörg
Would it be possible to use a URL such as:
http://www.99mac.se/forum/?styleid=1&language=2
(this way I could use the 99mac.se domain for swedish and .com for english)
You must use http://www.99mac.se/forum/index.php?styleid=1&guestlanguageid=2
Then the forum will be shown in the language-id 2 for guests.
Jörg
It'd be nice if there's also an option for force some forum/board to display in some language, even for registered users.
Say if you user http://www.mydomain.com/forum/index.php?styleid=X&languageid=X
then, everyone use that link will see the forum (or some board) in that language.
It's helpful when you have a forum with multiple languages boards, one board in English, one board in German, for example. If someone goes to German board, they are force to use German :P (regardless they are guests or members)
Well, the laguage-selection for registred users is not touched by my modification, because there you can select your language in the user-settings.
Maybe the language-selection (regardless if logged in or not) will work one day in standard-vB via parameter in the url, then you have a solution for that. :)
Well, the laguage-selection for registred users is not touched by my modification, because there you can select your language in the user-settings.
Maybe the language-selection (regardless if logged in or not) will work one day in standard-vB via parameter in the url, then you have a solution for that. :)
:p I'm playing with the parameters, trying to force languageid to be something different than default one, for registered member, but havent got any success.
Do you have any suggestion?
It will not work for registred members, because the parameter is not read out neither by vB nor by my modification.
The only way to manage this for registred members, is to call an own php, where you modify the database-record. A german user requested this, so I made an "quick-and-dirty", not official solution for him. You can find it in the german-vb (http://www.vbulletin-germany.com/forum/showthread.php?s=&postid=53243#post53243) board.
Jörg
I have added a version 3 of my hack. It is based on version 1, but was extended by WildChild and detects the user's browser language automatic, so the user will see the board in his language without selecting it manually.
You find the version 3 in the first post of this thread.
Thanks to WildChild.
Jörg
I have added a version 3 of my hack. It is based on version 1, but was extended by WildChild and detects the user's browser language automatic, so the user will see the board in his language without selecting it manually.
You find the version 3 in the first post of this thread.
Thanks to WildChild.
Jörg
is there a way to add this thing for registered users?
so there will be fast language selection on the navbar...
Yes, I have written a soloution for that, because a german user asked me the same. I will post it this afternoon here.
But can you tell me for what this make sense ? Which user switches the language after he selected it once ?
(I am using it only in my local test-board so I can check the translations without always going the long way via the user-settings).
Jörg
O.k., here we go:
To change the language use the following line in the navbar template:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Add to the phrasegroup Front-End Redirect Messages the following 2 phrases:
Varname: changelanguage
Text: Boardlanguage was changed
Varname: nochangelanguage
Text: Language was not changed
Save the changelanguage.php I have attached in the main board directory (where you have your index.php).
That's all.
Best Regards
Jörg
This is a great hack! Easy and very usefull! Thank you a lot!
ricoche
24 Apr 2004, 16:11
Hello,
Thanks for the hack.
Any idea why I might be getting this error on line 76?
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Here is the code from line 75 to line 79. Is there anything missing or incorrect here?
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Thanks.
Sorry, don't know how this garbage came into the changelanguge.php
I have corrected the attachment.
You can solve the problem like this:
Change this line
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
to this
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Jörg
jluerken
06 May 2004, 21:02
Hi Joerg,
many thanks for this Hack.
I installed it and via a condition in the header template only GUESTS have the choice. This is working on all pages at not only on forumhome. Its also working on the vbAdvance Portal page...
See screenshots :D
Great hack, thanks for your efforts. I had to do a little monkeying around with it since I am using VBA CMPS and the main index resides outside the forums directory.
However with a few minor modifications and some conditionals it is now working for both registered/logged in users as well as for guests from both the forum home as well as from VBA CMPS home page.
Thanks again.
Merjawy
22 Jul 2004, 02:17
Very nice indeed and pretty much needed for many
thanks,
one question, you have ver. 1, 2 and 3,, which do I need to install? all? :) forgive my asking just confused a little
I do know the logic in doing things ,, but this one did confuse me a bit sorry :)
You need only to install one of the versions.
The different is:
Version 1:
You must define a new navbar-menue-item everytime you install a new language and want to make it selectable in the navbar
Version 2:
The installed and selectable languages are detected automatic, no need to add new navbar-item when a new language is installed
Version 3:
One of your languages is the default-language. Every visitor who comes first time to your board will see the board in this default-language. Version 3 detects the language-settings of the users browser and automatic set the vB-language to this language if available. Example: Default is English, you have installed English, German, French, Spanish. A user with French language-setting in browser come first time to your board, he will see it in French. No need for him to select the language of your board manually.
I hope your confusion is gone now :)
Best regards
Jörg
Merjawy
23 Jul 2004, 00:29
Indeed gone now :) thnx a lot mate
Merjawy
23 Jul 2004, 07:32
Now to the strange part :)
I did install the first part of the hack, edited sessions.php and register.php and I stopped right there for now
I change the default to other than en and also did that somewhere little down the hack,
anyway
now everything looks cool, but while I was still admin I ponited my browser to the forum adding the ?&guestlanguageid=1 and then 2
ofcourse I am not a guest so that didn't do nothing :)
I loged out, now I did that again and it worked, BUT when I used 1 I get english which is not the default language and not #1 in sessions.php and when I do 2 I get the default lang... now thats fine I can live with it and I am sure I can fix it too
this is what made me post now
I noticed in my nabar now I have 2 new links
Mark all forums as read
Open buddly list
now why they showing up in nav bar now?
I checked navar and they are there and uncommented but they never show up in my navbar on two sites, now after this hack they show in all tempates on this one site
so for now I had to comment them out in my navbar till I figure out why they showing
I looked at both sites and the navra is the same
non the less, this hack is great and I am gonna use it even if my name pops in navbar :)
:)
Merjawy
23 Jul 2004, 08:00
Its me.. I knew it :)
I was messing with settings, and I disabled the use of DHTML menu under vB options and I got a phone call, took me away from what I was doing when I came back, I installed the hack and thats when I saw what I did before the hack
so nevermind, the problem is fixed :)
Merjawy
24 Jul 2004, 00:05
All systems good to go mate :) thanks
theres one little issue, for now I managed to over come it but it needs fix
I use a portal (vBadvanaced CMPS) in the root and my forum in a directory under it, all work fine but when a guest is on portal (root) they change language link won't work, it will just take them to my root directroy where I have index.html as a front-end loader (which will load index.php of the portal once clicked).
a guest in forum, they click the lang change, the URL will be /forum/index.php?guestXXXXX
a geust in portal, they click the lang change, the URL will be /?guestlanguageXXXXXXXXX
that might work if I only had 1 index in my root, but I have 2 :) index.html loads first then it loads index.php once clicked
I managed to temp fix it by adding a "/" at the begining of the varialble ($vboptions[forumhome].php?XXXXXXXXXXXXXXXXXXXXXX)
This makes it take the guest to the main root index.php (portal) no matter where the guest clicked the lingo change (in portal or forum)
I hope that made any sence :) but for now it works non the less
thnx again
next step is installing the change for members :) .. can't wait
Merjawy
24 Jul 2004, 00:14
O.k., here we go:
To change the language use the following line in the navbar template:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Jörg
can I change Name of language 1 / Name of language 2 to
$vbphrase[lang01] / $vbphrase[lang02] ?
thnx
Yes of course ! It was only an example :)
Nice to hear, that it works for you. Concerning the portal-thing, sorry, but I have no portal, so I don't thought about, that the link won't work in this case ;)
Merjawy
24 Jul 2004, 02:59
Thank you sir , well done... just that little thing about portal as most people do use portals, and for me I use 2 indexes :) ..
Installed on one site and soon on another :)
Merjawy
25 Jul 2004, 00:52
Sweet..
I managed to make it a drop down menu for memeber/guests as I have about 6 languages and can't put them all in navbar :)
The link will show always, but the options for guests will show to guests and will only show member options for members :) love it
Fine.. :) I think for members it is not really necessary, because no one changes the language after he selected it once, but I think for guests it should be standard... Well, maybe in 3.1.0 :)
alexisbellido
31 Jul 2004, 02:35
Thank you very much JoergZ for such a useful hack. I have just installed in my english / spanish forums.
Best regards!
Eagle Creek
11 Aug 2004, 12:06
PERFECT, GREAT, FANTASTIC!! I was so hard looking for this
!
!
Thank you!
¡
¡
bajabob
12 Aug 2004, 18:29
Hey,
I'm trying to install it now, and I'm not sure how to do the last step, where you wrote to add a phrase to the group GLOBAL and translate them as I want. where should I add it? and what exactly should I add/translate?
Thanks!
You must add them in AdminCP -> Phrase Manager
Then click on "Add new phrase"
Phrase Type is GLOBAL
Varname is as described in my hack
translation as you want :)
Best regards
Jörg
Eagle Creek
13 Aug 2004, 20:03
Important question:
Is it compatible with VBindex?
Sorry, i am not using VBindex.
But somehow it should work with that together too..
I don't know if someone already use it with VBindex.
Best regards
Jörg
Eagle Creek
14 Aug 2004, 06:25
Thanks for reply
nighteyes
23 Aug 2004, 12:46
Awesome hack thanks :D Installed.
Much appreciation for this hack. Thanks
Using option 3.
Is there anyay to add the language parameter id to a particular forum?
Already have this which works:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Anyway to make this work:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Yes, a link like
http://example-domain.com/forumdisplay.php?f=14?guestlanguageid=3
works too.
Best regards
Jörg
tkeil69575
03 Nov 2004, 10:57
excellent hack - works fine in vb 3.03 too :)
excellent hack but how about user registration choice?
I run a board, default language, Japanese. Board has this browser language mod added so an GUEST english user sees the site in english. He registers in english. Then logs in and has to somehow navigate through a JAPANESE page to somehow find the user CP and go into a JAPANESE user CP to change his language to english.
Most english users can not read Japanese.
The language selection should be at registration as it is on our phpbb.
Well... it should work.
Guest select English, register, and during registration the english is written in his profile as default-language. Check if you made the modifications in register.php correct.
Best regards
Jörg
Eagle Creek
09 Dec 2004, 15:33
Thanks, I just wanted to ask a question like that.
Does the forum goes to the standard browser language? And can the guest select an other language if they want?
Yes and yes :D
In the description of the hack, you will find how to add an menue-point for selecting the language. When the user selects manually a language, this one has priority over the automatic detected language.
Jörg
Found it, installed & works great. Thank You!:nervous:
Eagle Creek
09 Dec 2004, 20:02
Yes and yes :D
In the description of the hack, you will find how to add an menue-point for selecting the language. When the user selects manually a language, this one has priority over the automatic detected language.
Jörg
Cool :)
Thank you :)
Could anyone tell, how to make returning to the page guest was previously viewing after guest switched to another language (for example by link http://example-domain.com/forumdisplay.php?f=14?guestlanguageid=3)?
I am asking because guest always goes to the main page after switching languages..
Sorry, but without re-writing the complete hack, it is not possible. The procedure for changing the language (interpreting the parameter &guestlanguage=x) is only in the index.php
(Maybe there is a way, to recognise from where the link was called, so you can redirect back to that page, but I don't know how.)
Jörg
Eagle Creek
05 Jan 2005, 03:38
http://www.vbulletin.org/forum/attachment.php?attachmentid=22750&stc=1
:ermm: :ermm:
And please don't tell but I need glasses butt tell me how to solve ?
So I want to have:
1. text to it
2. the text in the dropdown menu bigger
Eagle,
check all changes you did in the template navbar. There must be the error somewhere..
Eagle Creek
05 Jan 2005, 17:02
Eagle,
check all changes you did in the template navbar. There must be the error somewhere..
I did, I even re-dit it..
Uuhm.. I guess I have to revert the template and try again?
Eagle Creek
05 Jan 2005, 17:12
Uuhm.. I guess I have to revert the template and try again?
Still it doesn't work..
It stays a triangle without text next to it and when I click it's still extreme small :(
O.k.
Which version of the hack have you installed ?
Eagle Creek
05 Jan 2005, 20:07
O.k.
Which version of the hack have you installed ?
V3 Guest Languageselection by JoergZ and WildChild english.txt
****************************************************************
**** ****
**** Language-Selection for not logged-in users ****
**** ****
**** Version 3.0 ****
**** ****
**** (c)Copyright by JoergZ and WildChild ****
**** ****
**** Modification of this hack is only allowed for private ****
**** use. Publishing and distribution of the modified hack ****
**** is not allowed. ****
**** ****
****************************************************************
**** ****
**** If you have installed more than one language, in ****
**** Version vB 3.0.0 RC4 there is for guests no ****
**** chance to select another language than the default. ****
**** ****
**** This hack in Version 3.0 detects automatic the ****
**** browser-language. ****
**** ****
For all others information:
We have solved the problem via PN. Eagle made a mistake with the phrases. So no problem with the hack at all.
Jörg
It works brilliant with vb 3.05 :squareeyed:
For all others information:
We have solved the problem via PN. Eagle made a mistake with the phrases. So no problem with the hack at all.
Jörg
what was the fix? I'm having the same issue.
edit:
I fixed it. :)
Eagle Creek
01 Feb 2005, 23:05
what was the fix? I'm having the same issue.
edit:
I fixed it. :)
How can I give up AND an forum ID AND an language ID in the link?!
http://www.antispywareoffensief.nl/forum/forumdisplay.php?f=51
http://www.antispywareoffensief.nl/forum/index.php?&guestlanguageid=3
But I want a direct link to that forum in language 3
The only way I see for that is, that you modify the changelanguage.php you find in this posting (http://www.vbulletin.org/forum/showthread.php?p=490970).
Maybe parsing the forum-id when calling changelanguage.php, and the setting the correct redirect.
Best regards
Jörg
Eagle Creek
02 Feb 2005, 19:43
Btw, is het full 3.0.6 compatible?
Yes, it is working with 3.0.6 too
Eagle Creek
03 Feb 2005, 18:22
Thank you! Then I will upgrade :)
I have a question on the lines of this mod.
I was wondering if there was a way to not just change the forum (phrases) language, but also translate the forums page into another language (the posts, etc)!
any suggestions
I think this question has absolutely nothing to do with this hack. This is not a translation hack.
Moreover the results of translation programs for internet-pages are more than bad, so I think it is not useful to let the postings translate automatic by a translation page.
Jörg
Eagle Creek
12 Mar 2005, 23:56
Btw, is het full 3.0.7 compatible?
eupsilon
13 Apr 2005, 22:53
Btw, is het full 3.0.7 compatible?
Yes, I would also like to know, as I have tried it with 3.0.7 and V3 of the hack, and it doesn't seem to work properly. :disappointed:
Since I'm a newbie, it might have done something wrong, but on my installation, only part of the page reverts (buttons) to the language selected. The rest stays in German (browser language).
Any ideas?
As far as I know it is 3.07 compatible. I have not tried it yet myselfe.
Is your test-board where you have the problems in the internet ? If you send me a link to your board via PM I can have a look
Jörg
eupsilon
14 Apr 2005, 07:34
Hi Jörg,
I've sent it to you via PM.
Attached are also the files that I have modified (besides the template). Hope you can find something.
Thanx.
I made a test-installation with 3.0.7 and installed the hack exact as it is described, and it is working.
So for all:
This hack is working with 3.0.7 :)
What's wrong in the forum in eupsilon I don't know yet, but fact is, that even the standard laguage-selection for registred users is not working there. So it is no error of the hack.
Best regards
Jörg
Marco van Herwaarden
14 Apr 2005, 22:16
Hi Jörg,
I've sent it to you via PM.
Attached are also the files that I have modified (besides the template). Hope you can find something.
Thanx.Posting full vBulletin files (or distributing them) is against your license agreement and our rules.
Please remove the attachment.
Eagle Creek
14 Apr 2005, 22:51
Thx! (3.0.7 testing)
My community really needs this mod as we have a large number of Italian, German and Polish here.
I haven't installed this mod yet because I have searched for language and langues and cannot seem to find any of the three languages I need.
Can someone point me in the right direction on where I might find these or is this something that someone must translate (the phrases) themselves? Or??
Also, I understand that this mod doesn't alter the actual posts and only the phrases, so does that mean that I will have to find the buttons, etc. for the different languages as well and if I can find them and get permission to use them, what file do I put them on my server?
Thanks in advance for any help on this.
Italien language pack here (http://www.vbulletin.com/forum/forumdisplay.php?f=96)
Polish language pack I don't know if there exist one
German language pack here (http://www.vbulletin-germany.com/forum/showthread.php?t=16119) (You need to register using your email address with that you bought vBulletin)
In the german language pack, the graphics are included. For the italien I don't know.
Also, I understand that this mod doesn't alter the actual posts and only the phrases
No, not correct. This hack offers visitors of your board, that are not logged in (usually guests, that are not registred yet), to select the board language. Standard in vB3 is, that only logged in users can select the board language in the userCP. Guests have no chance to change the board-language. With this hack you have for not logged in users an additional item in the menue-line, where they can select one of the instlaled board-languages.
Of course we are always talking only about the translation of the phrases and buttons, not about the translation of the postings themselve.
Best regards
Jörg
Eagle Creek
24 Apr 2005, 09:20
Italien language pack here (http://www.vbulletin.com/forum/forumdisplay.php?f=96)
Polish language pack I don't know if there exist one
German language pack here (http://www.vbulletin-germany.com/forum/showthread.php?t=16119) (You need to register using your email address with that you bought vBulletin)
In the german language pack, the graphics are included. For the italien I don't know.
No, not correct. This hack offers visitors of your board, that are not logged in (usually guests, that are not registred yet), to select the board language. Standard in vB3 is, that only logged in users can select the board language in the userCP. Guests have no chance to change the board-language. With this hack you have for not logged in users an additional item in the menue-line, where they can select one of the instlaled board-languages.
Of course we are always talking only about the translation of the phrases and buttons, not about the translation of the postings themselve.
Best regards
Jörg
It would be great when the buttons also changed language :).
It would be great when the buttons also changed language :).
:rolleyes: ??? When you install the language-packs correct, the buttons will change...
Eagle Creek
24 Apr 2005, 12:53
:rolleyes: ??? When you install the language-packs correct, the buttons will change...
Uuhm, no.. They didn't..
Then you did something wrong :surprised:
You should have the following file-structure if you have no sub-folders for different styles:
.../forum/images/buttons/EN (Here the English buttons)
.../forum/images/buttons/NL (Here the Dutch buttons)
and so on
In the language manager edit the settings for the language like in the screenshot (The screenshot show the settings for English)
Jörg
Italien language pack here (http://www.vbulletin.com/forum/forumdisplay.php?f=96)
Polish language pack I don't know if there exist one
German language pack here (http://www.vbulletin-germany.com/forum/showthread.php?t=16119) (You need to register using your email address with that you bought vBulletin)
In the german language pack, the graphics are included. For the italien I don't know.
No, not correct. This hack offers visitors of your board, that are not logged in (usually guests, that are not registred yet), to select the board language. Standard in vB3 is, that only logged in users can select the board language in the userCP. Guests have no chance to change the board-language. With this hack you have for not logged in users an additional item in the menue-line, where they can select one of the instlaled board-languages.
Of course we are always talking only about the translation of the phrases and buttons, not about the translation of the postings themselve.
Best regards
Jörg
Thanks a bunch....I really appreciate it.
edwardcyh
07 Jun 2005, 21:20
GREAT hack. I have just installed it on my forum. The ability to switch guestlanguageid is incredibly convenient. Thank you!
ThorstenA
07 Jul 2005, 08:33
Polish language pack I don't know if there exist one
Polish language pack is available on http://www.vbulletin.com/forum/showthread.php?t=141372
Polish button set is available on www.vbulletin.com/forum/showthread.php?t=127808
Eagle Creek
07 Jul 2005, 22:12
WILL THIS HACK BE AVAILABLE ON VB 3.5 (with plugins?)
Anybody?
Thx for reply in advance..
No.
Why ?
In vB 3.5 it is standard :)
Look at the german vB-Site (http://www.vbulletin-germany.com/forum/index.php). 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
Eagle Creek
07 Jul 2005, 22:18
No.
Why ?
In vB 3.5 it is standard :)
Look at the german vB-Site (http://www.vbulletin-germany.com/forum/index.php). 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
Standard?! You don't mean that; do you? Where can I enable this option?
Or will it be when I install more languages?
Standard?! You don't mean that; do you? Where can I enable this option?
Or will it be when I install more languages?
It appears automaticly, when you have installed more than one language. It is similar to the style-selection. See screenshot..
Jörg
Maplewoods
16 Sep 2005, 03:20
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
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
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
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 (http://www.vbulletin.org/forum/member.php?u=48066), 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
Hi JoergZ! Thank you for the answer. I've written to WildChild, as you suggested.
It would be also great if you make "the flags" instead of the pull-down menu!
I have your hack on the 3.0.9 here (http://valhalla.ulver.com)
Hi Fenriz !
For your flags, you only need to set this link:
http://www.yourforum/forum/index.php?langid=x
for your forum it would be:
http://valhalla.ulver.com/index.php?langid=x
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 (http://www.vbulletin.org/forum/showthread.php?t=97261) ! 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
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?
Hej Fenriz !
Without looking to the code, I don't know how to do that. I am not at home this week, but I will have a look at this next weekend.
Best regards
Jörg
Khashyar
24 Oct 2005, 04:44
Hi JoergZ,
Thank you for working to create a great hack.
I tried to install it on my VB 3.0.8 board (which has 14 languages), and even though the URL reads correctly- for example: (http://russianmeetingplace.com/forums/index.php?guestlanguageid=8) - the langauge does not change, and remains English.
I previously installed a hack ("language_per_forum_langforum_vb3.0.7") which forces each foreign language forum into it's specific language, and I wonder if that is interfering with this hack? It makes a change to the global file, which may overside the language selection in sessions.php?
Thanks for your thoughts,
Khashyar
Khashyar
24 Oct 2005, 07:10
Hi JoergZ,
Do you know whether your hack is compatible with Andreas' "Set language by Forum" hack (which sets a language to a forum by changing the global.php file, which I believe overrides your hack's language settings in sessions.php).
Thank you for any ideas as to how to allow both hacks to co-exist.
Khashyar
I will have a look at the other hack. But probably they are not working together.
BR
Jörg
Khashyar
24 Oct 2005, 07:30
That would be great if you had time to look at them....
The other hack really does not change that much code, but it certainly seems to be negating your hack (which I would love to install and use for my foreign language guests).
Khashyar
Khashyar
24 Oct 2005, 07:42
Hi Jörg,
I tried to reinstall your hack again, and it still is not working for me.
the link http://www.russianmeetingplace.com/forums/index.php?guestlanguageid=2 should change the language to German, but the language is remaining English.
This means that the language Id change is not being recognized or initiated by the seesions.php code.
I wonder why?
I will double-check the changes that I made to the sessions file...
Khashyar
Khashyar
24 Oct 2005, 08:08
The code seems to be o.k. in my sessions.php file.
I installed the browser detect version of your hack (version #3), if that makes any difference.
If you can help me make your hack work in my forum, I would really appreciate it.
Khashyar
Khashyar
24 Oct 2005, 08:23
Hello Jörg,
In the forum language select hack, there are a couple of code blocks that need moved around, but here is essentially what is added within the global.php file (if this helps you understand what might be the conflict) :
// Fetch Language Override if specified
if ($foruminfo['languageid'] AND $foruminfo['languageid'] != $bbuserinfo['languageid'] AND $foruminfo['languageid'] != $vboptions['languageid'])
{
$language = $DB_site->query_first("SELECT languageid" . fetch_language_fields_sql(0) . " FROM " . TABLE_PREFIX . "language WHERE languageid = " . intval($foruminfo['languageid']));
$bbuserinfo = array_merge($bbuserinfo, $language);
I am assuming that I can post small blocks of codes from a hack, as long as the entire hack is not posted.
Thanks again for your help with this,
Khashyar
Khashyar
24 Oct 2005, 08:35
I commented out the added code to global.php, and the guest registration hack was still not working, so there must be some other issue involved.
Also, I uninstalled the version 3 hack, and installed the version 1 of the hack, and it was still not displaying the correct languages.
However, when I go into my control panel and change a language used, I am able to do that and the language is visible.
Any ideas would be appreciated.
Thanks,
Khashyar
Khashyar
24 Oct 2005, 22:04
Hi JoergZ,
I found out why the software was not working on my 3.0.8 version of VB...
In the 3.0.8 sessions.php file, there are 2 instances in the file with this same code:
// get default language
$phraseinfo = $DB_site->query_first("
SELECT languageid" . fetch_language_fields_sql(0) . "
FROM " . TABLE_PREFIX . "language
WHERE languageid = " . intval($vboptions['languageid']) . "
");
That code above (which we need to comment out or replace), occurs in the beginning of the 3.0.8 session.php file, as well as in the end.
I replaced that code where it occured in the beginning of the file, rather than at the end of the file, and your hack was not working for me.
However, when I replaced the instance of that code where it occured at the end of the sessions file, and the hack worked for me.
(Perhaps this will help someone else who wants to install the hack in VB 3.0.8).
Your hack is an excellent and useful one, Jörg.
Thanks again for sharing it.
Khashyar
Hi Khashyar,
I just went here for sending you a PM to ask for some more details, and I see, you were lucky to find the problem.
I am sorry, that I did not contacted you earlier, but I have quite a lot of work at the moment, so I have not much time left.
Thanks for the hint, that there is a problem with Version 3.0.8. I only tested it up to 3.0.7. But I will add a hint at the main-posting.
Sorry again, that I was not a big help in this case ;)
BR
Jörg
Khashyar
25 Oct 2005, 23:28
That's o.k., Jörg.
I'm glad that I could get the hack working for VB 3.0.8, and that we could offer help to those who might have had the same issue as I did.
Khashyar
funinthesun
16 Nov 2005, 01:12
Does this work on 3.5? :nervous:
It is not necessary for 3.5, because in 3.5 standard the language can be choosen the same way as styles for member and guests.
The only thing, that is available as hack for 3.5 is the automatic language-detection for first visitors. (See my signature)
BR
Jörg
funinthesun
16 Nov 2005, 01:18
I didn't know that. How do you change the language on 3.5 then? :)
cddw.ltd
21 Dec 2005, 09:25
Note if you can't get the Selection Menu to display:
When I first installed this hack, I couldn't get the Menu to display, I scratched my head for a while, tried installing the hack multiple times but still no joy. When I returned to the developement of my board recently after allocating some time to it, all of a sudden it worked... strange I thought. So I did more work on the board last night, messed about a bit, all of a sudden... its gone again... Whats going on here I thought!
The culprit:
If you set your board so that its accepting no new registrations (which is what I had in place just in case while the board is in developement) the selection bar dissapeares. Thought I'd note this incase someone else sits there for ages scratching their heads!
- Paul
Thanks for this hint. The menu-option not appears in this case, because it is inside the condition for the register-option.
If you don't allow new registrations, but you want to have the language-option shown in the navbar, do this:
Look in the template navbar for
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
and insert BEFORE this:
Code:
---------------
Code is only visible to licensed users, and only when logged into the forums.
---------------
Jörg
hey I know this is old but can anyone make this work on vBulletin 3.5.4 I want it to automatically detect the user language. it was indicated by Andreas that it was very possible. http://www.vbulletin.org/forum/showpost.php?p=817415&postcount=5 if this was already done I would love to get my hands on it. If it was not it looks like you already have a good start.
Hm... Look at my signature... ;)
Hacks for vB 3.5
Set forum-language automatic to browser-language for first-visitors (http://www.vbulletin.org/forum/showthread.php?t=97261)
My current forum consists mainly of 2 trees, one for german forums, one for french ones.
I would like to force the navigation to be in german for the german part.. and french for the french part, by default, overriding the vB automatic language chooser.
kevinzheng
02 Sep 2007, 12:21
Just tested, it is work on my forum which runing V3.6.8. Greate!
vBulletin® v3.6.12, Copyright ©2000-2012, Jelsoft Enterprises Ltd.