Plugin Directory

Changeset 926306


Ignore:
Timestamp:
06/04/2014 09:36:10 AM (12 years ago)
Author:
codecandid
Message:

new version and features

Location:
custom-dashboard-welcome-panel-widget-sidebar/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • custom-dashboard-welcome-panel-widget-sidebar/trunk/README.txt

    r926187 r926306  
    55Requires at least: 3.0.1
    66Tested up to: 3.9.1
    7 Stable tag: 0.2
     7Stable tag: 0.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 This plugin registers a new sidebar widget to be used on the ADMIN SIDE ONLY. When active it replaces the WP Welcome Panel Dashboard Widget. Inspired by and good for use with Dashboard Widget Sidebar, Dashboard Notes, Magic Widgets, and Enhanced Text Widget For completly "widgetizing" the wordpress admin.
     11This plugin registers a new sidebar widget to be used on the ADMIN SIDE ONLY. When active it replaces the WP Welcome Panel Dashboard Widget. Inspired by Dashboard Widget Sidebar, Dashboard Notes, and Magic Widgets. Completly "widgetize" your wordpress admin.
    1212
    1313== Description ==
    1414
    15 This plugin aims to merge development of frontend/backend wordpress themes and further the goal of really making wordpress a CMS and not just a blogging tool. Coming from Drupal, Wordpress is extremly frustrating when trying to build a back end theme. The wordpress backend needs to become more user friendly for theme developers who aren't coding experts. This small plugins goal is to contribute to that. When used with such plugins like Dashboard Widget Sidebar, Dashboard Notes, Magic Widgets, and Enhanced Text Widget admins are given complete control to build there admin interface in a very similar way that front end themes are build (BY USING WIDGETS). While there's really not that much too this plugin (as I'm not an expert coder myself), my hopes are that it will inspire better developers to take a more widget friendly approach to building admin interfaces. Building admin widgets gives us the opportunity to let designers take a stab at changing the administratoin interface. With such a large community the admin changes could have a lot more potential if we give designers and average users the ability to truely customize their entire site.
     15This plugin aims to merge development of frontend/backend wordpress themes and further the goal of really making wordpress a CMS and not just a blogging tool. Coming from Drupal, Wordpress is extremly frustrating when trying to build a back end theme. The wordpress backend needs to become more user friendly for theme developers who aren't coding experts. This small plugins goal is to contribute to that. When used with such plugins like Dashboard Widget Sidebar, Dashboard Notes, Magic Widgets, admins are given complete control to build there admin interface in a very similar way that front end themes are build (BY USING WIDGETS).
     16
     17While there's really not that much too this plugin (as I'm not an expert coder myself), my hopes are that it will inspire better developers to take a more widget friendly approach to building admin interfaces. Building admin widgets gives us the opportunity to let designers take a stab at changing the administratoin interface. With such a large community the admin changes could have a lot more potential if we give designers and average users the ability to truely customize their entire site.
     18
     19This plugin also adds a shortcode 'user' which lets you show and hide text in the welcome panel and thoughout your installation to different roles and capabilities. For example, you can add a text widget to the dashboard welcome panel widget like this:
     20
     21[user capability="delete_posts"] This is only shown to users that have delete posts capability [/user]
     22[user capability="editor"] This is only shown to users that have editor capability [/user]
    1623
    1724== Installation ==
     
    1926This section describes how to install the plugin and get it working.
    2027
    21 1. Upload `plugin-name.php` to the `/wp-content/plugins/` directory
    22 2. Activate the plugin through the 'Plugins' menu in WordPress
     28 
     29   From your WordPress dashboard
     30
     31    1. Visit 'Plugins > Add New'
     32    2. Search for 'Custom Dashboard Welcome Panel Widget Sidebar'
     33    3. Install Custom Dashboard Welcome Panel Widget Sidebar
     34    4. Activate Custom Dashboard Welcome Panel Widget Sidebar from your Plugins page.
     35    5. Go to "Appearance --> Widgets" page @ 'http://www.example.com/wp-admin/widgets.php'
     36    6. Add text widget or other widgets to new the Admin Dashboard Sidebar
     37    7. All Done. Your New dashboard welcome panel will now show.
     38
    2339
    2440== Frequently Asked Questions ==
     41
     42= What widgets should I use in the new Admin Sidebar? =
     43
     44Any widgets "should" work. However, if the registers scripts or styles for the frontend only then those will not show up in the admin interface. I reccomend using the text widget or better yet, do yourself a favor and install one or all of the following text widgets:
     45
     46* https://wordpress.org/plugins/enhanced-text-widget (allows PHP, html, css, javascript, shortcodes, etc...)
     47* http://wordpress.org/plugins/wp-editor-widget/ (adds a rich text editor to the widgets)
     48* http://wordpress.org/plugins/spots/ (similar to wp-editor-widget excepts lets you manage from a custom post type which means it will import/export)
     49
     50= Any other plugins/widgets that would work good in the welcome panel sidebar? =
     51
     52* Shortcodes Ultimate -  lets you add things like tabs (which is the main screenshot).
     53* Jonradio Shortcodes Anywhere or Everywhere - lets you add shortcodes virtually anywhere, although you can already add to text widget shortcodes with this plugin.
     54
     55
     56= This plugin is cool, but I want more. Are there any similar plugins to this? =
     57
     58Yes!
     59
     60* [Dashboard Notes](http://wordpress.org/plugins/dashboard-notes/ "Dashboard Notes")
     61* [Magic Widgets](http://wordpress.org/plugins/magic-widgets/ "Magic Widgets")
     62* [Dashboard Widget Sidebar](http://wordpress.org/plugins/dashboard-widget-sidebar/ "Dashboard Widget Sidebar")
     63
     64= What's the point of this? =
     65
     66Simple. To make the wordpress backend work more like the frontend. While this plugin merely consists of a few simple functions, I'm hoping it helps people to see the potential of editing the backend using widgets. As I discovered from Tochos Magic Widgets, changing the wordpress admin is as simple as adding widgets to different hook locations within the backend.
     67
    2568
    2669
    2770== Screenshots ==
    2871
     721. "Appearance --> Widgets" page @ 'http://www.example.com/wp-admin/widgets.php'
     73
    2974
    3075== Changelog ==
  • custom-dashboard-welcome-panel-widget-sidebar/trunk/custom-dashboard-welcome-panel-widget-sidebar.php

    r926263 r926306  
    44Plugin URI: http://wordpress.org/plugins/custom-dashboard-welcome-panel-widget-sidebar
    55Description: This plugin registers a new sidebar widget to be used on the ADMIN SIDE ONLY. When active it replaces the WP Welcome Panel Dashboard Widget.
    6 Version: 0.5
     6Version: 0.6
    77Author: Bryan Willis
    88Author Email: businesscandid@gmail.com
     
    4141remove_action( 'welcome_panel', 'wp_welcome_panel' );
    4242};
     43
     44// Use shortcodes in text widgets.
     45add_filter('widget_text', 'do_shortcode');
     46
     47// User shortcodes in text widgets.
     48add_shortcode('user', 'brwacefghide');
     49function brwacefghide($atts, $content = null) {
     50    $defaults = array(
     51        'role' => '',
     52        'capability' => ''
     53    );
     54    extract(shortcode_atts($defaults, $atts));
     55    $roles = explode(',', $role);
     56    if (is_user_logged_in()) {
     57    if (!empty($roles)) {
     58    foreach($roles as $role) {
     59    if (current_user_can($role))
     60    return $content;
     61    }
     62    }elseif (!empty($capability)) {
     63    foreach($capability as $capability) {
     64    if (current_user_can($capability))
     65    return $content;
     66    }
     67    }
     68}
     69}
     70
Note: See TracChangeset for help on using the changeset viewer.