2012 in review

The WordPress.com stats helper monkeys prepared a 2012 annual report for this blog.

Here’s an excerpt:

4,329 films were submitted to the 2012 Cannes Film Festival. This blog had 22,000 views in 2012. If each view were a film, this blog would power 5 Film Festivals

Click here to see the complete report.

WordPress: Disable / Remove forgot password and password reset

One of my clients request me to remove the forgot password and password reset field from the user profile page except admin. I started editing the user-edit.php file to comment the those lines for normal users. But i feel this is not the best way to do it. so i start searching Google and found the below plugin to disable those two options for users.

https://gist.github.com/781573

Just copy the code from the below link and save the file in the plugin folder, don’t forget to close(?>) the php tag which is missing in the above link. Login as admin and activate the plugin, that’s it. After activating this plugin, normal user won’t get the option to update the password or request to change the password.  So in future if you want to enable this for user, just disable this plugin. If i go with my solution then i have to edit the page to enable it again.

Only problem with this code, when admin forget his password himself, he don’t have option to reset it. He have to do manually in phpmyadmin or some other way.

Hope this will be useful for someone who have similar requirement.

Thanks to Derek Herman who contribute this plugin.

404 pops after custom form submission by POST

I created a custom page template and added a form with few fields. When i submitted the form, i got the 404 error messages.  But when you submit the form without filling any fields it works charmly, and i found that its because of field name with “name” parameter .

For example,

<input type=’text’ name=’name’>

so i changed the ‘name’ to ‘username’ and its works perfectly.  Some of the keywords you should not use are “day,month, year”. If you use these keywords, you will get 404 error page.

I hope this will help others who have similar problem.

Author: Vinodkumar