Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Set forum-language automatic to browser-language for first-time-visitors Details »»
Set forum-language automatic to browser-language for first-time-visitors
Version: 4.0.001, by JoergZ JoergZ is offline
Developer Last Online: Dec 2012 Show Printable Version Email this Page

Category: Mini Mods - Version: 4.0.3 Rating:
Released: 05-23-2010 Last Update: Never Installs: 36
Uses Plugins
 
No support by the author.

Short-description

This is an update for vB4 of my older version.

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 mod was rewritten and don't need any manual edit anymore as in earlier versions.



Requirements
  • vB 4.0 (Tested with 4.0.3)
  • Of course more than one installed and selectable language, otherwise this modification makes no sense
Installation

Easy: Only import the product-xml -> Done


PLEASE CLICK THE INSTALL BUTTON IF INSTALLED!



Support

I did not marked the "Supported" box, because I may have not the time to react immedeately to questions. But don't worry, I will not abandon you



------------------------------------------------------------------------


If you want to test the hack after installing, do it like this:

- Open a new browser-window and use the "in private-mode"
- Set your language preferences in the browser
- Go to your forum homepage

Download Now

File Type: zip langdatect_hack_joergz.zip (2.5 KB, 197 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 05-24-2010, 01:36 PM
Datenpapst Datenpapst is offline
 
Join Date: Mar 2004
Location: Vienna
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Note: It is necessary, that your installed languages have the
correct id in the field "Language Code"
(AdminCP -> Languages & Phrases -> Langauge Manger -> Edit Settings)
Where to do that? There are no numbers like in the old version ^^
Reply With Quote
  #3  
Old 05-24-2010, 03:03 PM
JoergZ JoergZ is offline
 
Join Date: Jun 2002
Location: Germany
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the settings of your language.

As I wrote: AdminCP -> Languages & Phrases -> Langauge Manger -> Edit Settings

There the field "Language Code". A list of correct languages-codes can be found e.g. here: http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes

I attached 3 screenshots.


Usually the language-code is correct, after you import a language. At least for the official languages. I wrote it in the description, just to make it sure it's there, because my little hack needs this information.



Br
Joerg
Attached Images
File Type: jpg chk_01.jpg (49.9 KB, 0 views)
File Type: jpg chk_02.jpg (56.3 KB, 0 views)
File Type: jpg chk_03.jpg (38.9 KB, 0 views)
Reply With Quote
  #4  
Old 06-04-2010, 08:32 PM
Datenpapst Datenpapst is offline
 
Join Date: Mar 2004
Location: Vienna
Posts: 301
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ah ok, so no more numbers to type in the code? ^^
Reply With Quote
  #5  
Old 06-04-2010, 09:04 PM
JoergZ JoergZ is offline
 
Join Date: Jun 2002
Location: Germany
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nope..

Totally "Plug-and-Play"
Reply With Quote
  #6  
Old 08-17-2010, 07:02 PM
CrystaStarLight CrystaStarLight is offline
 
Join Date: Sep 2006
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi! Great mod! Is this compatible with this mod?

https://vborg.vbsupport.ru/showthread.php?t=232456
Reply With Quote
  #7  
Old 08-17-2010, 07:39 PM
JoergZ JoergZ is offline
 
Join Date: Jun 2002
Location: Germany
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi !

Nice to hear you like this little modification.

There should be no problems having it installed together with the translation-mod.


Joerg
Reply With Quote
  #8  
Old 08-19-2010, 07:06 PM
lemonadesoda lemonadesoda is offline
 
Join Date: Nov 2009
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is very useful. Thanks
Reply With Quote
  #9  
Old 08-19-2010, 07:46 PM
COL NIL SATIS COL NIL SATIS is offline
 
Join Date: Aug 2009
Location: Liverpool UK
Posts: 802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will this work for curent members too ...we have a large Greek base at our site and this would be great for the Greek lads ??
Reply With Quote
  #10  
Old 09-21-2010, 07:03 PM
digitalnorte digitalnorte is offline
 
Join Date: Jan 2008
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installing and running fine !!!
Tks Joerg
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:22 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04944 seconds
  • Memory Usage 2,315KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (4)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete