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
  #122  
Old 10-25-2005, 07:46 PM
JoergZ JoergZ is offline
 
Join Date: Jun 2002
Location: Germany
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Khashyar,

I just went here for sending you a PM to ask for some more details, and I see, you were lucky to find the problem.

I am sorry, that I did not contacted you earlier, but I have quite a lot of work at the moment, so I have not much time left.

Thanks for the hint, that there is a problem with Version 3.0.8. I only tested it up to 3.0.7. But I will add a hint at the main-posting.

Sorry again, that I was not a big help in this case


BR

J?rg
Reply With Quote
  #123  
Old 10-25-2005, 09:28 PM
Khashyar Khashyar is offline
 
Join Date: Jan 2003
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That's o.k., Jörg.

I'm glad that I could get the hack working for VB 3.0.8, and that we could offer help to those who might have had the same issue as I did.

Khashyar
Reply With Quote
  #124  
Old 11-15-2005, 11:12 PM
funinthesun funinthesun is offline
 
Join Date: Oct 2005
Posts: 460
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this work on 3.5? :nervous:
Reply With Quote
  #125  
Old 11-15-2005, 11:15 PM
JoergZ JoergZ is offline
 
Join Date: Jun 2002
Location: Germany
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It is not necessary for 3.5, because in 3.5 standard the language can be choosen the same way as styles for member and guests.

The only thing, that is available as hack for 3.5 is the automatic language-detection for first visitors. (See my signature)



BR

Jörg
Reply With Quote
  #126  
Old 11-15-2005, 11:18 PM
funinthesun funinthesun is offline
 
Join Date: Oct 2005
Posts: 460
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I didn't know that. How do you change the language on 3.5 then?
Reply With Quote
  #127  
Old 12-21-2005, 07:25 AM
cddw.ltd cddw.ltd is offline
 
Join Date: Aug 2004
Posts: 41
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Note if you can't get the Selection Menu to display:

When I first installed this hack, I couldn't get the Menu to display, I scratched my head for a while, tried installing the hack multiple times but still no joy. When I returned to the developement of my board recently after allocating some time to it, all of a sudden it worked... strange I thought. So I did more work on the board last night, messed about a bit, all of a sudden... its gone again... Whats going on here I thought!

The culprit:

If you set your board so that its accepting no new registrations (which is what I had in place just in case while the board is in developement) the selection bar dissapeares. Thought I'd note this incase someone else sits there for ages scratching their heads!

- Paul
Reply With Quote
  #128  
Old 12-21-2005, 11:13 AM
JoergZ JoergZ is offline
 
Join Date: Jun 2002
Location: Germany
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this hint. The menu-option not appears in this case, because it is inside the condition for the register-option.


If you don't allow new registrations, but you want to have the language-option shown in the navbar, do this:

Look in the template navbar for
Code:
<td class="vbmenu_control"><a href="register.php?$session[sessionurl]">$vbphrase[register]</a></td>
and insert BEFORE this:
Code:
<if condition="$show['popups'] AND $bbuserinfo['userid'] == 0">
 <td id="guestlanguage" class="vbmenu_control"><a href="#guestlanguage">$vbphrase[guestlanguage]</a> <script type="text/javascript"> vbmenu_register("guestlanguage"); </script></td> 
</if>

J?rg
Reply With Quote
  #129  
Old 07-06-2006, 04:05 PM
joh's Avatar
joh joh is offline
 
Join Date: Mar 2006
Location: NY
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey I know this is old but can anyone make this work on vBulletin 3.5.4 I want it to automatically detect the user language. it was indicated by Andreas that it was very possible. https://vborg.vbsupport.ru/showpost....15&postcount=5 if this was already done I would love to get my hands on it. If it was not it looks like you already have a good start.
Reply With Quote
  #130  
Old 07-06-2006, 04:30 PM
JoergZ JoergZ is offline
 
Join Date: Jun 2002
Location: Germany
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hm... Look at my signature...


Hacks for vB 3.5
Set forum-language automatic to browser-language for first-visitors
Reply With Quote
  #131  
Old 01-02-2007, 02:55 PM
PajE PajE is offline
 
Join Date: Dec 2006
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My current forum consists mainly of 2 trees, one for german forums, one for french ones.
I would like to force the navigation to be in german for the german part.. and french for the french part, by default, overriding the vB automatic language chooser.
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 08:32 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.05378 seconds
  • Memory Usage 2,307KB
  • 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
  • (2)bbcode_code
  • (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