vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - Set forum-language automatic to browser-language for first-time-visitors (https://vborg.vbsupport.ru/showthread.php?t=243201)

JoergZ 05-23-2010 10:00 PM

Set forum-language automatic to browser-language for first-time-visitors
 
1 Attachment(s)
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

Datenpapst 05-24-2010 01:36 PM

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 ^^

JoergZ 05-24-2010 03:03 PM

1 Attachment(s)
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

Datenpapst 06-04-2010 08:32 PM

ah ok, so no more numbers to type in the code? ^^

JoergZ 06-04-2010 09:04 PM

Nope.. :)

Totally "Plug-and-Play" :D

CrystaStarLight 08-17-2010 07:02 PM

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

https://vborg.vbsupport.ru/showthread.php?t=232456

JoergZ 08-17-2010 07:39 PM

Hi !

Nice to hear you like this little modification. :)

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


Joerg

lemonadesoda 08-19-2010 07:06 PM

This is very useful. Thanks

COL NIL SATIS 08-19-2010 07:46 PM

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 ??

digitalnorte 09-21-2010 07:03 PM

Installing and running fine !!!
Tks Joerg :)


All times are GMT. The time now is 07:49 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01189 seconds
  • Memory Usage 1,729KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete