Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Language Driven Forums Details »»
Language Driven Forums
Version: 1.5.1, by vbenhancer vbenhancer is offline
Developer Last Online: Nov 2012 Show Printable Version Email this Page

Category: End-User Options - Version: 3.8.x Rating:
Released: 12-22-2009 Last Update: 01-01-2010 Installs: 13
DB Changes Uses Plugins
Code Changes  
No support by the author.

With this engine, you have a full control over a Multi-Language forum. If you have a population of english, french, spanish and other languages, you may have a need for this if you have specific forums for each languages...

When you want to enforce the users to only see the forums they can post in, or the ones they can read in their own language, you can edit each of your forums to fit your needs

This is for the Admincp where you edit your forums.

Now you can give your users the ability to choose what kind of forum they can see. On registration or when they edit their Profile options, they have these choices:

Here is when the user is registering: (optional entry)

As an admin, you will continue to see all the forums, but you will see an indication of the language each forum is using, because the languageid for each modified forum will show in the forumlist...
A note coming from Jelsoft, regarding the possibility that a multiple licenses would be required if you use this addon...
Quote:
Originally Posted by Ashley Busby, Jun 12th '08 12:05pm
This is one forum and it can be navigated from any area to any area.

I concur, only one license is required and I am of the opinion that the license agreement is not contravened.
Source: https://www.vbulletin.com/issue.php?...hcode=b44157f3
note: on jan. 2nd, 2010, a query_read was replaced by a query_first... to avoid inconsistancy with mysqli... simply re-import the product...

Download Now

File Type: zip nex_lang_driven_forum.zip (5.6 KB, 100 views)

Screenshots

File Type: jpg nex_lang_driven_admin_view_admincp.jpg (7.1 KB, 0 views)
File Type: jpg nex_lang_driven_admin_view.jpg (20.7 KB, 0 views)
File Type: jpg nex_lang_driven_admincp.jpg (38.0 KB, 0 views)
File Type: jpg nex_lang_driven_reg.jpg (68.3 KB, 0 views)
File Type: jpg nex_lang_driven_usercp.jpg (49.7 KB, 0 views)

Show Your Support

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

Comments
  #22  
Old 04-30-2010, 05:40 PM
Enlightning Man Enlightning Man is offline
 
Join Date: Apr 2010
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I just noticed, that there is a little more to adjust to make it fully working in vB4...

The use of the vB template system of this plugin is deprecated. This results in PHP warnings which are thrown on the profile page under general settings (where you are supposed to be able to select if the forum should only show forums configured for your own language or all forums that are available).

The warning came from a deprecated use of vBulletin's template system in the language plugin hook: profile_complete.

In the plugin manager select 'Lang Driven Forum - Show Form in Edit Options' and replace the deprecated code:

