Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Language-selection for guest Details »»
Language-selection for guest
Version: 1.00, by JoergZ JoergZ is offline
Developer Last Online: Dec 2012 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 01-02-2004 Last Update: 03-08-2004 Installs: 58
Code Changes  
No support by the author.

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

Show Your Support

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

Comments
  #12  
Old 01-11-2004, 07:21 PM
Khashyar Khashyar is offline
 
Join Date: Jan 2003
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thank you, Joerg...

Will that vB2 hack allow users to register in the language that they choose? Or.. will they still need to register in English (or the default forum language?)

Thanks again,

Khashyar
Reply With Quote
  #13  
Old 01-11-2004, 07:33 PM
JoergZ JoergZ is offline
 
Join Date: Jun 2002
Location: Germany
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I suppose you have solved the multi-language with different styles. With this hack, you can select styles. And I think, if the user have selected a style, the registration will come up in the selected style.

You should try this. Another solution I don't know for vB2.

Jörg
Reply With Quote
  #14  
Old 01-11-2004, 07:49 PM
Khashyar Khashyar is offline
 
Join Date: Jan 2003
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, Joerg...
Reply With Quote
  #15  
Old 01-17-2004, 07:33 AM
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Location: Mocsow
Posts: 1,288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ir could have an autodetect language JavaScript as well ...
Reply With Quote
  #16  
Old 01-17-2004, 03:46 PM
Khashyar Khashyar is offline
 
Join Date: Jan 2003
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I didn't need to install the 2.x hack... actually, an admin. at vb.org just gave me a line of text to add to any link code (i.e., "register in German" html link , for example) that allowed people to register in their own language....

Khashyar
Reply With Quote
  #17  
Old 01-18-2004, 06:56 AM
tpr tpr is offline
 
Join Date: Jan 2004
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JoergZ
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

Of cource more than one installed language, otherwise this modification make no sense

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)

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.


Note: A german version of the installation-instructions you will find here at vbulletin-germany.com

i am not worthy
Reply With Quote
  #18  
Old 01-18-2004, 06:56 PM
Didi_gt's Avatar
Didi_gt Didi_gt is offline
 
Join Date: Mar 2002
Location: Cologne / Germany
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks Joerg .....awesome

works also in RC2
Reply With Quote
  #19  
Old 02-12-2004, 07:46 AM
Bernd Glasstett's Avatar
Bernd Glasstett Bernd Glasstett is offline
 
Join Date: Sep 2002
Location: Waldshut-Tiengen Germany
Posts: 94
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have a small suggestion: If you add

Code:
<if condition="$show['registerbutton']">
</if>
around the entry on navbar, noone sees the guestselection, when they are registered and logged in
Reply With Quote
  #20  
Old 02-12-2004, 10:12 AM
JoergZ JoergZ is offline
 
Join Date: Jun 2002
Location: Germany
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you follow exactly my instructions, it IS like you describe, that the selection-menue-entry is only shown when you are not logged in.

Why ? In my isntruction is written, that you have to look for
PHP Code:
<td class="vbmenu_control"><a href="register.php?$session[sessionurl]">$vbphrase[register]</a></td
and directly after that my code should be added.

So my code is within the condition to show the register-button. --> Language selection is only shown when register-button is shown. And register-button is only shown, when you are not logged in.

So I think, everything is fine...


J?rg


P.S. I have not checked RC4 yet. Maybe there were some changes in the navbar template ?


[edit]I have checked this part in RC4 and it still works [/edit]
Reply With Quote
  #21  
Old 02-12-2004, 07:51 PM
gmarik's Avatar
gmarik gmarik is offline
 
Join Date: May 2002
Location: Mocsow
Posts: 1,288
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Could I choose it by the flag .gif icon? Like German, English and Estonian flags on the forumhome top?
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 03:26 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.07008 seconds
  • Memory Usage 2,317KB
  • Queries Executed 25 (?)
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_code
  • (1)bbcode_php
  • (1)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
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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