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

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

Category: Mini Mods - Version: 3.6.2 Rating:
Released: 10-13-2006 Last Update: Never Installs: 75
Uses Plugins
 
No support by the author.

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 part of automatic-detection of the browser-language was realised by WildChild


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

about 1 minutes


PLEASE CLICK THE INSTALL BUTTON IF INSTALLED!


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

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

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

Comments
  #2  
Old 10-14-2006, 05:38 PM
Klaymen TK's Avatar
Klaymen TK Klaymen TK is offline
 
Join Date: Aug 2006
Location: [Italy]
Posts: 32
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Really really great! Thanks man!

*Installed*
Reply With Quote
  #3  
Old 10-14-2006, 07:12 PM
Robru Robru is offline
 
Join Date: Aug 2005
Location: Netherlands
Posts: 368
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Marvelous hack, thank you
Reply With Quote
  #4  
Old 10-15-2006, 03:55 PM
Ajavas's Avatar
Ajavas Ajavas is offline
 
Join Date: Aug 2004
Location: The Netherlands
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks nice modification.

**Installed**
Reply With Quote
  #5  
Old 10-15-2006, 10:40 PM
oberheimhaven's Avatar
oberheimhaven oberheimhaven is offline
 
Join Date: May 2006
Location: Daytona Beach FLA
Posts: 266
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

will this work 3.6.0 thxs m8 great hack also i couldnt find her after install to check her in adminp
thxs
MArkAnthony

nope nothing?? Im missing something here correct??
Reply With Quote
  #6  
Old 10-16-2006, 04:56 AM
JoergZ JoergZ is offline
 
Join Date: Jun 2002
Location: Germany
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have not tested it with 3.6.0, but it works for all 3.5.x versions and for 3.6.2, so it should work for 3.6.0 and 3.6.1 too.

After you have installed the plugin, there will be not new points in the settings. You have to go to the plugin-area and edit the plugin-code direct. So click on "Plugins & Products" in the left menue in the Admin-CP, then select "Plugin Manager".

There you click on "Edit" at the plugin "Set automatic forumlanguage to browserlanguage". To have a better overview increase the size of the edit-box 3 or 4 times. Scroll to the end of the plugin-code. There you find direct above the edit-description the lines, where you can assign the language-code to your language ID.

If you still have problems to find it, I can provide some screenshots.


Best regards

J?rg
Reply With Quote
  #7  
Old 10-16-2006, 09:59 AM
oberheimhaven's Avatar
oberheimhaven oberheimhaven is offline
 
Join Date: May 2006
Location: Daytona Beach FLA
Posts: 266
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JoergZ
I have not tested it with 3.6.0, but it works for all 3.5.x versions and for 3.6.2, so it should work for 3.6.0 and 3.6.1 too.

After you have installed the plugin, there will be not new points in the settings. You have to go to the plugin-area and edit the plugin-code direct. So click on "Plugins & Products" in the left menue in the Admin-CP, then select "Plugin Manager".

There you click on "Edit" at the plugin "Set automatic forumlanguage to browserlanguage". To have a better overview increase the size of the edit-box 3 or 4 times. Scroll to the end of the plugin-code. There you find direct above the edit-description the lines, where you can assign the language-code to your language ID.

If you still have problems to find it, I can provide some screenshots.


Best regards

J?rg
Ok I found what are we suppose to do to get this to work tho????? I have installed is there suppose to be a drop down menu? anything I aint getting it??
Reply With Quote
  #8  
Old 10-16-2006, 11:30 AM
uspange uspange is offline
 
Join Date: Aug 2006
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Ok I found what are we suppose to do to get this to work tho????? I have installed is there suppose to be a drop down menu? anything I aint getting it??
1.) Open Admin Panel
2.) Check Languages (with my board German is ID1 and English ID2)
3.) Go Plugins & Products
4.) Manage Plugins
5.) Click "edit" for "Set automatic forumlanguage to browserlanguage"
6.) Check code at the end. If you only run German and English, you might want to delete French or set it to German/English.

Do your testing with your browser, delete cookies and stuff ...
Reply With Quote
  #9  
Old 10-16-2006, 05:39 PM
JoergZ JoergZ is offline
 
Join Date: Jun 2002
Location: Germany
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by oberheimhaven
I have installed is there suppose to be a drop down menu?
No, there is no visible change. Please look at the top, there is the short-description what this hack do.

To give an example:

You have installed the following languages on your board: English, German, French.

A visitor, that has never been bevore on your forum comes to your website with the board. Without any modification the user see the board in the language, you have defined as default. Let's say English. To change the language the user has to select it from the drop-down menu at the bottom.

With this hack, a first-time visitor from France would see the board immedeately in French, without changing the language manually.

That's what the hack is doing.

How you set the hack correct to the languages you have installed, is described in the downloadable installation-description.

How to get there, has uspange described in the post above very good.


BR

J?rg
Reply With Quote
  #10  
Old 10-17-2006, 02:03 AM
oberheimhaven's Avatar
oberheimhaven oberheimhaven is offline
 
Join Date: May 2006
Location: Daytona Beach FLA
Posts: 266
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thxs mates great hack!!!!1
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:21 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.04968 seconds
  • Memory Usage 2,297KB
  • Queries Executed 23 (?)
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
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)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
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete