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
  #92  
Old 04-23-2005, 12:39 AM
YLP1 YLP1 is offline
 
Join Date: Aug 2004
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

My community really needs this mod as we have a large number of Italian, German and Polish here.

I haven't installed this mod yet because I have searched for language and langues and cannot seem to find any of the three languages I need.

Can someone point me in the right direction on where I might find these or is this something that someone must translate (the phrases) themselves? Or??

Also, I understand that this mod doesn't alter the actual posts and only the phrases, so does that mean that I will have to find the buttons, etc. for the different languages as well and if I can find them and get permission to use them, what file do I put them on my server?

Thanks in advance for any help on this.
Reply With Quote
  #93  
Old 04-23-2005, 08:07 PM
JoergZ JoergZ is offline
 
Join Date: Jun 2002
Location: Germany
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Italien language pack here

Polish language pack I don't know if there exist one

German language pack here (You need to register using your email address with that you bought vBulletin)

In the german language pack, the graphics are included. For the italien I don't know.

Quote:
Originally Posted by YLP1
Also, I understand that this mod doesn't alter the actual posts and only the phrases
No, not correct. This hack offers visitors of your board, that are not logged in (usually guests, that are not registred yet), to select the board language. Standard in vB3 is, that only logged in users can select the board language in the userCP. Guests have no chance to change the board-language. With this hack you have for not logged in users an additional item in the menue-line, where they can select one of the instlaled board-languages.

Of course we are always talking only about the translation of the phrases and buttons, not about the translation of the postings themselve.


Best regards

J?rg
Reply With Quote
  #94  
Old 04-24-2005, 07:20 AM
Eagle Creek's Avatar
Eagle Creek Eagle Creek is offline
 
Join Date: Jan 2004
Location: Netherlands
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JoergZ
Italien language pack here

Polish language pack I don't know if there exist one

German language pack here (You need to register using your email address with that you bought vBulletin)

In the german language pack, the graphics are included. For the italien I don't know.



No, not correct. This hack offers visitors of your board, that are not logged in (usually guests, that are not registred yet), to select the board language. Standard in vB3 is, that only logged in users can select the board language in the userCP. Guests have no chance to change the board-language. With this hack you have for not logged in users an additional item in the menue-line, where they can select one of the instlaled board-languages.

Of course we are always talking only about the translation of the phrases and buttons, not about the translation of the postings themselve.


Best regards

J?rg
It would be great when the buttons also changed language .
Reply With Quote
  #95  
Old 04-24-2005, 10:40 AM
JoergZ JoergZ is offline
 
Join Date: Jun 2002
Location: Germany
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Eagle Creek
It would be great when the buttons also changed language .

??? When you install the language-packs correct, the buttons will change...
Reply With Quote
  #96  
Old 04-24-2005, 10:53 AM
Eagle Creek's Avatar
Eagle Creek Eagle Creek is offline
 
Join Date: Jan 2004
Location: Netherlands
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JoergZ
??? When you install the language-packs correct, the buttons will change...
Uuhm, no.. They didn't..
Reply With Quote
  #97  
Old 04-24-2005, 11:20 AM
JoergZ JoergZ is offline
 
Join Date: Jun 2002
Location: Germany
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Then you did something wrong :surprised:


You should have the following file-structure if you have no sub-folders for different styles:

.../forum/images/buttons/EN (Here the English buttons)
.../forum/images/buttons/NL (Here the Dutch buttons)

and so on

In the language manager edit the settings for the language like in the screenshot (The screenshot show the settings for English)


Jörg
Reply With Quote
  #98  
Old 05-01-2005, 10:12 PM
YLP1 YLP1 is offline
 
Join Date: Aug 2004
Posts: 417
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JoergZ
Italien language pack here

Polish language pack I don't know if there exist one

German language pack here (You need to register using your email address with that you bought vBulletin)

In the german language pack, the graphics are included. For the italien I don't know.



No, not correct. This hack offers visitors of your board, that are not logged in (usually guests, that are not registred yet), to select the board language. Standard in vB3 is, that only logged in users can select the board language in the userCP. Guests have no chance to change the board-language. With this hack you have for not logged in users an additional item in the menue-line, where they can select one of the instlaled board-languages.

