MyBB Community Forums

Full Version: how to add header include in Admin / ACP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.


hi all


i want to add this section in acp but headerinclude is not working.

$admin_jq_ui_js_n_css = "
    <script type='text/javascript'>
    jQuery.noConflict();
    </script>
    <script src='$baseurl/admin/jquery-ui-1.8.18.custom/js/jquery-1.7.1.min.js?dateline=".TIME_NOW."' type='text/javascript'></script>        
    <script src='$baseurl/admin/jquery-ui-1.8.18.custom/js/jquery-ui-1.8.18.custom.min.js?dateline=".TIME_NOW."' type='text/javascript'></script>
    <link type='text/css' rel='stylesheet' href='{$baseurl}/admin/jquery-ui-1.8.18.custom/css/redmond/jquery-ui-1.8.18.custom.css?ver=".TIME_NOW."' />
";
    $headerinclude .= $admin_jq_ui_js_n_css;
    $GLOBALS['headerinclude'] .= $admin_jq_ui_js_n_css;

The Admin CP doesn't have templates, you can't do that very easily.
so how to do it, any clue??

how the admin modules/plugin will work if we can not make one for us or customize it...