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

Reply
 
Thread Tools
Set language by Forum Details »»
Set language by Forum
Version: 1.01, by Andreas Andreas is offline
Developer Last Online: Jan 2023 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 06-07-2005 Last Update: 06-16-2005 Installs: 12
DB Changes
Code Changes Is in Beta Stage  
No support by the author.

Set Language by Forum
This hack allows you to specify the language that should be used for each forum.
If a language is set, it will override the users selection and board default language
ATTN: This adds 1 query when a forum with language override is being viewed.

Details
Queries to run: 1
Files to Edit: 2
Difficulty: Difficult

I am releasing this as beta because i am not sure if it does not produce any side-effects.
Please let me know if it does work.

History
1.00 Initial Release
1.01 Updated installation instructions to (hopefully) make them easier to understand

Show Your Support

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

Comments
  #22  
Old 01-27-2006, 03:42 AM
Ben?'s Avatar
Ben? Ben? is offline
 
Join Date: Sep 2005
Location: Remagen, Germany
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Andreas,
you said that this hack should work with vB 3.5.x too.
I'm sorry .. but it does not.

I have made some changes in the files, so I have to use $vbulletin->userinfo instead of $bbuserinfo and $db->query_read() instead of $DB_Site->query() .. okay.
Should not be the problem ..

I upload the files and run the SQL query. Now I have the opportunity to change the language in the admin control panel .. hmm .. I thought I have it.
If I want to save the option I get this error message
Code:
Schwerer Fehler: Field languageid is not defined in $validfields in class vB_DataManager_Forum in /includes/class_dm.php (Zeile 485)
"Schwerer Fehler" ... is German and means "Fatal error" .. for all who do not speak/understand German language.
I know you (Andreas) do

That within the verify()-method of class vB_DataManager_Form. I tried to set to this (without knowing what I do I admit ^^) ..
PHP Code:
$vbulletin->GPC['forum']['languageid'] = $language['languageid']; 
beneath this code block
PHP Code:
    $langs = array('Standardsprache');
    
$languages $db->query_read("SELECT languageid, title FROM " TABLE_PREFIX "language ORDER BY languageid ASC");
    while (
$language $db->fetch_array($languages))
    {
     
$langs[$language['languageid']] = $language['title'];   
    } 
Same error message.
I would be very pleased if you can help me with this.
Maybe a hint is enough, but currently I do not know what I have to do.

Thank you very much,
regards Ben.
Reply With Quote
  #23  
Old 01-27-2006, 01:39 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I said it is pretty similar, I didn't say that iw would be exactly the same
If I got time i'll take a look into this.
Reply With Quote
  #24  
Old 01-27-2006, 04:53 PM
Ben?'s Avatar
Ben? Ben? is offline
 
Join Date: Sep 2005
Location: Remagen, Germany
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Andreas
I said it is pretty similar, I didn't say that iw would be exactly the same
Yeah that's right. :P

Quote:
Originally Posted by Andreas
If I got time i'll take a look into this.
Thank you. I think a hint where to look may be enough .. maybe .. ^^
Reply With Quote
  #25  
Old 11-02-2006, 10:10 AM
Ben?'s Avatar
Ben? Ben? is offline
 
Join Date: Sep 2005
Location: Remagen, Germany
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

*push* .. maybe someone else?
Reply With Quote
  #26  
Old 03-09-2007, 05:55 AM
jhoyssa jhoyssa is offline
 
Join Date: Mar 2007
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I guess this hasn't gone any further? I'm running version 3.6.1 and this hack isn't working

Something like this would be very useful to me also. If someone has come across to any ways to do something like this, please let us know

Also, I have encountered a strange behaviour, which I don't fully understand, it sort of relates to this. I have a forum with four languages, and four main areas, where the discussion is made in the language in question (so there's English discussion, where the language of the interface should be English, Swedish discussion, where the language of the interface should be Swedish etc...).

If I use URL with the GET-parameter for the language selection from an external source, it works just fine, the correct forum opens up and the language is right (such as http://mydomain/forumdisplay.php?f=16&langid=2 to point to the English discussion and making the language selection to English). But if I set this URL to the category's Forum Link value, I get an error about redirecting (FireFox says: The page isn't redirecting properly, Firefox has detected that the server is redirecting the request for this address in a way that will never complete), and actually the links from the external source also stop working, why is this?

Anyhow, the default selection for forum's language would be much better choice anyway.
Reply With Quote
  #27  
Old 10-08-2007, 10:09 AM
berberber berberber is offline
 
Join Date: Aug 2004
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It would be so nice if there where a product corresponding to this.
Reply With Quote
  #28  
Old 11-26-2007, 12:30 PM
ROTPAR ROTPAR is offline
 
Join Date: May 2004
Posts: 140
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am searching for anything similar to this mod because I want to have multiple language packs for my spanish, english, french board categories.
Reply With Quote
  #29  
Old 06-03-2008, 05:05 PM
helpmehost helpmehost is offline
 
Join Date: Nov 2007
Posts: 80
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I prefer to hide a forum is is not related to the language some body chooses
so when some body chooses English he does not need to have the pain to look
at all chinese forums
I beleive that makes more sense
Reply With Quote
  #30  
Old 06-18-2008, 11:54 PM
tazzarkin tazzarkin is offline
 
Join Date: Nov 2007
Posts: 137
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can you update this for use with 3.7 ?
Reply With Quote
  #31  
Old 09-15-2008, 05:52 PM
vktechnology vktechnology is offline
 
Join Date: Jul 2004
Location: London, England
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I want it too for 3.7
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 10:00 AM.


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.04842 seconds
  • Memory Usage 2,316KB
  • 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
  • (2)bbcode_php
  • (2)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
  • (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