Of course we are always talking only about the translation of the phrases and buttons, not about the translation of the postings themselve.


Best regards

J?rg

Thanks a bunch....I really appreciate it.
Reply With Quote
  #99  
Old 06-07-2005, 07:20 PM
edwardcyh edwardcyh is offline
 
Join Date: Jun 2005
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

GREAT hack. I have just installed it on my forum. The ability to switch guestlanguageid is incredibly convenient. Thank you!
Reply With Quote
  #100  
Old 07-07-2005, 06:33 AM
ThorstenA's Avatar
ThorstenA ThorstenA is offline
 
Join Date: Nov 2004
Posts: 669
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Polish language pack I don't know if there exist one

Polish language pack is available on http://www.vbulletin.com/forum/showthread.php?t=141372

Polish button set is available on www.vbulletin.com/forum/showthread.php?t=127808
Reply With Quote
  #101  
Old 07-07-2005, 08:12 PM
Eagle Creek's Avatar
Eagle Creek Eagle Creek is offline
 
Join Date: Jan 2004
Location: Netherlands
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

WILL THIS HACK BE AVAILABLE ON VB 3.5 (with plugins?)

Anybody?

Thx for reply in advance..
Reply With Quote
  #102  
Old 07-07-2005, 08:17 PM
JoergZ JoergZ is offline
 
Join Date: Jun 2002
Location: Germany
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No.


Why ?


In vB 3.5 it is standard


Look at the german vB-Site. There you can see in the footer the selection for the language. So no need for migration of this hack to 3.5


Best regards

J?rg
Reply With Quote
  #103  
Old 07-07-2005, 08:18 PM
Eagle Creek's Avatar
Eagle Creek Eagle Creek is offline
 
Join Date: Jan 2004
Location: Netherlands
Posts: 742
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JoergZ
No.


Why ?


In vB 3.5 it is standard


Look at the german vB-Site. There you can see in the footer the selection for the language. So no need for migration of this hack to 3.5


Best regards

J?rg
Standard?! You don't mean that; do you? Where can I enable this option?

Or will it be when I install more languages?
Reply With Quote
  #104  
Old 07-07-2005, 08:20 PM
JoergZ JoergZ is offline
 
Join Date: Jun 2002
Location: Germany
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Eagle Creek
Standard?! You don't mean that; do you? Where can I enable this option?

Or will it be when I install more languages?
It appears automaticly, when you have installed more than one language. It is similar to the style-selection. See screenshot..


J?rg
Reply With Quote
  #105  
Old 09-16-2005, 01:20 AM
Maplewoods Maplewoods is offline
 
Join Date: Sep 2005
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The hack says to remove the etxt from:
// get default language
$phraseinfo = $DB_site->query_first("
SELECT languageid" . fetch_language_fields_sql(0) . "
FROM " . TABLE_PREFIX . "language
WHERE languageid = " . intval($vboptions['languageid']) . "
");

But in 3.0.8 it begins as follows:
// get default language
$DB_site->reporterror = 0;
$phraseinfo = $DB_site->query_first("
SELECT languageid" . fetch_language_fields_sql(0) . "
FROM " . TABLE_PREFIX . "language
WHERE languageid = " . intval($vboptions['languageid']) . "
");

The line:
$DB_site->reporterror = 0;

is not mentioned in the hack and I wonder if it should be removed for the Hack to work
Reply With Quote
  #106  
Old 09-16-2005, 08:42 AM
JoergZ JoergZ is offline
 
Join Date: Jun 2002
Location: Germany
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Maplewoods,

sorry, I have not tested the hack with 3.0.8. But as far as I see, you should insert the line "$DB_site->reporterror = 0;" above the line "$phraseinfo =....."

Best regards

Jörg
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 05:22 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.05340 seconds
  • Memory Usage 2,368KB
  • Queries Executed 30 (?)
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
  • (8)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
  • (4)pagenav_pagelink
  • (16)post_thanks_box
  • (16)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (16)post_thanks_postbit_info
  • (15)postbit
  • (16)postbit_onlinestatus
  • (16)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