View Full Version : Language-selection for guest
JoergZ
01-02-2004, 10:00 PM
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 (https://vborg.vbsupport.ru/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
01-03-2004, 02:15 PM
Nice and nifty :) Well done mate im sure a fair amount of people will want this :)
Congrats!!
DarkJediKiller
01-03-2004, 03:04 PM
Nice Job! My members will love this feature. It might give em a chance to actually LEARN the languages LoL.
Bernd Glasstett
01-04-2004, 08:55 PM
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 ;)
JoergZ
01-04-2004, 09:13 PM
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
01-04-2004, 09:42 PM
The additional query (should be one) would only be for the guests, right? Well, that should be manageable by the server ;)
JoergZ
01-05-2004, 03:48 PM
O.k. I found a solution for you lazy person. :D
You find the update in the first posting.
J?rg
Luciolle
01-05-2004, 05:29 PM
Thanks alot for your work and your hack !
It's very good !
Khashyar
01-11-2004, 04:40 PM
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
JoergZ
01-11-2004, 06:58 PM
Nice to hear you like my improvement Khashyar.
For vB2, have a look here (https://vborg.vbsupport.ru/showthread.php?t=33418).
With this hack, you can add a style-seleciton on your forum-home page.
J?rg
Khashyar
01-11-2004, 07:21 PM
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
JoergZ
01-11-2004, 07:33 PM
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
01-11-2004, 07:49 PM
Thanks, Joerg...
gmarik
01-17-2004, 07:33 AM
Ir could have an autodetect language JavaScript as well ...
Khashyar
01-17-2004, 03:46 PM
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
01-18-2004, 06:56 PM
thanks Joerg .....awesome :) http://www.granturismo.de/forums/images/smilies/top.gif
works also in RC2
Bernd Glasstett
02-12-2004, 07:46 AM
I have a small suggestion: If you add
<if condition="$show['registerbutton']">
</if>
around the entry on navbar, noone sees the guestselection, when they are registered and logged in :)
JoergZ
02-12-2004, 10:12 AM
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 <td class="vbmenu_control"><a href="register.php?$session[sessionurl]">$vbphrase[register]</a></td>
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 :)
gmarik
02-12-2004, 07:51 PM
Could I choose it by the flag .gif icon? Like German, English and Estonian flags on the forumhome top?
JoergZ
02-12-2004, 08:03 PM
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
02-13-2004, 09:53 AM
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
02-22-2004, 12:36 PM
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)
JoergZ
02-22-2004, 01:11 PM
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)
JoergZ
02-22-2004, 07:09 PM
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?
JoergZ
02-29-2004, 06:53 PM
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
JoergZ
03-09-2004, 08:06 PM
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...
JoergZ
03-27-2004, 08:15 AM
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
JoergZ
03-27-2004, 09:48 AM
O.k., here we go:
To change the language use the following line in the navbar template:
<tr><td class="vbmenu_option"><a href="changelanguage.php?$session[sessionurl]languageid=1">Name of language 1</a></td></tr>
<tr><td class="vbmenu_option"><a href="changelanguage.php?$session[sessionurl]languageid=2">Name of language 2</a></td></tr>
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
AZone
04-08-2004, 06:25 PM
This is a great hack! Easy and very usefull! Thank you a lot!
ricoche
04-24-2004, 02:11 PM
Hello,
Thanks for the hack.
Any idea why I might be getting this error on line 76?
Parse error: parse error, expecting `']'' in /home/username/public_html/forums/changelanguage.php on line 76
Here is the code from line 75 to line 79. Is there anything missing or incorrect here?
if (($check_language == '') or ($check_language[
{
$url = "$vboptions[forumhome].php?$session[sessionurl]";
eval(print_standard_redirect('nochangelanguage'));
}
Thanks.
JoergZ
04-24-2004, 04:52 PM
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
if (($check_language == '') or ($check_language[
to this
if ($check_language == '')
J?rg
jluerken
05-06-2004, 07:02 PM
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
Bobbo
07-01-2004, 12:51 PM
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
07-22-2004, 12:17 AM
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 :)
JoergZ
07-22-2004, 07:47 AM
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
07-22-2004, 10:29 PM
Indeed gone now :) thnx a lot mate
Merjawy
07-23-2004, 05:32 AM
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
07-23-2004, 06:00 AM
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
07-23-2004, 10:05 PM
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
07-23-2004, 10:14 PM
O.k., here we go:
To change the language use the following line in the navbar template:
<tr><td class="vbmenu_option"><a href="changelanguage.php?$session[sessionurl]languageid=1">Name of language 1</a></td></tr>
<tr><td class="vbmenu_option"><a href="changelanguage.php?$session[sessionurl]languageid=2">Name of language 2</a></td></tr>
J?rg
can I change Name of language 1 / Name of language 2 to
$vbphrase[lang01] / $vbphrase[lang02] ?
thnx
JoergZ
07-23-2004, 10:17 PM
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
07-24-2004, 12:59 AM
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
07-24-2004, 10:52 PM
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
JoergZ
07-24-2004, 11:03 PM
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
07-31-2004, 12:35 AM
Thank you very much JoergZ for such a useful hack. I have just installed in my english / spanish forums.
Best regards!
Eagle Creek
08-11-2004, 10:06 AM
PERFECT, GREAT, FANTASTIC!! I was so hard looking for this
!
!
Thank you!
¡
¡
bajabob
08-12-2004, 04:29 PM
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!
JoergZ
08-12-2004, 05:27 PM
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
08-13-2004, 06:03 PM
Important question:
Is it compatible with VBindex?
JoergZ
08-13-2004, 09:47 PM
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
08-14-2004, 04:25 AM
Thanks for reply
nighteyes
08-23-2004, 10:46 AM
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:
http://example-domain.com/index.php?guestlanguageid=3
Anyway to make this work:
http://example-domain.com/forumdisplay.php?f=14?guestlanguageid=3
JoergZ
09-06-2004, 05:37 PM
Yes, a link like
http://example-domain.com/forumdisplay.php?f=14?guestlanguageid=3
works too.
Best regards
J?rg
tkeil69575
11-03-2004, 08:57 AM
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.
JoergZ
12-09-2004, 08:34 AM
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
12-09-2004, 01:33 PM
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?
JoergZ
12-09-2004, 01:40 PM
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
12-09-2004, 06:02 PM
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 :)
Fenriz
12-21-2004, 12:10 PM
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..
JoergZ
12-21-2004, 12:31 PM
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
01-05-2005, 01:38 AM
https://vborg.vbsupport.ru/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
JoergZ
01-05-2005, 08:53 AM
Eagle,
check all changes you did in the template navbar. There must be the error somewhere..
Eagle Creek
01-05-2005, 03:02 PM
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
01-05-2005, 03:12 PM
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 :(
JoergZ
01-05-2005, 05:53 PM
O.k.
Which version of the hack have you installed ?
Eagle Creek
01-05-2005, 06:07 PM
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. ****
**** ****
JoergZ
01-05-2005, 10:16 PM
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
Inzagi
01-13-2005, 05:41 PM
It works brilliant with vb 3.05 :squareeyed:
Rastus
02-01-2005, 06:49 PM
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
02-01-2005, 09:05 PM
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
JoergZ
02-02-2005, 05:06 PM
The only way I see for that is, that you modify the changelanguage.php you find in this posting (https://vborg.vbsupport.ru/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-02-2005, 05:43 PM
Btw, is het full 3.0.6 compatible?
JoergZ
02-03-2005, 07:24 AM
Yes, it is working with 3.0.6 too
Eagle Creek
02-03-2005, 04:22 PM
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
JoergZ
03-11-2005, 07:16 AM
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
03-12-2005, 09:56 PM
Btw, is het full 3.0.7 compatible?
eupsilon
04-13-2005, 08:53 PM
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?
JoergZ
04-13-2005, 09:04 PM
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
04-14-2005, 05:34 AM
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.
JoergZ
04-14-2005, 06:50 PM
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
04-14-2005, 08:16 PM
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
04-14-2005, 08:51 PM
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.
JoergZ
04-23-2005, 08:07 PM
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
04-24-2005, 07:20 AM
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 :).
JoergZ
04-24-2005, 10:40 AM
It would be great when the buttons also changed language :).
:rolleyes: ??? When you install the language-packs correct, the buttons will change...
Eagle Creek
04-24-2005, 10:53 AM
:rolleyes: ??? When you install the language-packs correct, the buttons will change...
Uuhm, no.. They didn't..
JoergZ
04-24-2005, 11:20 AM
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
06-07-2005, 07:20 PM
GREAT hack. I have just installed it on my forum. The ability to switch guestlanguageid is incredibly convenient. Thank you!
ThorstenA
07-07-2005, 06:33 AM
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-07-2005, 08:12 PM
WILL THIS HACK BE AVAILABLE ON VB 3.5 (with plugins?)
Anybody?
Thx for reply in advance..
JoergZ
07-07-2005, 08:17 PM
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-07-2005, 08:18 PM
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?
JoergZ
07-07-2005, 08:20 PM
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
09-16-2005, 01:20 AM
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
JoergZ
09-16-2005, 08:42 AM
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
Fenriz
09-29-2005, 10:33 PM
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
JoergZ
09-30-2005, 06:45 AM
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 (https://vborg.vbsupport.ru/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
Fenriz
09-30-2005, 04:47 PM
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)
JoergZ
09-30-2005, 08:58 PM
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 (https://vborg.vbsupport.ru/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
Fenriz
10-04-2005, 12:06 AM
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?
JoergZ
10-04-2005, 03:35 AM
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
10-24-2005, 02:44 AM
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
10-24-2005, 05:10 AM
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
JoergZ
10-24-2005, 05:26 AM
I will have a look at the other hack. But probably they are not working together.
BR
Jörg
Khashyar
10-24-2005, 05:30 AM
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
10-24-2005, 05:42 AM
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
10-24-2005, 06:08 AM
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
10-24-2005, 06:23 AM
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
10-24-2005, 06:35 AM
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
10-24-2005, 08:04 PM
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
JoergZ
10-25-2005, 07:46 PM
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
10-25-2005, 09:28 PM
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
11-15-2005, 11:12 PM
Does this work on 3.5? :nervous:
JoergZ
11-15-2005, 11:15 PM
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
11-15-2005, 11:18 PM
I didn't know that. How do you change the language on 3.5 then? :)
cddw.ltd
12-21-2005, 07:25 AM
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
JoergZ
12-21-2005, 11:13 AM
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 <td class="vbmenu_control"><a href="register.php?$session[sessionurl]">$vbphrase[register]</a></td>
and insert BEFORE this:
<if condition="$show['popups'] AND $bbuserinfo['userid'] == 0">
<td id="guestlanguage" class="vbmenu_control"><a href="#guestlanguage">$vbphrase[guestlanguage]</a> <script type="text/javascript"> vbmenu_register("guestlanguage"); </script></td>
</if>
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. https://vborg.vbsupport.ru/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.
JoergZ
07-06-2006, 04:30 PM
Hm... Look at my signature... ;)
Hacks for vB 3.5
Set forum-language automatic to browser-language for first-visitors (https://vborg.vbsupport.ru/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
09-02-2007, 10:21 AM
Just tested, it is work on my forum which runing V3.6.8. Greate!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.