Tag Archives: Plugin

jQuery.later – a setTimeout wrapper in jQuery

Recently I have been playing around with YUI 3 and found that it had a nice wrapper for setTimeout/setInterval which nicely encapsulated it.

I thought it would be nice to have a wrapper like that for jQuery, which led to this nice little Plugin for jQuery called jQuery Later

Download

You can download it from my github page. It also includes a html page which tells you how to use it.

Syntax

jQuery later function follows the same syntax as that of YUI.

jQuery.later ( when , o , fn , data , periodic )

Executes the supplied function in the context of the supplied object ‘when’ milliseconds later. Executes the function a single time unless periodic is set to true.

Parameters:
when <int> the number of milliseconds to wait until the fn is executed.
o <object> the context object.
fn <Function|String> the function to execute or the name of the method in the ‘o’ object to execute.
data <object> [Array] data that is provided to the function. This accepts either a single item or an array. If an array is provided, the function is executed with one parameter for each array item. If you need to pass a single array parameter, it needs to be wrapped in an array [myarray].
periodic <boolean> if true, executes continuously at supplied interval until canceled.
Returns: object
a timer object. Call the cancel() method on this object to stop the timer.

License

Released under MIT License

PS: BTW this is my first jQuery Plugin. 🙂

Posted in JavaScript/jQuery | Tagged , , | 6 Comments

Ability to hide author name in Posts By Tag Plugin

Another day another update to one of my WordPress Plugins. 🙂

This time it is Posts By Tag Plugin. I have updated it to v0.6 and have added the ability to prevent the author name from getting displayed in the widget. Normally in single user blogs it doesn’t make much sense to display the author name (since all are going to be the same user).

In the new version, you have to ability to choose whether you want the author name to be displayed or not.

Screenshot

The following is the screenshot of the new widget admin area.

post-by-tags-wordpress-plugin

Download

You can download the latest version of the Plugin from the Plugin’s homepage.

Feedback

Please keep the feedback coming and if you want me to add any new features or find a bug, please leave a comment.

Stay updated

I would be posting updates about this Plugin in my blog and in Twitter. If you want to be informed when new version of this Plugin is released, then you can either subscribe to this blog’s RSS feed or follow me in Twitter.

Posted in Plugin Releases | Tagged , , | 1 Comment

Bulk Delete now supports deleting private posts

Just now released an update to my Bulk Delete WordPress Plugin, which you can use to delete posts in bulk. This update adds support for deleting private posts.

All the private posts can be deleted in bulk in one go or they can be filtered based on categories or tags.

Like the previous updates, this feature was also requested by the users of the Plugin. So if you have any feedback or feature request, don’t hesitate to contact me, I will try to add them to the Plugin.

Screenshot

bulk-delete-wordpress-plugin

bulk-delete-wordpress-plugin-2

Download

You can download the latest version of the Plugin from the Plugin’s home page.

Feedback

If you have any comments or if you want to report any bugs, please leave a comment below or contact me.

Stay updated

I would be posting updates about this Plugin in my blog and in Twitter. If you want to be informed when new version of this Plugin is released, then you can either subscribe to this blog’s RSS feed or follow me in Twitter.

Posted in Plugin Releases | Tagged , , | 1 Comment

Display Twitter profile image instead of Gravatar in WordPress comments

In the recent release of RoloPress I implemented Twitter avatar, which allows you to show the user’s Twitter profile image instead of Gravatar. I adapted it into a separate Plugin called Twitter Avatar Reloaded so that it can be used in normal WordPress installations too.

Features

When the Plugin is installed it automatically adds a new field to the comment form to get the user’s Twitter username. You don’t need to edit the theme file at all. Isn’t that cool enough 😉

Screenshot

twitteravatarwordpressplugin[1]

Download

You can download the Plugin from the Plugin’s home page.

Feedback

As usual try out the Plugin and do let me know if you have any feedback, queries or comments.

PS: BTW RoloPress 1.2 has been released with lot of new features. Don’t forget to check it out. 🙂

Posted in Plugin Releases | Tagged , , , | 3 Comments

Bulk Delete can now move posts to trash instead of deleting

It’s been quite some time since I released updates to my WordPress Plugins since I was quite busy recently with lot of stuff (including the android course). Anyways I found some free time today and was able to push some updates to my Bulk Delete WordPress Plugin, which was overdue for quite some time. 🙂

Support for trash

WordPress 2.9 introduced the concept of trash, which allows you to move posts to trash (like Recycle bin in Windows or Trash in Mac) instead of deleting them directly.

I have added support for trash to my Bulk Delete WordPress Plugin. Now you can choose whether you want to delete the posts directly or just move them to trash. The credit for this feature goes to David Wren, you contributed code for this functionality.

Batch Deletes

I have also enabled another option which will be quite handy when you want to delete tons of posts. The most popular complain I hear from users of my Plugin is that, the PHP script times out if there were more than 1000 posts.

One possible solution is to increase the timeout period in php.ini file. But changing php.ini values is quite difficult especially if you were on a shared host.

I have now added support for batch deletes which allows you to delete the posts in batches. Say suppose you have to delete 5000 posts, you can now delete them in 5 batches with 1000 in each batch instead of trying to delete all the 5000 posts in a single go which usually results in script timeout. Hope this helps most of the users. 🙂

Screenshot

Below is the screenshot of the updated admin screen of the Plugin.

bulk-delete-wordpress-plugin

Support for translation

I have also generated the pot file for the Plugin and is available with the Plugin. If you are willing to do translation for the Plugin, use the pot file to create the .po files for your language and let me know. I will add it to the Plugin after giving credit to you.

