Free Premium WP ThemesOnline TipsSubmit Site FreeCheap JewelrySterling Silver Jewelry

Weblog Tools Collection: Notify Unconfirmed Subscribers Updated

For the past 8 months I have been receiving requests to update the Notify Unconfirmed Subscribers plugin, since it stopped working for users. Frankly, I never really found the time to do it, but as the requests piled up, I decided to set some time aside and update the plugin. So if you have been having problems with NUS, update to the latest version (1.3.0) and the issues should be solved. Do let me know if you have any problems with the latest update. A few notes:

  • Support for Old FeedBurner accounts has been dropped in v1.3.0, please upgrade your account to a Google account before using NUS.
  • NUS will only work on sites with cUrl support.
  • Support for additional languages coming in future versions.
Note: I have not used WP_Http as there are problems with fsock and other http methods, it only works for cUrl right now. However, the plugin does contain a file which uses WP_Http which will be used in future versions. You will get a dashboard notice to update the plugin, if you don’t you can download Notify Unconfirmed Subscribers v1.3.0 from here.

Continue Reading →

Weblog Tools Collection: Bookmarklet to Quickly Access WordPress Admin Menu

There are times when I have wanted to install a plugin on my blog. The usual process included loading the admin dashboard and going to the install plugin page, or bookmarking the install plugin page and then navigating to it using that. Now I also want to access another feature in the admin dashboard, so I go ahead and bookmark it. Bookmarking pages is definitely a good way to quickly jump to certain pages, however, it is not exactly productive. That was until I came across an excellent bookmarklet, which will allow users to quickly access the the WordPress sidebar menu items with a single click. Once you drag and drop the bookmarklet to your browser bookmark bar, you can click on it to access the admin menu for a particular site. Take a look at the screenshot below to see it in action. wordpress_admin_menu_bookmarklet Once you click on the bookmarklet, a WordPress like menu will be displayed to you, you can hover over the menu to see the sub-menus and options available under the menu. Clicking on the link will take you directly to the admin page of the current site you are browsing. I emphasized on the text above, as this is the only flaw I saw with the bookmarklet. It will only work for the site you are currently browsing and not a site you can choose it to work for. So technically you will have to browse to your own site before you can get this to work properly for you. That aside, this is a really useful bookmarklet and will definitely come in pretty handy. Visit the link below to add the bookmarklet to your browser’s bookmark bar. WordPress Admin Toolbar Bookmarklet [via @smashingmag]

Continue Reading →

Weblog Tools Collection: Passing Parameters as Variables vs Passing Parameters as An Array

Improvisation is the name of the game, and we tend to do a lot of it with plugins and themes. In that process we tend to modify functions by adding more variables to incorporate changes in them. However, unlike most of the other languages, PHP allows users to set default values for variables passed to a method too. As a developer when you start out coding, you have a certain number of things a function will require in order for it to work, some may be optional too, so you set out to create a method signature similar to the one below. function do_something($var1, $var2, $var3, $var4 = false, $var5 = '')  { //process business logic here } Now, say you release your plugin or theme and get more feedback on features and other improvements. If the features or improvements suggested require you to change the method signature to incorporate new variables and you use default values, you are in a bit of a spot. So what is the best way to avoid such situations? In my opinion, if you use a function which accepts variables, it could easily scale to accept more parameters without breaking anything by accepting an array as a single parameter. The array would have to be built up either internally in the code somewhere or externally through the user. So you could rewrite the above logic as below: function do_something($args = array()) { $myvar = (array_key_exists('mykey', $args)) ? $args['mykey'] : get_default_value('mykey'); //process business logic here } Now, you would not expect a user to pass an array while using your non-widget based plugin in their themes, so you would have to provide users with an options page which will allow them to set the values they want to be passed to the function, and then build a Facade function internally which will then read all the option values and pass it on to the main function to be processed. I hear people saying that they can fetch the options from WordPress inside the function itself and there is not need for this Facade, however, in my experience of over 11 years in the software industry, I have learnt one important thing, never mix anything with business logic. If a function is supposed to perform a task, let it perform only that and nothing else, that way you can reuse the function elsewhere without having to constantly rewrite it to adapt to different things. I have seen several plugins which make use of arrays and several which do not. I would definitely be interested to learn on how you approach this, the comments form is open. Update: From the comments below, many users mistook me. I never said that users cannot use wp_parse_args. However, being an OOPS developer, I stick with my above post and say that you should keep business logic separate from processing logic, no matter whether it is WordPress or any other platform, that is the basic fundamental I learnt in OOPS, and I do believe OOPS is the best fundamental and way to go forward. I expect arguments on that.

Continue Reading →

Motorola CLIQ To Get Firmware Update and Android 2.1 Update

Motorola CLIQ users will shortly get a Firmware update v1.3.18 for their devices. This update will bring in several improvements to CLIQ’s battery life, touch screen sensitivity, GPS performance, audio routing, caller notification and more. CLIQ will also get a Android 2.1 update in the next few days

Don’t miss these Related Posts:

Join Techie Buzz on Your Favorite Social Networking Sites

Continue Reading →

Switch to our mobile site