MyBB Community Forums

Full Version: Change usertitle according to language
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

I'd change usertitle (ex: Newbie, Senior Member, etc..) with a proper translation that it'll be in title.lang.php tah I'll create...

I found this on row 240 of functions_post.php
 foreach($titlescache as $key => $titleinfo)
            {
                if($post['postnum'] >= $key)
                {
                    if(!$hascustomtitle)
                    {
                        $post['usertitle'] = $titleinfo['title'];
                    }
                    $post['stars'] = $titleinfo['stars'];
                    $post['starimage'] = $titleinfo['starimage'];
                    break;
                }
            }
I would modify with this
$lang->load("title");
$post['usertitile'] = $lang->$variabile_of_lang;
But if I do this the different usertitles based on number of post shouldn't update, remain the same for ever.

Thank you!
Up please