Download

You can download the latest version of the Plugin from the Plugin’s home page.

Feedback

If you have any comments or if you want to report any bugs, please leave a comment below or contact me.

Stay updated

I would be posting updates about this Plugin in my blog and in Twitter. If you want to be informed when new version of this Plugin is released, then you can either subscribe to this blog’s RSS feed or follow me in Twitter.

Posted in Plugin Releases | Tagged , , | 9 Comments

Plugin to display WordCamp NYC Badge

I guess, I am getting addicted to writing WordPress Plugins. 🙂

I was looking at the WordCamp New York Badge page and thought it would be nice to have a Plugin to display the badge, so after 30 minutes or so, WordCamp NYC Badge WordPress Plugin was born.

You can see it in action in my sidebar. 🙂

PS: If you are wondering why I am interested in WordCamp NYC, then do wait for another 3 weeks 😉

Posted in Plugin Releases | Tagged , , , | 4 Comments

Log every email send through WordPress

As promised, I have created a new Plugin called Email Log which will log every email that is being sent through WordPress. This Plugin will be very useful, while debugging issues related to email and will also let you to find out whether any spammer is abusing your WordPress installation. This Plugin is also MU compatible and can be used in WordPress MU installations also.

Features

Viewing logged emails

The logged emails will be stored in a separate table and can be viewed from the admin interface. While viewing the logs, the emails can be filtered or sorted based on the date, to address, subject etc.

Deleting logged emails

In the admin interface, all the logged emails can be delete in bulk or can also be selectively deleted based on date, to address, subject.

Cleaning up db on uninstall

As recommended by Ozh, the Plugin has uninstall hook which will clean up the database when the Plugin is uninstalled.

Screenshots

The following screenshot shows how the logged emails will be displayed

view-wordpress-email-logs

This screenshot shows how the email logs could be filtered or sorted.

wordpress-email-log-filter-options

This one shows how the email logs could be deleted.

wordpress-email-log-delete-options

Download

You can download the Plugin from the Plugin’s home page.

Feedback

As usual try out the Plugin and do let me know if you have any feedback, queries or comments.

Posted in Plugin Releases | Tagged , , , | 1 Comment

Lessons from WordPress Plugin competition

As you may know already (and if you don’t, dude, follow me) I participated in the recent WordPress Plugin competition. The results are out and even though my Plugins were not selected, I received a much more valuable gift. Guess what, a detailed review of all my five Plugins by my favorite WordPress expert and a great inspiration Ozh.

The following are the lessons that I learned from the reviews

  • The details that you enter in the Plugin’s page like Plugin Description, screenshot, installation instructions, FAQ, example usage etc, but really help you to get more users for your Plugins
  • When you are using PHP 5+ only features, make sure that you have a fall back mechanism and correct warning to users.
  • When making calls to API’s it is better to use the built-in WP_Http class instead of CURL or sockets
  • Don’t hardcode the Plugin directory or file name, some users may change it, which might break your Plugin.
  • Similarly don’t hard code wp-content directory path. Some users might move their wp-content directory to a different path which might again break your Plugin.
  • If you need scripts or CSS, to be included, then include them only to the pages that need them and not to all pages.
  • If you are creating a table or storing too many options in db, then it is always better to provide an uninstall hook to clean this stuff when the Plugin is delete by the user.

I am guilty of most of them and I am in the process of modifying my Plugins to fix these issues and over a next couple of days you could see updates to most of my Plugins.

It’s always nice to get feedback for your work from someone whom you respect and in that way I am really very happy that I participated. Thanks Ozh for your time and feedback and WTC for sponsoring the competition and wishes for the winners.

Posted in WordPress | Tagged , , | 8 Comments

WordPress MU and BuddyPress Plugin competition – 2009

Similar to the WordPress Plugin competition conducted by Weblogs Tools Collection, WPMU is coding a WordPress Plugin competition for WordPress MU and BuddyPress.

All you need to do is to create a (awesome) WordPress MU or BuddyPress Plugin and then release it. 🙂

Dates

The competition is open till Friday October 16th.

Prizes

There are some cool prices and the first prize winner will be get a cash award of $1000.

Rules

The rules are similar the WordPress Plugin competition and the main thing to remember is that your Plugin should be in GPL or GPL-compatible licence.

So it’s time to start another WordPress project. 😉

BTW guys, I am looking for ideas. So if you wanted a Plugin for WordPress MU or BuddyPress, then let me know and I might be able to create it for you. 🙂

Posted in WordPress | Tagged , , , , | 3 Comments

Ability to sort posts, in Posts By Tag Plugin

I recently updated my Posts By Tag Plugin, to v 0.4

New Features

The main new feature of this update is that, now you have the option to choose the order in which the posts should be displayed in the widget. The credit for this feature goes entirely to Michael, because he is the one who code it. He sent me the modified file and I have just checked it into the Plugin’s SVN and modified the Readme file. (Can anyone expect more 😉 ) Thanks Michael.

Screenshot

The following is the screenshot of the widgets page where now you have to option to choose whether the posts should be displayed in ascending or descending order by date.

posts-by-tag-settings

Download

You can download the latest version of the Plugin from the Plugin’s homepage.

Feedback

Please keep the feedback coming and if you want me to add any new features or find a bug, please leave a comment.

Vote for the Plugin

If you have used this Plugin and like it, please vote it and help me win the WordPress Plugin competition.

Posted in Plugin Releases | Tagged , , | 2 Comments