WordPress.org

Ready to get started?Download WordPress

Forums

Dashboard Notes
[resolved] Different use for this plugin. (2 posts)

  1. codecandid
    Member
    Posted 2 months ago #

    This plugin rocks. You inspired me to write my first plugin which works in a similar fashion buy letting you change the welcome panel using widgets/shortcodes/etc.

    As I noted here in the FAQ's section of my plugin there are a few plugins like this that really let you change the dashboard through widgets... The others being magic widgets and Dashboard Widget Sidebar.

    If you check out how dashboard widget sidebar works it lets you add widgets (metaboxes) to the dashboard

    Given the usual way to add metaboxes:

    <?php
       add_meta_box( $id, $title, $callback, $post_type, $context,
             $priority, $callback_args );
    ?>

    Dashboard widget sidebar lets you change the following $title, $callback, $context, $priority.

    Anyway, the way I've been using your plugin is similar to how CSS/JS Toolbox works. CSS/JS Toolbox is the only other plugin I've ever found that lets you target current screens through simple patterns as opposed to complicated screen hooks.

    I think this plugin has a lot more potential than that one seeing that it works through the widgets API. What I did was I took the first css class .mm-green and hid it using .mm-green {display: none !Important;} Then using the enhanced text widget, users are able to add widgets to any screen in the admin section and add javascript/css in a very easy way just like they would on the frontend.

    Doing this works great.

    NOW I want to take it a step further. I'd like the action in your plugin construct to work more like Dashboard Widget sidebar where it lets you choose the paramaters, but more specifically lets you choose from a simple dropdown the hook location. So instead, replace the following admin_notices with a variable that allows the user to select the $hook through a simple dropdown:

    ` // Display dashboard notes
    if ( is_admin() )
    add_action( 'admin_notices', array( $this, 'display_notices' ) );
    }`

    To start I'm thinking the dropdown should be admin_head, admin_notices, and in_admin_footer (and maybe admin_print_scripts)

    Anyway, I started working on this today, but if you have any ideas on how to get this to work or think you could get it working with your plugin please let me know! I really think it could change the way people look at backend development.

    (HOPE THIS ALL MADE SENSE!)

    https://wordpress.org/plugins/dashboard-notes/

  2. Mickey Kay
    Member
    Plugin Author

    Posted 2 months ago #

    Wow, thanks so much for the awesome feedback! Just checked out your plugin and it rocks as well :) Fun times!

    Your suggestion is a fantastic one, and I think I WILL definitely add this feature in our next release, in which we'll be adding a few fixes here and there.

    Thanks again, and keep your eyes peeled for an update - times are busy, but I'd love to get this going!

Reply

You must log in to post.

About this Plugin

About this Topic