MyBB Community Forums

Full Version: Language variables don't work to custom templatelist
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey to all,

I created two new templatelist in Index Templates (Ex. index_blabla and index_blabla_bla). But I have a problem: don't work the language variables in the new templatelist, for example, this variables when I put it, don't show anything:

{$lang->forum_locked}

Instead, if I insert it in index template, show correctly: Forum is Locked

I used this language variables for making an example, but don't work all the language variables included in the file index.lang.php

Solutions?

Regards
If you're using language variables in PHP then make sure $lang is defined as global scope. Or if you are using them directly into those templates then those templates are not eval-ed in index.php file hence they wouldn't show in those templates.
I understand, thanks Yaldaram Smile