vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Language-selection for guest (https://vborg.vbsupport.ru/showthread.php?t=59564)

JoergZ 01-02-2004 10:00 PM

Language-selection for guest
 
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 !! 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


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

Quote:

Originally Posted by Bernd Glasstett
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.

With this hack, you can add a style-seleciton on your forum-home page.


J?rg


All times are GMT. The time now is 12:34 AM.

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.01706 seconds
  • Memory Usage 1,740KB
  • 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
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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