• Resolved SooBahkDo

    (@soobahkdo)


    Hello,

    I hope you are doing well.

    This plugin looks very promising to accomplish what I would like to do. I am new to it so forgive my question if the answer is self evident. I am just trying to understand the best way to accomplish the goal below.

    QUESTION 1
    Should this plugin be network activated or individually activated site by site? (after moving the file to mu-plugins) Or does it matter?

    QUESTION 2
    I would appreciate any advice or best practice suggestions for how to accomplish the goal described below.

    We have a WP 3.9.1 Multisite network with 50+ sites on it and about 350 plugins with various groups of plugins active on different sites across the network.

    When working as the Network Super Admin (or an individual site admin) and switching among different site dashboards, etc. I use a large number of plugins that do not need to be active at all for normal site operation. I only need them to be active while administering the sites.

    For example, Switch User, Term Management, Bulk Move, Duplicate Menu, Duplicate Post, Image Optimizer,Expandable Menus and on and on.

    None of these plugins have an affect on the user facing side of the site, but are very important on the admin side of the site while an admin is working on one or more sites on the network.

    Ideally, I would like to organize these “admin use” plugins into a group so that I can easily turn them all ON when I log into the dashboard and then turn them all OFF when ready to log out of the dashboard.

    I envision a group of “Network Super Admin” plugins for use by the Network Super Admin and another group of “Site Admin” plugins for use by individual site admins. These groups of plugins need not remain active while the site is serving visitors.

    I did read many support threads and found this thread:
    http://www.jsterup.com/dev/wordpress/plugins/plugin-organizer/documentation/disable-plugins-on-wp-admin/

    QUESTION 3
    Is it possible to have plugins ACTIVATE on certain pages and posts rather than DEACTIVATE?

    If not, that would be a nice toggle feature to add to the plugin unless there are negative implications that I am not considering.

    I.E. default setting plugin DEACTIVATES plugins and ON setting the plugin ACTIVATES plugins in admin area or on selected pages and posts.

    Or perhaps add a toggle option on each page or post so the user can select if the plugin (or group) is supposed to ACTIVATE or DEACTIVATE on the page or post. (Or does it already have this option and I just haven’t found it?)

    It almost seems that for the application scenario I described, I am looking to configure a group of plugins to ACTIVATE when the admin area is accessed, rather than to deactivate.

    What is your suggestion for the most efficient way to accomplish this goal?

    Thank you in advance for considering this query.

    Phil D

    https://wordpress.org/plugins/plugin-organizer/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Jeff Sterup

    (@foomagoo)

    1. It can be network activated or activated for each site individually. It performs the same either way.

    2. You can disable the plugins for the admin only. You can’t disable different plugins based on the user.

    3. You can disable a plugin on the global plugins page and it will be disabled everywhere. Then you can enable it on posts/pages/custom post types.

    Thread Starter SooBahkDo

    (@soobahkdo)

    Thanks Jeff!

    Should I always see a meta box for activating a globally deativated plugin on the editor page for posts, etc? Or does the it only appear when one or more plugins are deactivated? I am having trouble locating the control to activate a globally deactivated plugin.

    Is there a code snippet that I can add to make the network activated plugin rows a different color from the other active plugins?

    I appreciate your assistance!

    Thread Starter SooBahkDo

    (@soobahkdo)

    I discovered how, where and when the global activation box appears.

    So my only remaining question is what code tweak can I implement to make the network plugin rows appear in a different color?

    Thanks for a great plugin!

    Thread Starter SooBahkDo

    (@soobahkdo)

    Plugin Author Jeff Sterup

    (@foomagoo)

    You can edit /plugin-organizer/tpl/plugin_page_js.php on lines 243 and 245. Change class=”active” to class=”active network-active”. Then add the class below to a css file that is loaded.

    .network-active th, .network-active td {
    	background-color: #333333 !important;
    }

    It looks like the admin css file for PO isn’t loaded for that page but it should be. To fix that you can add this code to line 353 of /plugin-organizer/lib/PluginOrganizer.class.php.

    add_action('admin_head-plugins.php', array($this, 'admin_css'));

    Then you can add the css class to /plugin-organizer/tpl/admin_css.php. I’ll fix it in my next release and make this class permanent.

    Plugin Author Jeff Sterup

    (@foomagoo)

    Version 5.3 adds the code I mentioned. You just need to edit /plugin-organizer/tpl/admin_css.php.

    Thread Starter SooBahkDo

    (@soobahkdo)

    Hi Jeff,

    Thanks for the tweak.

    I added this to the admin.css file

    .network-active th, .network-active td {
    background-color: #333333 !important;
    }
    And edited the #333333 to #99CCFF in the admin.css file and it works great!

    Now when you add a color picker on the plugin settings page and let users select the network activated plugin row color from there so they do not need to edit the css file and so their changes would not be lost on plugin updates, THAT WILL BE AWESOME!! 🙂

    Thanks again!

    Thread Starter SooBahkDo

    (@soobahkdo)

    Hello Jeff,

    Forgot about the CSS customization and lost in the update. 🙁
    Had to come here to recall what it was I needed to modify again.

    Would you consider adding an row color selector option for the admin area in a future release?

    Thanks for an indispensable plugin!

    Phil D

    Plugin Author Jeff Sterup

    (@foomagoo)

    I had forgotten about that too. I’ll look at putting that into the next release.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Advice Requested For Admin Use Case’ is closed to new replies.