vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   End-User Options - Language Driven Forums (https://vborg.vbsupport.ru/showthread.php?t=230899)

vbenhancer 01-02-2010 12:43 PM

thanks for the report... query_read is making problem with mysqli when not used properly... i had a code error, thanks, it is now corrected, you simply have to re-import the product.

imedic 01-02-2010 04:37 PM

Nice mod. If you click new messages it will display only messages from forums in your language (if you select to see only them) ?
Interesting mod to cope with multilanguage.

Selection of language forums should be in a more prominent position (like on each page or at least forum home) given the fact that you install this only if you have multilanguage users.
Or the en* and en should be links to control panel where you can change settings.

I see very useful this mode if you can exclude from New Messages search the forums not in your language.

swsche 01-02-2010 05:56 PM

It's a very nice and usefull script. But i have a little problem.

When i switch the language in the usercp and i go to the forumhome, logged in as administrator, i can see all forums (english and german). Only the mods and the useres are able to see the forums fit to the choosen language.

vbenhancer 01-02-2010 07:14 PM

Quote:

Originally Posted by swsche (Post 1945164)
It's a very nice and usefull script. But i have a little problem.

When i switch the language in the usercp and i go to the forumhome, logged in as administrator, i can see all forums (english and german). Only the mods and the useres are able to see the forums fit to the choosen language.

This is not a problem, this is by purpose... as admin, you also have access to all passworded forums, all closed and locked forums... being an admin is to be in charge of everything... so things do not change...

My engine is not giving more filtering on usergroups, this is a per user setting. As admin, you see the " *en " indicator, to show if your forum is set properly...

vbenhancer 01-02-2010 07:15 PM

Quote:

Originally Posted by imedic (Post 1945105)
I see very useful this mode if you can exclude from New Messages search the forums not in your language.

I'm all with you on that, i need to refine the search engine filtering... i know where to add it, but did not look at this since i coded the engine first (4 years ago)... if i have time, i'll code this option.

Fraxter 01-23-2010 11:03 PM

For the future of this modification would be an update to vb4 the best. Thanks for this addon.

regards Pander23

Enlightning Man 04-13-2010 02:41 PM

Are there any news on vb 4 support for this?

We'd be very interested!

Regards,
Christopher

Enlightning Man 04-29-2010 03:45 PM

For everyone who's interested: I got this extension working on vb 4.0.3

The HowTo.txt file in the zip tells you to modify functions_forumlist.php with this code:

PHP Code:

//not working:
if($forum['languagecode'] AND !($vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel'])) 
{
    if(
$forum['languagecode_forced'] AND ($forum['languagecode'] != $vbulletin->userinfo['languagecode'])) continue;
    if(
$vbulletin->userinfo['languagecode_forced'] AND ($forum['languagecode'] != $vbulletin->userinfo['languagecode'])) continue;


instead of that code, simply use this snippet:
PHP Code:

//working solution:
if($forum['languagecode'] AND !($vbulletin->userinfo['permissions']['adminpermissions'] & $vbulletin->bf_ugp_adminpermissions['cancontrolpanel']))
{
    if(
$forum['languagecode_forced'] AND ($forum['languagecode'] != $vbulletin->userinfo['lang_code'])) continue;
    if(
$vbulletin->userinfo['languagecode_forced'] AND ($forum['languagecode'] != $vbulletin->userinfo['lang_code'])) continue;


So you simply have to exchange the userinfo['languagecode'] with userinfo['lang_code']...

A user who selects a different fourm interface language in the backend will afterwards see no forums which are forced to be displayed in a different language.

Up to now, this is the only problem that I have seen with this plugin.

Nephalim 04-29-2010 05:20 PM

where can you get spanish or german language?i see only french

thank you

Enlightning Man 04-29-2010 06:21 PM

Well I see only german and english.
I guess it depends on what you have installed as front end language packs in your system.


All times are GMT. The time now is 03:09 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.01023 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete