MyBB 1.8.x Mod  {$mybb->user['usertitle']} on Index Page
#1
Mod Page to test.


It would either need a plugin or a core file edit to do it. As a core edit:

In ./inc/class_session.php, line 317:

PHP Code:
if(!$mybb->user['usertitle'])
{
    
$mybb->user['usertitle'] = $mybb->usergroup['usertitle'];


After this, add:

PHP Code:
if(!$mybb->user['usertitle'])
{
    
$usertitles $cache->read('usertitles');

    if(
is_array($usertitles))
    {
        foreach(
$usertitles as $title)
        {
            if(
$mybb->user['postnum'] >= $title['posts'])
            {
                
$mybb->user['usertitle'] = $title['title'];

                break;
            }
        }
    }


Not tested but that should work. If you like, I can wrap that up in a small plugin for you.



Referencia:
https://community.mybb.com/thread-230506.html
[Image: 51.jpg]
We11World [ Winning Eleven ] , Blog , Winning Eleven Games
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Bug
Tutorial
 Header Toplinks MyBB 1.8.x
DiegoPino 0 2,650 07-22-2018, 02:54 AM
Last Post: DiegoPino
Bug MyBB 1.8.x Mod  MyBB PHP page without plugin DiegoPino 0 2,593 10-15-2017, 10:56 PM
Last Post: DiegoPino
Bug MyBB 1.8.x Mod  Thread Prefix on Forum Index [Edit Core File] DiegoPino 0 3,898 11-06-2016, 11:59 PM
Last Post: DiegoPino

Forum Jump:


Users browsing this thread: 1 Guest(s)