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
  #12  
Old 08-31-2005, 08:30 AM
Khashyar Khashyar is offline
 
Join Date: Jan 2003
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Everyone,

I do like having this hack in my forums.

However, I am finding that the charset settings that are inluded in the language packs (the Russian pack, for example) is not being applied to the forum.

My default forum language is English, but although after the hack, the Russian language pack IS being applied, the Russian letters are not displaying correctly.

I checked, and the charset setting is correct (windows-1251).

Is anyone else having the same issue?

Khashyar
Reply With Quote
  #13  
Old 09-15-2005, 11:37 AM
berberber berberber is offline
 
Join Date: Aug 2004
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello, would that be released or 3.5 in the future ?

Bernhard
Reply With Quote
  #14  
Old 09-15-2005, 12:05 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I don't plan to port this for 3.5, as it can't be done without File Edits.
Reply With Quote
  #15  
Old 09-15-2005, 12:12 PM
berberber berberber is offline
 
Join Date: Aug 2004
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I didnt any plugins for now, but if i understand well, whats not possible is to add the acp part, but with a file to edit , with correspondance between languageid and forumid, it should be makable or am i wrong ? (perhaps i would try myself in this case)
Bernhard
Reply With Quote
  #16  
Old 09-15-2005, 12:17 PM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The ACP Part isn't a Problem, that can be done with Plugins easily.
But loading the specified language is ... at least I think so.
Gonna take a look at it now.
Reply With Quote
  #17  
Old 10-24-2005, 03:51 AM
Khashyar Khashyar is offline
 
Join Date: Jan 2003
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Andreas,

Thank you again for creating this hack.

At the moment, even with this hack, it seems that a person can only register in the default language (even if the forum that they click "register" on is in a non-default language.

Any idea as to how to allow guests in a foreign language forum section to register in the same language as that forum?

Thanks for your ideas,

Khashyar

I tried to install another hack which allows
Reply With Quote
  #18  
Old 10-24-2005, 03:55 AM
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Location: Germany
Posts: 6,863
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The registration page is not assigned to any forum - it covers the whole board, thererfore it will always use the default language.
Maybe it would be possible to add languageid=$foruminfo[languageid] to the registration link, but not sure.
Reply With Quote
  #19  
Old 10-24-2005, 04:33 AM
Khashyar Khashyar is offline
 
Join Date: Jan 2003
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for responding, Andreas...

Actually, yes, for each language or even style template, it's psosible to add a &styleid=xx, and that will take you to the first page of a foreign page registration. But then, when you clikc the next button, the register.php file takes you to the default language page for the next page.

I wonder if there is a way to add a "styleid" or "languageid" to registration links in the register.php file? When a person goes to the registration page, does VB retain the info for the styleid or languageid variables so they can be called up?

Khashyar
Reply With Quote
  #20  
Old 10-24-2005, 05:06 AM
Khashyar Khashyar is offline
 
Join Date: Jan 2003
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Andreas,

I actually tried to install a "Guest registration in detected language" hack by JoergZ, but it did not work because I believe that the changes to the global.php file from your hack is over-riding the guest language select option in the other hack, so that the guest registration language always will be the default language.

JoergZ's guest language registration hack modifies the sessions.php file.

Both of your hacks are great, and if you have any ideas as to how they can co-exist, then I would appreciate it very much.

Khashyar
Reply With Quote
  #21  
Old 10-24-2005, 08:06 PM
Khashyar Khashyar is offline
 
Join Date: Jan 2003
Posts: 81
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi Andreas,

I fugured out how to make JoergZ's "guest registration hack" work for my forum.

Now, I have included both of your hacks in my forum. Thank you for contributing your hack.

Khashyar
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:29 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.04469 seconds
  • Memory Usage 2,301KB
  • 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)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