WordPress.org

Plugin Directory

Changeset 395812


Ignore:
Timestamp:
06/11/11 02:10:28 (3 years ago)
Author:
sivel
Message:

Update and bump to 1.2

Location:
better-howdy
Files:
4 deleted
4 edited
1 copied

Legend:

Unmodified
Added
Removed
  • better-howdy/tags/1.2/better-howdy.php

    r114471 r395812  
    55Description: Remove 'Howdy' and restructure the 'Howdy' line.  Props to Ozh for <a href="http://planetozh.com/blog/my-projects/no-howdy-a-plugin-for-wordpress/">No Howdy</a>. 
    66Author: Matt Martz 
    7 Version: 1.1 
     7Version: 1.2 
    88Author URI: http://sivel.net/ 
    99 
    10         Copyright (c) 2008 Matt Martz (http://sivel.net) 
     10        Copyright (c) 2008-2011 Matt Martz (http://sivel.net) 
    1111        Better Howdy is released under the GNU General Public License (GPL) 
    1212        http://www.gnu.org/licenses/gpl-2.0.txt 
    13  
    1413*/ 
    1514 
    16 // Hook in 
    17 if (is_admin()) { 
    18     add_action('init', 'better_howdy_h'); 
    19     add_action('admin_footer', 'better_howdy_f'); 
     15if ( ! is_admin() ) 
     16    return; 
    2017 
    21     // Load jQuery 
    22     function better_howdy_h() { 
    23         wp_enqueue_script('jquery'); 
    24     } 
     18add_filter( 'admin_user_info_links', 'better_howdy' ); 
    2519 
    26     // Modify 
    27     function better_howdy_f() { 
    28 ?> 
    29 <!-- Begin Bettery Howdy --> 
    30 <script type="text/javascript"> 
    31 /* <![CDATA[ */ 
    32     var user = jQuery('#user_info p a:first').text(); 
    33     var howdy = jQuery('#user_info p') 
    34         .html() 
    35         .replace(/<.+>/ig,'') 
    36         .replace(/\ \|\n/ig,''); 
    37     jQuery('#user_info p') 
    38         .html( 
    39             jQuery('#user_info p') 
    40                 .html() 
    41                 .replace(user,'My Profile') 
    42                 .replace(howdy,'Logged in as ' + user + ' | ') 
    43                 .replace('!',' |') 
    44                 .replace('| |','|') 
    45         ); 
    46 /* ]]> */ 
    47 </script> 
    48 <!-- End Better Howdy --> 
    49 <?php  
    50     }  
     20function better_howdy( $links ) { 
     21    $links[5] = str_replace( 'Howdy,', 'Logged in as', $links[5] ); 
     22    return $links; 
    5123} 
    52 ?> 
  • better-howdy/tags/1.2/readme.txt

    r127766 r395812  
    11=== Better Howdy === 
    22Contributors: sivel 
    3 Donate Link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=C3UA7TDWM4NLQ&lc=US&item_name=Donations%20for%20Sivel%2enet%20WordPress%20Plugins&cn=Add%20special%20instructions%20to%20the%20seller&no_shipping=1&rm=1&return=http%3a%2f%2fsivel%2enet%2fthanks&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted 
    4 Tags: howdy, jquery, profile 
    5 Requires at least: 2.5 
    6 Tested up to: 2.9 
    7 Stable tag: 1.1 
     3Donate Link: http://sivel.net/donate 
     4Tags: howdy, profile 
     5Requires at least: 3.0 
     6Tested up to: 3.2 
     7Stable tag: 1.2 
    88 
    9 Remove 'Howdy' and restructure the 'Howdy' line. 
     9Remove and restructure the 'Howdy' line by changing 'Howdy' to 'Logged in as'. 
    1010 
    1111== Description == 
    1212 
    13 Remove 'Howdy' and restructure the 'Howdy' line.  Props to Ozh for [No Howdy](http://planetozh.com/blog/my-projects/no-howdy-a-plugin-for-wordpress/). 
     13Remove and restructure the 'Howdy' line.  Props to Ozh for [No Howdy](http://planetozh.com/blog/my-projects/no-howdy-a-plugin-for-wordpress/). 
    1414 
    15 People have always seemed to complain about the 'Howdy' on the admin pages.  I personally don't care about the use of the word but think that the 'Howdy area' could be more functional and user friendly.  See the 'Screenshots' page examples. 
     15People have always seemed to complain about the 'Howdy' on the admin pages.  I personally don't care about the use of the word but think that the 'Howdy area' could be more functional and user friendly. 
    1616 
    1717== Installation == 
     
    19191. Upload the `better-howdy` folder to the `/wp-content/plugins/` directory 
    20201. Activate the plugin through the 'Plugins' menu in WordPress 
    21  
    22 NOTE: See "Other Notes" for Upgrade and Usage Instructions as well as other pertinent topics. 
    23  
    24 == Frequently Asked Questions ==  
    25  
    26 = I have the plugin activated but I do not see anything different.  Whats wrong? = 
    27  
    28 This plugin utilizes Javascript/jQuery to make the modifications.  If you have Javascript disabled in your browser you will not see the change. 
    29  
    30 == Screenshots == 
    31  
    32 1. WordPress 2.6 
    33 2. WordPress 2.7 
    34  
    35 == Upgrade == 
    36  
    37 1. Delete the previous `better-howdy` folder from the `/wp-content/plugins/` directory 
    38 1. Upload the new `better-howdy` folder to the `/wp-content/plugins/` directory 
    3921 
    4022== Usage == 
     
    4426== Changelog == 
    4527 
     28= 1.2 (2011-06-11): = 
     29* Use a proper filter now that it exists 
     30 
    4631= 1.1 (2008-10-17): = 
    4732* Changes for the ever changing WordPress 2.7 
  • better-howdy/trunk/better-howdy.php

    r114471 r395812  
    55Description: Remove 'Howdy' and restructure the 'Howdy' line.  Props to Ozh for <a href="http://planetozh.com/blog/my-projects/no-howdy-a-plugin-for-wordpress/">No Howdy</a>. 
    66Author: Matt Martz 
    7 Version: 1.1 
     7Version: 1.2 
    88Author URI: http://sivel.net/ 
    99 
    10         Copyright (c) 2008 Matt Martz (http://sivel.net) 
     10        Copyright (c) 2008-2011 Matt Martz (http://sivel.net) 
    1111        Better Howdy is released under the GNU General Public License (GPL) 
    1212        http://www.gnu.org/licenses/gpl-2.0.txt 
    13  
    1413*/ 
    1514 
    16 // Hook in 
    17 if (is_admin()) { 
    18     add_action('init', 'better_howdy_h'); 
    19     add_action('admin_footer', 'better_howdy_f'); 
     15if ( ! is_admin() ) 
     16    return; 
    2017 
    21     // Load jQuery 
    22     function better_howdy_h() { 
    23         wp_enqueue_script('jquery'); 
    24     } 
     18add_filter( 'admin_user_info_links', 'better_howdy' ); 
    2519 
    26     // Modify 
    27     function better_howdy_f() { 
    28 ?> 
    29 <!-- Begin Bettery Howdy --> 
    30 <script type="text/javascript"> 
    31 /* <![CDATA[ */ 
    32     var user = jQuery('#user_info p a:first').text(); 
    33     var howdy = jQuery('#user_info p') 
    34         .html() 
    35         .replace(/<.+>/ig,'') 
    36         .replace(/\ \|\n/ig,''); 
    37     jQuery('#user_info p') 
    38         .html( 
    39             jQuery('#user_info p') 
    40                 .html() 
    41                 .replace(user,'My Profile') 
    42                 .replace(howdy,'Logged in as ' + user + ' | ') 
    43                 .replace('!',' |') 
    44                 .replace('| |','|') 
    45         ); 
    46 /* ]]> */ 
    47 </script> 
    48 <!-- End Better Howdy --> 
    49 <?php  
    50     }  
     20function better_howdy( $links ) { 
     21    $links[5] = str_replace( 'Howdy,', 'Logged in as', $links[5] ); 
     22    return $links; 
    5123} 
    52 ?> 
  • better-howdy/trunk/readme.txt

    r127766 r395812  
    11=== Better Howdy === 
    22Contributors: sivel 
    3 Donate Link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=C3UA7TDWM4NLQ&lc=US&item_name=Donations%20for%20Sivel%2enet%20WordPress%20Plugins&cn=Add%20special%20instructions%20to%20the%20seller&no_shipping=1&rm=1&return=http%3a%2f%2fsivel%2enet%2fthanks&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHosted 
    4 Tags: howdy, jquery, profile 
    5 Requires at least: 2.5 
    6 Tested up to: 2.9 
    7 Stable tag: 1.1 
     3Donate Link: http://sivel.net/donate 
     4Tags: howdy, profile 
     5Requires at least: 3.0 
     6Tested up to: 3.2 
     7Stable tag: 1.2 
    88 
    9 Remove 'Howdy' and restructure the 'Howdy' line. 
     9Remove and restructure the 'Howdy' line by changing 'Howdy' to 'Logged in as'. 
    1010 
    1111== Description == 
    1212 
    13 Remove 'Howdy' and restructure the 'Howdy' line.  Props to Ozh for [No Howdy](http://planetozh.com/blog/my-projects/no-howdy-a-plugin-for-wordpress/). 
     13Remove and restructure the 'Howdy' line.  Props to Ozh for [No Howdy](http://planetozh.com/blog/my-projects/no-howdy-a-plugin-for-wordpress/). 
    1414 
    15 People have always seemed to complain about the 'Howdy' on the admin pages.  I personally don't care about the use of the word but think that the 'Howdy area' could be more functional and user friendly.  See the 'Screenshots' page examples. 
     15People have always seemed to complain about the 'Howdy' on the admin pages.  I personally don't care about the use of the word but think that the 'Howdy area' could be more functional and user friendly. 
    1616 
    1717== Installation == 
     
    19191. Upload the `better-howdy` folder to the `/wp-content/plugins/` directory 
    20201. Activate the plugin through the 'Plugins' menu in WordPress 
    21  
    22 NOTE: See "Other Notes" for Upgrade and Usage Instructions as well as other pertinent topics. 
    23  
    24 == Frequently Asked Questions ==  
    25  
    26 = I have the plugin activated but I do not see anything different.  Whats wrong? = 
    27  
    28 This plugin utilizes Javascript/jQuery to make the modifications.  If you have Javascript disabled in your browser you will not see the change. 
    29  
    30 == Screenshots == 
    31  
    32 1. WordPress 2.6 
    33 2. WordPress 2.7 
    34  
    35 == Upgrade == 
    36  
    37 1. Delete the previous `better-howdy` folder from the `/wp-content/plugins/` directory 
    38 1. Upload the new `better-howdy` folder to the `/wp-content/plugins/` directory 
    3921 
    4022== Usage == 
     
    4426== Changelog == 
    4527 
     28= 1.2 (2011-06-11): = 
     29* Use a proper filter now that it exists 
     30 
    4631= 1.1 (2008-10-17): = 
    4732* Changes for the ever changing WordPress 2.7 
Note: See TracChangeset for help on using the changeset viewer.