WordPress.org

Plugin Directory

Changeset 426898


Ignore:
Timestamp:
08/22/11 00:39:08 (3 years ago)
Author:
ryanimel
Message:

Tagging 0.2.4, props Gautam Gupta for the improvements

Location:
dashboard-forum-activity
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • dashboard-forum-activity/tags/0.2.4/dashboard-forum-activity.php

    r403514 r426898  
    33 * Plugin Name: Dashboard Forum Activity 
    44 * Description: Quickly review your bbPress forum activity using a widget on your WordPress Dashboard.  
    5  * Version: 0.2.3 
     5 * Version: 0.2.4 
    66 * Author: ryanimel 
    77 * Author URI: http://wpcandy.com/ 
     
    4242            } 
    4343             
    44             $item = " 
    45                 $avatar 
    46                  
     44            $item = "                
    4745                <div class='dashboard-comment-wrap'> 
    48                      
    49                     <h4>$identifier <a href='$url_edit' title='" . sprintf( __( 'Edit "%s"' ), attribute_escape( $title ) ) . "'>$title</a> by $author <a href='$url_public'>#</a></h4> 
     46                    <h4>$identifier <a href='$url_edit' title='" . sprintf( __( 'Edit "%s"' ), esc_attr( $title ) ) . "'>$title</a> by $author <a href='$url_public'>#</a></h4> 
    5047                     
    5148                "; 
     
    7370<?php 
    7471    } else { 
    75         _e( 'There are no forum topics or replies to be found.', 'dashboard-forum-activity' ); 
     72        _e( '<p>There are no forum topics or replies to be found.</p>', 'dashboard-forum-activity' ); 
    7673    } 
    7774 
     
    9996     
    10097    $defaults = array( 'posts_number' => 5 ); 
    101     if ( ( !$options = get_option( 'rwi_dashboard_forum_activity' ) ) || !is_array($options) ) 
     98    if ( ( !$options = get_option( 'rwi_dashboard_forum_activity' ) ) || !is_array( $options ) ) 
     99     
    102100        $options = array(); 
    103101    return array_merge( $defaults, $options ); 
     
    110108    $options = rwi_dashboard_forum_activity_options(); 
    111109  
    112     if ( 'post' == strtolower($_SERVER['REQUEST_METHOD']) && isset( $_POST['widget_id'] ) && 'rwi_dashboard_forum_activity' == $_POST['widget_id'] ) { 
    113         foreach ( array( 'posts_number' ) as $key ) 
    114                 $options[$key] = $_POST[$key]; 
     110    if ( 'post' == strtolower( $_SERVER['REQUEST_METHOD'] ) && isset( $_POST['widget_id'] ) && 'rwi_dashboard_forum_activity' == $_POST['widget_id'] ) { 
     111        $options['posts_number'] = intval( $_POST['posts_number'] ); 
     112        if ( $options['posts_number'] < 1 ) 
     113            $options['posts_number'] = 5; 
    115114        update_option( 'rwi_dashboard_forum_activity', $options ); 
    116115    } 
     
    120119        <p> 
    121120            <label for="posts_number"><?php _e('How many items should display?', 'rwi_dashboard_forum_activity' ); ?> 
    122                 <select id="posts_number" name="posts_number"> 
    123                     <?php for ( $i = 5; $i <= 20; $i = $i + 1 ) 
    124                         echo "<option value='$i'" . ( $options['posts_number'] == $i ? " selected='selected'" : '' ) . ">$i</option>"; 
    125                         ?> 
    126                     </select> 
    127                 </label> 
     121                <input type="text" id="posts_number" name="posts_number" value="<?php echo $options['posts_number']; ?>"> 
     122            </label> 
    128123        </p> 
    129124  
  • dashboard-forum-activity/tags/0.2.4/readme.txt

    r403514 r426898  
    44Tags: bbpress, forum, dashboard, activity 
    55Requires at least: 3.1 
    6 Tested up to: 3.2-beta2-18209 
    7 Stable tag: 0.2.3 
     6Tested up to: 3.3-aortic-dissection 
     7Stable tag: 0.2.4 
    88 
    99Quickly review your bbPress forum activity using a widget on your WordPress Dashboard.  
     
    1111== Description == 
    1212 
    13 I use the Recent Comments Dashboard widget every single day. It's the first way I check up on recent activity on my sites. Now that I've started using bbPress to power a forum on my site I would like the same birds eye view of it too. 
     13I use the Recent Comments Dashboard widget every single day. It's the first way I check up on recent activity on my sites. Now that I've started using bbPress to power a forum on my site I would like the same bird's eye view of it too. 
    1414 
    1515This plugin adds a widget to your WordPress Dashboard that pulls in recent activity from your bbPress-driven forum. It will pull in recent topics and replies. The bbPress plugin is required.  
     
    3636== Changelog == 
    3737 
     38= 0.2.4 (8.2011) = 
     39* Improved spacing when no forum topics or replies are found. 
     40* Thanks to Gautam Gupta for:  
     41  * Swapping the select to an input for a custom number of items, 
     42  * Updating a couple of deprecated calls, 
     43  * Pointing out an undefined variable. 
     44 
    3845= 0.2.3 (7.2011) = 
    3946* Improved the linking of replies. Previously it linked to the reply permalink page. Now it links to its place within the topic itself. 
  • dashboard-forum-activity/tags/0.2.4/style.css

    r403505 r426898  
     1/*------------------------------------------------------------------------------ 
     2    Dashboard Forum Activity widget styles 
     3    Author: Ryan Imel 
     4------------------------------------------------------------------------------*/ 
    15 
    2 /* Styles the Dashboard Forum Activity widget */ 
    36#rwi_dashboard_forum_activity .inside { 
    47    margin-top: 0; 
  • dashboard-forum-activity/trunk/dashboard-forum-activity.php

    r403514 r426898  
    33 * Plugin Name: Dashboard Forum Activity 
    44 * Description: Quickly review your bbPress forum activity using a widget on your WordPress Dashboard.  
    5  * Version: 0.2.3 
     5 * Version: 0.2.4 
    66 * Author: ryanimel 
    77 * Author URI: http://wpcandy.com/ 
     
    4242            } 
    4343             
    44             $item = " 
    45                 $avatar 
    46                  
     44            $item = "                
    4745                <div class='dashboard-comment-wrap'> 
    48                      
    49                     <h4>$identifier <a href='$url_edit' title='" . sprintf( __( 'Edit "%s"' ), attribute_escape( $title ) ) . "'>$title</a> by $author <a href='$url_public'>#</a></h4> 
     46                    <h4>$identifier <a href='$url_edit' title='" . sprintf( __( 'Edit "%s"' ), esc_attr( $title ) ) . "'>$title</a> by $author <a href='$url_public'>#</a></h4> 
    5047                     
    5148                "; 
     
    7370<?php 
    7471    } else { 
    75         _e( 'There are no forum topics or replies to be found.', 'dashboard-forum-activity' ); 
     72        _e( '<p>There are no forum topics or replies to be found.</p>', 'dashboard-forum-activity' ); 
    7673    } 
    7774 
     
    9996     
    10097    $defaults = array( 'posts_number' => 5 ); 
    101     if ( ( !$options = get_option( 'rwi_dashboard_forum_activity' ) ) || !is_array($options) ) 
     98    if ( ( !$options = get_option( 'rwi_dashboard_forum_activity' ) ) || !is_array( $options ) ) 
     99     
    102100        $options = array(); 
    103101    return array_merge( $defaults, $options ); 
     
    110108    $options = rwi_dashboard_forum_activity_options(); 
    111109  
    112     if ( 'post' == strtolower($_SERVER['REQUEST_METHOD']) && isset( $_POST['widget_id'] ) && 'rwi_dashboard_forum_activity' == $_POST['widget_id'] ) { 
    113         foreach ( array( 'posts_number' ) as $key ) 
    114                 $options[$key] = $_POST[$key]; 
     110    if ( 'post' == strtolower( $_SERVER['REQUEST_METHOD'] ) && isset( $_POST['widget_id'] ) && 'rwi_dashboard_forum_activity' == $_POST['widget_id'] ) { 
     111        $options['posts_number'] = intval( $_POST['posts_number'] ); 
     112        if ( $options['posts_number'] < 1 ) 
     113            $options['posts_number'] = 5; 
    115114        update_option( 'rwi_dashboard_forum_activity', $options ); 
    116115    } 
     
    120119        <p> 
    121120            <label for="posts_number"><?php _e('How many items should display?', 'rwi_dashboard_forum_activity' ); ?> 
    122                 <select id="posts_number" name="posts_number"> 
    123                     <?php for ( $i = 5; $i <= 20; $i = $i + 1 ) 
    124                         echo "<option value='$i'" . ( $options['posts_number'] == $i ? " selected='selected'" : '' ) . ">$i</option>"; 
    125                         ?> 
    126                     </select> 
    127                 </label> 
     121                <input type="text" id="posts_number" name="posts_number" value="<?php echo $options['posts_number']; ?>"> 
     122            </label> 
    128123        </p> 
    129124  
  • dashboard-forum-activity/trunk/readme.txt

    r403514 r426898  
    44Tags: bbpress, forum, dashboard, activity 
    55Requires at least: 3.1 
    6 Tested up to: 3.2-beta2-18209 
    7 Stable tag: 0.2.3 
     6Tested up to: 3.3-aortic-dissection 
     7Stable tag: 0.2.4 
    88 
    99Quickly review your bbPress forum activity using a widget on your WordPress Dashboard.  
     
    1111== Description == 
    1212 
    13 I use the Recent Comments Dashboard widget every single day. It's the first way I check up on recent activity on my sites. Now that I've started using bbPress to power a forum on my site I would like the same birds eye view of it too. 
     13I use the Recent Comments Dashboard widget every single day. It's the first way I check up on recent activity on my sites. Now that I've started using bbPress to power a forum on my site I would like the same bird's eye view of it too. 
    1414 
    1515This plugin adds a widget to your WordPress Dashboard that pulls in recent activity from your bbPress-driven forum. It will pull in recent topics and replies. The bbPress plugin is required.  
     
    3636== Changelog == 
    3737 
     38= 0.2.4 (8.2011) = 
     39* Improved spacing when no forum topics or replies are found. 
     40* Thanks to Gautam Gupta for:  
     41  * Swapping the select to an input for a custom number of items, 
     42  * Updating a couple of deprecated calls, 
     43  * Pointing out an undefined variable. 
     44 
    3845= 0.2.3 (7.2011) = 
    3946* Improved the linking of replies. Previously it linked to the reply permalink page. Now it links to its place within the topic itself. 
  • dashboard-forum-activity/trunk/style.css

    r403505 r426898  
     1/*------------------------------------------------------------------------------ 
     2    Dashboard Forum Activity widget styles 
     3    Author: Ryan Imel 
     4------------------------------------------------------------------------------*/ 
    15 
    2 /* Styles the Dashboard Forum Activity widget */ 
    36#rwi_dashboard_forum_activity .inside { 
    47    margin-top: 0; 
Note: See TracChangeset for help on using the changeset viewer.