The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Set forum-language automatic to browser-language for first-visitors Details »» | |||||||||||||||||||||||||||
Set forum-language automatic to browser-language for first-visitors
Developer Last Online: Dec 2012
Originally I have not planned to bring my Hack "Language Selection for Guests" to vB 3.5, because in 3.5 the language can be selected with the drop-down menu at the bottom.
But I was asked to make the automatic language-detection in 3.5 available. In case others are maybe interested in that too, I bring it here as new hack for vB 3.5 Short-description This Hack detects the browser-language automatic and shows the board in the language of the user, if the user has never been at your board before or has no cookie for your board. The automatic-detection of the browser-language was realised by WildChild Requirements
about 1 minutes PLEASE CLICK THE INSTALL BUTTON IF INSTALLED! Updates 01.10.2005 Thanks to the help of KirbyDE, now a standard-hook is used, so no code-modification is necessary ------------------------------------------------------------------------ If you want to test the hack after installing, do it like this: - Log out of your forum. Dont klick any of the displayed links after logging out ! - Close your browser-window - Open a new browser-window - Set your language preferences in the browser - Go to your forum homepage Show Your Support
|
Comments |
#12
|
|||
|
|||
yes, but Search engines, have no language set, and some Browsers not as well, so it would make sense for me, that in first place, it would depend on users choice, but then, on forum admins choice.
For example on my forums, i Have a french area, I would like to be seen like french as default. KirbyDE already said its not possible via plugins, I tried, but did not get it. Bernhard |
#13
|
||||
|
||||
Quote:
<< installed. thanks!! ^^ |
#14
|
|||
|
|||
Thank you, great idea. I just installed this, however it seems to have a glitch:
My Borwser language is set to EN-US & En (in Firefox) and to En-Ca in IE. When i go to the forum without a cookie set (logged out), then the forum language auto-sets to Spanish - Mexico. The forums' Default Language is EN-US and it has following language packs installed: Chinese, Chinese-TW, German (Du & Sie), English-US (Default), Spanish - MX and Polish - PL Any ideas? |
#15
|
|||
|
|||
Hello, are you sure you set it correctly up, just edit the plugin, in the plugin manager, to make sure you set the right languageids.
|
#16
|
|||
|
|||
@betablue: Did you checked the code in the plugin, that all language-assignments are correct as berberber wrote ?
For detecting EN-US, you need e.g. an entry like this: PHP Code:
The same you must do for all other languages that you want to have detected and assigned to an installed language. I will test it with en-us setting in Explorer at the weekend, when I am back at home. J?rg |
#17
|
||||
|
||||
AHHHHH....
I upgrade vb, then tried reinstall this..... now I get huge error and my board is down Quote:
|
#18
|
|||
|
|||
Quote:
Why have you re-installed the hack after you upgraded your board ? When you had the first version of the hack installed, did you removed it before ? Quote:
Quote:
Did you changed by mistake something in the plugin-code except in the area where you define your language-id's ? J?rg |
#19
|
||||
|
||||
oh no!! can't even log into my admin cp!!!
how do i fix this??!?!!?!? +_+ |
#20
|
|||
|
|||
Oh man.. what have you done ?
Deactivate the plugin via phpMyAdmin. Select the table "plugin" and select the record with the title "Set automatic forumlanguage to browserlanguage" for edit. Then set the value for the field "active" to 0 (see screenshot) Then the plugin is deactivated. Jörg |
#21
|
||||
|
||||
I'm on 3.5.0 Gold .
well... I thought I had installed it before....but didn't seem to be working.... and so I wasn't sure as its late and I'm pretty tired and stupid. so after looking through the plug-in manager, I didn't see it, so thought it was safe to just install again. didn't back up first. +_+ I ddin't change ANYTHING just downloaded the file and installed via PLUGIN upload/download. man..I was so about to go to sleep...but now my board is COMPLETELY down so I'm freakin out. o_0 any other help would be very very appricated. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|