MyBB Community Forums

Full Version: Custom Language elp
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I installed the Custom language plugin and got (custom.lang.php) in plugins but how do i call it like i can call the username by saying: $mybb->user['username']

1 of my variables is code_shout so would it be like:

$mybb->custom['code_shout']

Thanks
You first have to load the language with following code:
$lang->load("custom");

After loading the language you can use the language variables it in this way:
$lang->code_shout;