PHP Code:
//not working
if($show['languageoption'])
{
    
$langforced = ($vbulletin->userinfo['languagecode_forced']) ? 'selected="selected"':'';
    eval(
'$nex_lang_driven_forced = "' fetch_template('nex_lang_driven_forced') . '";');
    
$template_hook['usercp_options_other'] = $nex_lang_driven_forced $template_hook['usercp_options_other'];

with this code:

PHP Code:
//working
if($show['languageoption'])
{
    
$vbphrase['nexia_forum_languageforce_selected'] = ($vbulletin->userinfo['languagecode_forced']) ? 'selected="selected"':'';
    
$nex_lang_driven_template vB_Template::create('nex_lang_driven_forced');    
    
$page_templater->register('nex_lang_driven_forced'$nex_lang_driven_template->render());

This code uses the new vB_Template class used for rendering templates in vB4. The template hook usercp_options_other is not available in vB4 anymore, but we can register ourselves for inclusion in the profile page template by accessing the $page_templater object directly which takes care of the template rendering process in profile.php.
Since local variables are not visible in the context of that new vB_Template class we also have to apply the little hack of registering the option select boxes value as a $vbphrase to make it accessible in the template. This is what this code change performs. (So for you it should only be copy & paste).

The last step for making the select box (which can be found on "Settings" -> "General Settings") visible and properly working is to adjust the templates a bit:
  1. search for the template nex_lang_driven_forced and replace it with this content
    HTML Code:
    <label for="sel_languagecode_forced">$vbphrase[nexia_forum_languagecode_title]</label>
    <select class="primary" name="languagecode_forced" id="sel_languagecode_forced" tabindex="1">
    	<option value="0">$vbphrase[nexia_forum_languagecode_seeall]</option>
    	<option value="1" $vbphrase[nexia_forum_languageforce_selected]>$vbphrase[nexia_forum_languagecode_mylang]</option>
    </select>
    <p class="description">$vbphrase[nexia_forum_languagecode_text]</p>
    This will use our $vbphrase hack to select the proper option and furthermore adjust the design of the select option to the current default template.

  2. We have to include this template which we registered as 'nex_lang_driven_forced' on the profile page in the profile page's template.
    So search for the template named 'modifyoptions' and alter the section for 'languageoption' at the very end:

    HTML Code:
    <vb:if condition="$show['languageoption']">
    	<div class="blockrow">
    		<label for="sel_languageid">{vb:rawphrase board_language}</label>
    		<select class="primary" name="languageid" id="sel_languageid" tabindex="1">
    			<option value="0">{vb:rawphrase use_forum_default}</option>
    			{vb:raw languagelist}
    		</select>
    		<p class="description">{vb:rawphrase board_can_be_shown_any_language}</p>
    	</div>
    </vb:if>
    Add an additional 'div' element which will contain the language display option:

    HTML Code:
    <vb:if condition="$show['languageoption']">
    	<div class="blockrow">
    		<label for="sel_languageid">{vb:rawphrase board_language}</label>
    		<select class="primary" name="languageid" id="sel_languageid" tabindex="1">
    			<option value="0">{vb:rawphrase use_forum_default}</option>
    			{vb:raw languagelist}
    		</select>
    		<p class="description">{vb:rawphrase board_can_be_shown_any_language}</p>
    	</div>
    	<div class="blockrow">
    		{vb:raw nex_lang_driven_forced}
    	</div>
    </vb:if>

Save and now it should work. Well it did for me anyway
Reply With Quote
  #23  
Old 04-30-2010, 06:32 PM
Nephalim Nephalim is offline
 
Join Date: Apr 2005
Posts: 104
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Enlightning Man View Post
Well I see only german and english.
I guess it depends on what you have installed as front end language packs in your system.
Wow, well if you have the German language pack,can you send it to me? I have the French.
Reply With Quote
  #24  
Old 04-30-2010, 07:18 PM
Enlightning Man Enlightning Man is offline
 
Join Date: Apr 2010
Posts: 5
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry Nephalim but I think you're totally in the wrong thread. This is a plugin which will allow you to have forums in your board were people post in different languages. So you can show all your german boards to your german users and all your french boards to your french users while hiding those of the other language.

It has nothing to do with the language of the vBulletin interface.

If you are looking for language packs, just google them or search on the forum at vbulletin.com. They are really easy to find.
Reply With Quote
  #25  
Old 06-08-2010, 05:52 PM
LloydApter's Avatar
LloydApter LloydApter is offline
 
Join Date: Mar 2009
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just what I was looking for also - many thanks!

Two important questions for me please:

1. Can this feature work on articles, blogs, projects as well as forums?
2. Is there a language select feature for the VB header

Thanks again
Reply With Quote
  #26  
Old 05-14-2011, 02:12 PM
mostafa10601's Avatar
mostafa10601 mostafa10601 is offline
 
Join Date: Sep 2008
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

dont work correctly ...
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 11:41 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.04052 seconds
  • Memory Usage 2,312KB
  • Queries Executed 23 (?)
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
  • (3)bbcode_html
  • (2)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_attachment
  • (6)postbit_onlinestatus
  • (6)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_postinfo_query
  • fetch_postinfo
  • 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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete