Modifying ACP pages
#6
Have you tried hooking to admin_user_banning_begin? From here you can add a tab and then check "$mybb->input['action']" to show your page:
$plugins->add_hook('admin_user_banning_begin', 'myplugin_banning');
function myplugin_banning()
{
    global $sub_tabs, $mybb, $page, $lang;
    $sub_tabs['myban'] = [
        'title' => 'My Ban',
        'description' => ' My ban description',
        'link' => 'index.php?module=user-banning&action=myban'
    ];
    if ($mybb->input['action'] == 'myban') {
        // Your admin page code here
    }
}
My Projects - Support My Projects

Don't forget to rate posts!
Reply


Messages In This Thread
Modifying ACP pages - by Crazycat - 2018-12-05, 03:18 PM
RE: Modifying ACP pages - by Martinex - 2018-12-05, 04:49 PM
RE: Modifying ACP pages - by Omar G. - 2018-12-06, 06:16 AM
RE: Modifying ACP pages - by Crazycat - 2018-12-06, 07:12 AM
RE: Modifying ACP pages - by Omar G. - 2018-12-06, 10:20 PM
RE: Modifying ACP pages - by chack1172 - 2018-12-07, 11:11 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)