WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Genesis Dashboard News

Adds a new dashboard widget to your WordPress Admin Dashboard that pulls in items of the News Planet for the Genesis Framework and its ecosystem.

How can I add another news or blog source to the Genesis News Planet?

Just drop me a note at my Twitter @deckerweb

Can I view this news planet source in a standalone modus?

Yes, you can! Just step up to Genesis News Planet @friendfeed -- or subscribe via RSS/ATM feed in your feed reader :)

How can I change the RSS cache lifetime in WordPress which also effects this plugin's dashboard widget?

Sure, you can change that. You need to add the following code to your child theme's functions.php file, the "Custom Code" section in Prose 1.5+ or to a functionality plugin. Please note: BACKUP the functions.php file before doing so! And please also note this: Changing that value will effect ALL other usages/appearances of RSS cache lifetime, so for example the built-in WordPress RSS widget and the other default dashboard widgets importing feed content. So use at your own risk! The number at the end is the time in seconds. So 300 means actually 5 minutes. - Got it? It's that simple, yes :)

/** RSS cache lifetime */
add_filter( 'wp_feed_cache_transient_lifetime', create_function( '$a', 'return 300;' ) );

Can I set which user role/ capability can see the dashboard widget?

Yes, this is possible since plugin version 1.6.0! The default capability is 'read' (= 'Subscriber' user role). You can change that via the follwing filter:

add_filter( 'gdbn_filter_capability_all', 'custom_gdbn_capability' );
/** Genesis Dashboard News: Custom Dashboard Widget Capability */
function custom_gdbn_capability() {
    return 'edit_posts';
}

--> The above example code will only display the dashboard widget & the plugin's Dashboard help tab to users which have the capability of edit_posts.

Can I customize the dashboard widget?

Sure thing. I've included some filters since plugin version 1.5 so you can customize/brand it to your liking! I list the filter names in bold and then add more details on each of them:

gdbn_filter_widget_title

  • Dashboard Widget/Meta Box title
  • Default value: "Genesis News Planet"
  • To add your own widget title here, use this code:
add_filter( 'gdbn_filter_widget_title', 'gdbn_custom_widget_title' );
/** Genesis Dashboard News: Custom Widget Title */
function gdbn_custom_widget_title() {
    return __( 'Custom Widget Title', 'your-textdomain' );
}

gdbn_filter_feed_source_url

  • The URL of the RSS/ATOM feed
  • Default value: "http://friendfeed.com/genesisnews?format=atom"
  • To use a custom URL use this code:
add_filter( 'gdbn_filter_feed_source_url', 'gdbn_custom_source_feed_url' );
/** Genesis Dashboard News: Custom Source Feed URL */
function gdbn_custom_source_feed_url() {
    return 'http://your-source-url.com/feed-whatever/';
}

gdbn_filter_widget_footer_info

  • The small info line
  • Default value: feed link, plus various resource links
  • To remove this line completely, add this code:
/** Genesis Dashboard News: Remove Widget Footer Info */
add_filter( 'gdbn_filter_widget_footer_info', '__return_null' );

To add your own content here, use this code:

add_filter( 'gdbn_filter_widget_footer_info', 'gdbn_custom_footer_widget_info' );
/** Genesis Dashboard News: Custom Widget Footer Info */
function gdbn_custom_footer_widget_info() {
    return __( 'Your custom widget footer info here...', 'your-textdomain' );
}

gdbn_filter_help_tab_title

  • The title of the left-hand help tab title
  • Default value: "Genesis Dashboard News"
  • To add your own help tab title here, use this code:
add_filter( 'gdbn_filter_help_tab_title', 'gdbn_custom_help_tab_title' );
/** Genesis Dashboard News: Custom Help Tab Title */
function gdbn_custom_help_tab_title() {
    return __( 'Custom Help Tab Title', 'your-textdomain' );
}

gdbn_filter_help_tab_content

  • The actual help tab content
  • Default value: the help content text...
  • Customize as with the same principles shown above...

All the custom, branding and developer stuff code above can also be found as a Gist on GitHub: https://gist.github.com/2597190 (you can also add your questions/ feedback there :)

Requires: 3.3 or higher
Compatible up to: 3.5.2
Last Updated: 2012-11-25
Downloads: 7,175

Ratings

4 stars
4.3 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1
100,1,1
100,1,1 100,1,1 100,2,2 100,3,3
100,5,5 100,5,5
100,6,6 100,5,5
100,2,2 100,5,5
100,5,5 100,4,4 100,6,6
100,5,5 100,4,4 100,6,6
100,1,1 100,4,4 100,6,6
100,7,7
100,5,5
100,4,4
100,1,1