Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Nexia's Language Driven Forum Details »
Nexia's Language Driven Forum
Mod Version: 1.0.0, by vbenhancer (Coder) vbenhancer is offline
Developer Last Online: Nov 2012 I like it Show Printable Version Email this Page

vB Version: 4.x.x Rating: (2 votes - 5.00 average) Installs: 8
Released: 05 Sep 2012 Last Update: 05 Sep 2012 Downloads: 21
Not Supported DB Changes Uses Plugins Template Edits Code Changes  

Nexia's Language Driven Forum:

some features:

detect browser language for new visitors *(not regulars, just for first visit)
apply browser language when possible
or default language - will not show other languages
need to choose a language in the language selector to change it!

language selection at registration.
default will be the board's default language.
if the guest have selected a language in the past, that language will be the default.

language forcing in usercp, below the language selection in options page.
will let the user select if he/she wants to see forums that are in other languages.

admincp to select what language a forum will be applyed on.
admincp to select if that language will be forced, so only the members with that language will see.
admincp is inheriting the setting of their parent forum by default.

forums with no language selected are considered displayed to all, overpassing the settings.

sub-forums of a forced language inherit the parent's status
if the parent is hidden because of choices, the subforums do not show - logic!


---- in the screenshots below, you see the forums with language indicators, the "fr", "en", etc... instead of them being hidden... that's the ADMIN side of things, where you, as an admin, see the forums, with the right indicators... it helps navigate thru the forum. as a user, you do not see the forums you're not supposed to see...

######################################################################### STEP 1
What To do to install:

1- UPLOAD via FTP to the root path of your vBulletin forum the files and folders in their originate structure from the folder "UPLOAD_THIS"

2- IMPORT the PRODUCT file included in the "IMPORT_PRODUCT" folder.
take the file with a _three extention for your vBulletin 3.x installation, the _four one for your vB 4.x...

You also need to edit one file at least, via ftp with your code editor - ask a pro if you have no idea what to do!

######################################################################### STEP 2
FILE EDIT:

in the file /includes/functions_forumlist.php

THREE TIME IN THAT FILE YOU WILL FIND:
in vB 3.x: line 53, 177, 481
in vB 4.x: line 67, 201, 544



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


EACH TIME, BELOW THAT LINE, ADD THIS BLOCK OF CODE:



Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


######################################################################### STEP 3
optionally, as an admin, if you want to see the different languageid for each forum in the Forum Aanager, do this:

in admincp/forum.php

around line (622 in vB 3.x), (679 in vB 4.x)

FiND (inside the line):


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

REPLACE WITH:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

############################################################################ END

Now you go edit your forums in the Forum Manager, in the bottom of the page of each forum, you can choose the language etc...

for other languages, you can import your translations in the Phrases Manager ... see the folder for additional languages when available!

>> by default, vBulletin store its languages by ID, which is based on database entry, and not any identification of language... so if you delete a language and reimport it, it will have a different ID even if it's language code is the same... how problematic if you code for specific languages...

so this script add the languagecode field in the database so we do not have to check every time to see if it is the right language.



vB 3.x version is still available here: http://www.vbulletin.org/forum/showthread.php?t=230899

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	nex_lang_driven_admin_view_admincp.jpg
Views:	68
Size:	7.1 KB
ID:	141033   Click image for larger version

Name:	nex_lang_driven_admincp.jpg
Views:	76
Size:	38.0 KB
ID:	141034   Click image for larger version

Name:	nex_lang_driven_reg_four.jpg
Views:	74
Size:	76.0 KB
ID:	141035   Click image for larger version

Name:	nex_lang_driven_reg_three.jpg
Views:	66
Size:	68.3 KB
ID:	141036  

Click image for larger version

Name:	nex_lang_driven_usercp_four.jpg
Views:	56
Size:	61.5 KB
ID:	141037   Click image for larger version

Name:	nex_lang_driven_usercp_three.jpg
Views:	59
Size:	49.7 KB
ID:	141038   Click image for larger version

Name:	nex_lang_driven_admin_view_forumlist.jpg
Views:	97
Size:	20.7 KB
ID:	141039  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Mini Mods Set forum-language automatic to browser-language for first-time-visitors JoergZ vBulletin 4.x Add-ons 18 26 Oct 2013 22:28
End-User Options Language Driven Forums vbenhancer vBulletin 3.8 Add-ons 24 14 May 2011 16:12
Extra page driven by forum templates c-pr0mpt vBulletin 2.x Full Releases 55 11 Apr 2004 20:26

Comments
  #2  
Old 05 Sep 2012, 17:42
vbenhancer's Avatar
vbenhancer vbenhancer is offline
 
Join Date: Dec 2009
Real name: nexia
The release indicate "not supported"...

for official support, follow the link in my signature!
__________________
... retired... stop bothering, GTFO!
Reply With Quote
  #3  
Old 05 Sep 2012, 19:07
Scanu's Avatar
Scanu Scanu is offline
 
Join Date: Nov 2010
Location: Italy
Real name: Andrea Scanu
Good work! Really a useful mod
Reply With Quote
  #4  
Old 06 Sep 2012, 15:13
sweetpotato sweetpotato is offline
 
Join Date: Oct 2010
Great Work! This is really useful for my site which has multi-language forums. Rated for 5 stars and nominated MOTM.
Thank you so much,
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

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


New To Site? Need Help?

All times are GMT. The time now is 19:43.

Layout Options | Width: Wide Color: