Disable Wordpress New User Email Notification

When a new user creates an account on a Wordpress.org blog, the administrator is sent a notification email. Websites that have a large number of signups each day can generate a lot of emails announcing each new user.

I wrote a simple Wordpress plugin to disable the new user notification email. Visit this plugin’s page in the official WP Plugins Directory.

Installation instructions

  1. Download disable-wp-new-user-notification.zip
  2. Decompress the file contents
  3. Upload the disable-wp-new-user-notification folder to a Wordpress plugins directory (/wp-content/plugins)
  4. Activate the plugin from the Administration Dashboard

Wordpress Sidebar Stats Widget

I wrote a Wordpress plugin tonight that displays a small collection of site stats in a sidebar widget. Here is a screen shot of sample output:

Site Stats

The widget includes a control panel to change the title and format the HTML that is inserted before and after each numerical stat and the output as a whole.

Installation Instructions

  1. Download sidebar-stats-widget.zip
  2. Decompress the file contents
  3. Upload the sidebar-stats-widget folder to a Wordpress plugins directory (/wp-content/plugins)
  4. Activate the plugin from the Administration Dashboard
  5. Open the Widgets page under the Appearance section
  6. Drag the Sidebar Stats Widget to the active sidebar
  7. Configure the widget options to suit your needs and click Save

This plugin is also available for download from the official Wordpress Plugin Directory here.

Clear default text from input boxes using Javascript

Providing labels is a great way to help users interact with your website properly. I like to put instructional text inside text boxes to save space. Users get annoyed when the text inside the box they click on does not disappear when they are ready to type. Users do not want to backspace default instructional text before typing in boxes, so some code is required to make this happen.

I would like to share two small Javascript functions. The first clears out default text box contents automatically when a user clicks on the box. The second restores the default instructional text if the user leaves the box empty.

Implement these functions using onfocus=”wash(this);” and onblur=”checkWash(this);” on your text input control. You may want to avoid the second function on text fields where input is optional, so the user can leave the text box blank.

function wash( anInput ){
if(anInput.value == anInput.defaultValue) anInput.value = '';
}

function checkWash( anInput ){
if(anInput.value == '') anInput.value = anInput.defaultValue;
}

Try it

Look, I made a demo!

Next Page »

 

Thanks for reading!

You like? Subscribe to my rss feed
or

Sign up for email updates:

Some Recent Updates