vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=326104

Multilingual content
by delicjous
13 Feb 2018 10:48

I searched for a possibility to make content multilingual. So I try to use a bb-code to do it and it worked. So I will share to have more testing users and feedback.

If you want to have multilingual content you could create a new bbcode:

-BB Code Tag Name: translate (you should use something that others could not imagine to avoid other users to use it - if necessary)

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

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

-Use {option}: Yes
-Remove Tag If Empty: Yes
-Disable BB Code Within This BB Code:No
-Disable Smilies Within This BB Code:No
-Disable Word Wrapping Within This BB Code:No
-Disable Automatic Link Parsing Within This BB Code:No

Now you have to create a new template and put in the following:
Templatename: YourTitle

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

Save!

We will use a hook to get the css working:

Hook Location: footer_before_body_end
Title: Your title
Template Name: YourTitle

Save!

Thats it! If you change your language the text of language 1 one is not displayed anymore. Instead you will see the text in any other language.

You could use the bbcode in forum, article and every content like this:
[translate=1]This is a english text[/translate]
[translate=2]Das ist ein deutscher Text[/translate]

Pros:
- have more than one language in one post.
- google will crawl both (or more) languages. (not the best way for seo!)

Cons:
- Perhaps you have to increase postmaxchars to post in more than one language.
- You have to define a text for all languages or the post is empty!
- Didn't found any others yet!


Get more useful information, add-ons and widgets at vbulletin-forum.de!

saifo 30 Apr 2018 07:29

nice idea
can I see an example?
is there also a pro version?

delicjous 02 May 2018 06:08

I don't use it right now so I have no example. Iam searching for way to make a pro version but it will take time.

saifo 27 May 2018 17:59

see the private message


All times are GMT. The time now is 12:58.

Powered by vBulletin® Version 3.8.12
Copyright © 2019, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.