Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons

Reply
 
Thread Tools
Set forum-language automatic to browser-language for first-visitors Details »»
Set forum-language automatic to browser-language for first-visitors
Version: 2.00, by JoergZ JoergZ is offline
Developer Last Online: Dec 2012 Show Printable Version Email this Page

Version: 3.5.0 Rating:
Released: 09-30-2005 Last Update: 10-06-2005 Installs: 39
Uses Plugins
 
No support by the author.

Originally I have not planned to bring my Hack "Language Selection for Guests" to vB 3.5, because in 3.5 the language can be selected with the drop-down menu at the bottom.

But I was asked to make the automatic language-detection in 3.5 available. In case others are maybe interested in that too, I bring it here as new hack for vB 3.5


Short-description

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 automatic-detection of the browser-language was realised by WildChild


Requirements
  • vB 3.5 Gold (Tested up to 3.5.1)
  • Of course more than one installed and selectable language, otherwise this modification makes no sens
Installation-time

about 1 minutes


PLEASE CLICK THE INSTALL BUTTON IF INSTALLED!


Updates

01.10.2005 Thanks to the help of KirbyDE, now a standard-hook is used, so no code-modification is necessary

------------------------------------------------------------------------

If you want to test the hack after installing, do it like this:

- Log out of your forum. Dont klick any of the displayed links after logging out !
- Close your browser-window
- Open a new browser-window
- Set your language preferences in the browser
- Go to your forum homepage

Show Your Support

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

Comments
  #22  
Old 10-13-2005, 03:50 PM
JoergZ JoergZ is offline
 
Join Date: Jun 2002
Location: Germany
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

O.k., I have just tried the following at my test-board:

I have installed the hack a second time, and I got exactly the same error as you wrote. So you definetely installed the hack twice !!

How to get rid of this:

Deactivate both plugin-installations as I wrote in my posting before.

Moreover you must go to the table "datastore" and look there for the record named "pluginlist". Delete this record.

Then you can login to your board again.

Login into admin-cp, go to the plugin-manager, and click on "Save Active Status", to rebuild the entry in the datastore.

That's it.

And next time don't do any changes, when you already fell to sleep


BR

J?rg
Reply With Quote
  #23  
Old 10-13-2005, 04:06 PM
GrendelKhan{TSU's Avatar
GrendelKhan{TSU GrendelKhan{TSU is offline
 
Join Date: Jun 2005
Location: Boston | Seoul, S. Korea
Posts: 1,311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JoergZ
Moreover you must go to the table "datastore" and look there for the record named "pluginlist". Delete this record.
I don't know how to do this. I'm a n00b.
Reply With Quote
  #24  
Old 10-13-2005, 04:15 PM
JoergZ JoergZ is offline
 
Join Date: Jun 2002
Location: Germany
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Send me via PN your ICQ-number, and I will try to help you
Reply With Quote
  #25  
Old 10-14-2005, 10:34 AM
GrendelKhan{TSU's Avatar
GrendelKhan{TSU GrendelKhan{TSU is offline
 
Join Date: Jun 2005
Location: Boston | Seoul, S. Korea
Posts: 1,311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JoergZ
Send me via PN your ICQ-number, and I will try to help you
just pm-ed you. I'm still down +_+
Reply With Quote
  #26  
Old 10-14-2005, 11:57 AM
Yorixz Yorixz is offline
 
Join Date: Jun 2005
Location: Netherlands
Posts: 284
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very interesting plugin since I'm also running a multi-langual forum, thanks for sharing!

I'm just wondering; are there any places you can share languagefiles with other users; I'm quite sure there are many users who got localized/multilangual forums, sadly I'm not able to do all language files myself and it's a huge load of work, even for just a single set.
Reply With Quote
  #27  
Old 10-14-2005, 12:01 PM
JoergZ JoergZ is offline
 
Join Date: Jun 2002
Location: Germany
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, there is a forum at vb.com: http://www.vbulletin.com/forum/forumdisplay.php?f=87

There you find language-files for several languages. But watch out.. Packs for 3.0 and 3.5 are both offered in this forum, so you must take the correct version.


J?rg
Reply With Quote
  #28  
Old 10-14-2005, 12:07 PM
Yorixz Yorixz is offline
 
Join Date: Jun 2005
Location: Netherlands
Posts: 284
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JoergZ
Yes, there is a forum at vb.com: http://www.vbulletin.com/forum/forumdisplay.php?f=87

There you find language-files for several languages. But watch out.. Packs for 3.0 and 3.5 are both offered in this forum, so you must take the correct version.


J?rg
Ok, thanks a lot - never noticed it, I'm nearly always at vB.org
Reply With Quote
  #29  
Old 10-14-2005, 12:54 PM
GrendelKhan{TSU's Avatar
GrendelKhan{TSU GrendelKhan{TSU is offline
 
Join Date: Jun 2005
Location: Boston | Seoul, S. Korea
Posts: 1,311
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by JoergZ
Send me via PN your ICQ-number, and I will try to help you
YAY!! FIXED!!

A BBBIIGGG thank you to joergZ for all your support help. I know it was a pain and you didn't have to go above and beyond with the extra lesson.

thank you again!!!

<< now I'm gunna take your advice and get some sleep now before I break something again. :P
Reply With Quote
  #30  
Old 01-16-2006, 03:23 PM
Totti's Avatar
Totti Totti is offline
 
Join Date: Jul 2005
Location: Germany
Posts: 72
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

gro?artig j?rg, vielen dank

it'd be cool to let the code copy the first 2 or 3 chars of the browserlanguage,
so that you can set all en-xx langs easy to english,
instead of making 12 cases
Reply With Quote
  #31  
Old 01-22-2006, 06:55 PM
JoergZ JoergZ is offline
 
Join Date: Jun 2002
Location: Germany
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Totti
it'd be cool to let the code copy the first 2 or 3 chars of the browserlanguage,
so that you can set all en-xx langs easy to english,
instead of making 12 cases
At the moment I have very little time due to much work, but I will keep it in mind.


Best Regards

J?rg
Reply With Quote
Reply

Thread Tools

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 07:46 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.04384 seconds
  • Memory Usage 2,302KB
  • 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
  • (5)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
  • (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