Modify the dashboard

alt=
DannyA
@dannya
10 years ago
584 posts
How do I add additional options to the ACP dashboard. I understand how to add things that are already in the edit drop down. I want to be able to display other data I want to track. e.g. # of songs added, total sales, etc...

Additionally, is it possible to make the box linkable to a report or tool in the acp?


updated by @dannya: 01/10/15 03:46:01AM
michael
@michael
10 years ago
7,717 posts
The dashboard is found at:
/modules/jrCore/templates/dashboard.tpl

So its over-rideable at skin level by copying it to:
/skins/(YOUR SKIN)/jrCore_dashboard.tpl

and changing it.

The process is documented here:

"Altering a Modules Template"
https://www.jamroom.net/the-jamroom-network/documentation/development/1051/altering-a-modules-template

If you want to add to it in the same way that the stuff there is put there, take a look at:
/modules/jrCore/include.php around line 449

    // We provide some dashboard panels
    jrCore_register_module_feature('jrCore', 'dashboard_panel', 'jrCore', 'queue depth', 'jrCore_dashboard_panels');
    jrCore_register_module_feature('jrCore', 'dashboard_panel', 'jrCore', 'memory used', 'jrCore_dashboard_panels');
    jrCore_register_module_feature('jrCore', 'dashboard_panel', 'jrCore', 'disk usage', 'jrCore_dashboard_panels');
    jrCore_register_module_feature('jrCore', 'dashboard_panel', 'jrCore', 'CPU count', 'jrCore_dashboard_panels');
    jrCore_register_module_feature('jrCore', 'dashboard_panel', 'jrCore', 'installed modules', 'jrCore_dashboard_panels');
    jrCore_register_module_feature('jrCore', 'dashboard_panel', 'jrCore', 'installed skins', 'jrCore_dashboard_panels');
    jrCore_register_module_feature('jrCore', 'dashboard_panel', 'jrCore', '1 minute load', 'jrCore_dashboard_panels');
    jrCore_register_module_feature('jrCore', 'dashboard_panel', 'jrCore', '5 minute load', 'jrCore_dashboard_panels');
    jrCore_register_module_feature('jrCore', 'dashboard_panel', 'jrCore', '15 minute load', 'jrCore_dashboard_panels');
    jrCore_register_module_feature('jrCore', 'dashboard_panel', 'jrCore', 'pending items', 'jrCore_dashboard_panels');
alt=
DannyA
@dannya
10 years ago
584 posts
Thanks,

The other part of the question is if its possible to make the panels link to a report in the acp?
michael
@michael
10 years ago
7,717 posts
Take a look at how the jrFoxyCart_dashboard_panels() function works, I'm sure you could put a link in there to wherever you wanted from whatever it is that your displaying.

Tags