Archive for the ‘Plugins’ category

Welcome email editor temporarily unavailable (Update: Back in business!)

May 8th, 2013

Just a quick note to say that my Welcome Email Editor plugin for WordPress has been temporarily withdrawn from the WordPress plugin directory. I need to remove the password reminder feature but otherwise it’s working fine.

I am actually on holiday in France until the 14th but when I get home I will make the small functionality change and resubmit it to the directory. I will also find some time in the near future to improve the interface and add to the functionality.

Watch this space!

UPDATE: We’re back in business…!!

SB Content Widget – WordPress plugin

April 29th, 2013

Another quick one from me today. I have written a widget for WordPress that simply allows you to output the content of a specific page (or the current one). Sometimes your design needs you to show page content in an area otherwise designed for different things, this allows you to do that. The widget has optional title with [post_title] shortcode hook and a Page ID option which, when left blank, will use the current page. I refer to Pages but this can be used for posts or custom post type items too.

Grab it here

SB Content Widget (923 bytes)

SB Add WooCommerce Tabs – WordPress Plugin

March 30th, 2013

You have been asking for this so I wrote it for you. This plugin is a very simply way of adding a WYSIWYG controlled tab to your WooCommerce products. It does the legwork for you and all you need to do it edit 1 line in the plugin file to set the tab name and to determine how many tabs you want. I have even provided examples for you in the code.

I might eventually add a little admin system to this but for now you get the following:

$sb_awt_tabs = array(
    'New Tab 1'=>50
    , 'New Tab 2'=>60
    // , 'New Tab 3'=>50
    // , 'New Tab 4'=>50
);

You wil note two tabs are uncommented and two are commented. Simply change the part at the start for the name and the second part is the priority. Very simply put the higher the number the further right in your tab list it will be. If you need more than 4 tabs then simply duplicate a line as normal.

Once you activate the plugin you will notice a new Tiny MCE editor at the bottom of each edit products page. Simply fill it in if you want the tab to show or leave it blank to hide the tab. Nice and easy!

I should add that if you include any shortcodes in the tab editor then they will be read also.. ie a YouTube video or something.

Download

SB Add WooCommerce Tabs (1.26 kB)

Note

This plugin only works with WooCommerce Version 2 or newer. I have already written another post last year to show you how to add new tabs to older versions.

SB Mini Features WordPress plugin

March 26th, 2013

I was inspired by the wonderful work of the WooThemes team when I saw and subsequently used the various features on the custom home pages that come with their theme work. I noticed that often a theme will create a number of custom post types in order to allow the admin to create a number of objects to be used in a specific point within a theme.

There is a common system called the Mini Feature. This is really a generic name for a small item with thumbnail and intro text to promote a feature or service of the site. We all know that home pages look boring if they match the rest of the site but often if you are trying to dream up a theme or make something yourself inspiration might be hard to come by. These little features break up a page using a shortcode to generate the output for a pre styled grid type view of the items in the post type.

Adding the plugin and activating it will add a new post type and taxonomy for you. When you use the shortcode ‘[sb_mini_feature]‘ it will show the last 6 in 3 column view from all features. I have, however, added support for a number of different argument to the shortcode as follows:

  • limit (default 6)
  • cols (default 3)
  • heading_type (default h2)
  • orderby (default menu_order)
  • cat (default none)

The last is worth talking about. It accepts the slug of an item of the new taxonomy that the plugin creates so you can create a mini feature list for different areas of your site if you wish.

The mini features are, by default, linked to their own item pages which will show the content you enter into the editor part of the feature. However, you might not want this and so I have allowed for a custom link to be used and also for the link to be disabled entirely. It should give enough flexibility for most situations.

The excerpt of the mini feature is shown verbatim if it exists. I have intentionally pulled this directly from the post object so that the excerpt_more filter is not used. This means no read more tag. I can make this optional if anyone feels they want a continue reading link.

Download

SB Mini Features (599.77 kB)

Screenshots

The plugin comes complete with a pre-styled 24 column responsive grid (in my experience 12 is never enough for complex layouts) with unique classnames to avoid conflict but you should be able to override these styles using your theme CSS. Examples of the output of the plugin in various forms are as follows:

 

SB Custom Page Override Menus WordPress Plugin

March 24th, 2013

Ok so a client of mine wanted to be able to override the header menu on certain pages on their site. I created a plugin which did just that.. and more! WordPress uses Theme Locations to define areas in which a menu can be placed. For instance you might define a location called ‘header’ which is placed into the code at the top of the site. This might form the main nav. It’s also common to have a ‘footer’ menu.

My plugin allows you to select from a drop down list which menu should go into those theme locations on a per page basis. So if you wanted to include a different header, footer or wherever it will allow the override.

If you want to include a blank menu where there is normally a menu then simply create an empty Nav Menu in the Appearance->Menus page and use that.

I also have created a couple of Theme Locations as part of the plugin which you can use as either the ‘blank’ menu or as a new custom area for use in the widget for example. You might want to have various pages with menus in a widget in a sidebar. You could simply set the widget to show in a sidebar, set the default menu items (or leave the menu items empty) and thne override on a per page basis oer the rest of the plugin functionality.

Thoughts and comments on this plugin welcome. I shall be using it to facilitate sub-navigation in my themes from now on I think.

Download

SB Custom Page Override Menus (2 kB)

WordPress page header images made easy with SB Uploader

March 22nd, 2013

Screen Shot 2013-03-22 at 11.55.13A couple of years ago I wrote a plugin called SB Uploader. I did this because I didn’t like the media library that WordPress used and wanted to setting the featured image within any WordPress post or page simple. Well after a couple of years of development it is now in use by potentially thousands of people (perhaps a tad self indulgent but it has been downloaded a lot and is bundled with a fair few stock and premium themes) and supports custom post types and taxonomies as well as being able to be added in multiples (several configurable upload boxes per post type).

I use it with practically every theme I write for people and it is by far my most popular plugin yet (alongside SB Welcome Email Editor). I wanted to show people how you would set up configurable header images for pages and maybe posts using the script.

There is a function called sbu_the_wp_image which will return the featured image for the current post item (page or custom post type too). You pass it the size you want it to return (thumb, full or a custom image size) and there you have it. Job done. Just add the code to your page.php file above the call to the_content() (or wherever makes sense in the markup) and it will work.

<?php if (function_exists('sbu_the_wp_image')) { echo sbu_the_wp_image('feature_header'); } ?>

The above code is all you need to call the featured image for the page and the following code should sit in your functions.php file or be configured via a plugin in order to tell WordPress what feature_header actually relates to in terms of image size.

<?php add_image_size('feature_header', 960, 200, true); ?>

It defines the image size, sets the dimension to 960×200 and the ‘true’ portion tells it to hard crop which will guarantee that it is always that dimension by cropping after the initial resize rather than using a proportionate resize and providing an image within those limits.

You can get SB Uploader from the WordPress repository. Any ratings or feedback is welcome as are any feature requests. I hope to be able to write something to better deal with WordPress galleries before long as I am not satisfied with the way they work at the moment. Watch this space!

WooCommerce VoguePay, CashEnvoy and Eyowo plugins now written

February 10th, 2013

gatewaysSome background perhaps.. Nigeria, as a nation, has a huge amount of stigma around it after various different online scams and a general feel of corruption about it. In fact I am sorry to say that the people of Nigeria have it incredibly hard on the internet and to make money is especially difficult because the big reputable payment processors like PayPal are not available to them. This is rather frustrating because over the last few weeks I have met and worked with (even outsourced work to) various Nigerian people and I have not got a bad thing to say about any of them. It’s sad, in my opinion, that the lack of PayPal hinders international business the way it does.

Anyway, soap box aside, I have to say that, despite this hinderance, I have taken on and completed 5 or 6 different projects and am happy to tell you about three of them right now.

Ever since I wrote the WooCommerce Interswitch WebPay plugin a couple of months ago I have had a stream of communications with various Nigerian business people who are interested in having a variety of different gateways integrated for them. I am pleased to announce that I have now completed work on the following three plugins

  • WooCommerce VoguePay plugin
  • WooCommerce CashEnvoy plugin
  • WooCommerce Eyowo plugin

That’s the good news. The bad news is that they were written on commission and the source is not mine to distribute unlike with the Interswitch WebPay module. However, in the name of vanity, I am very pleased with my work on all of these plugins and am hoping that my name being attached to them will give the work a certain level of credibility. I will release the URLs where more information can be gathered about these modules when I receive work back from my clients.

If anyone has an interest in these or any other payment gateway integrations for WordPress or any platform then please do get in touch with me and I will gladly work with/for you to find the integration that is right for you.

SB WooCommerce Facebook Comments Plugin

February 5th, 2013

woocommerce_logoThis was requested by a commenter on a previous post on a similar subject. I have written in the past extensively about removing the WooCommerce reviews tab. It was suggested that Facebook comments might be an interesting addition and so I have written a very small plugin to add one.

The plugin simply removes the existing WooCommerce Reviews Tab and creates a new one called Reviews showing the Facebook comments system instead. Because the plugin is basic I have provided a few simple options in the code itself. You can configure the title of the tab, the width of the comment area and the number of comments to show.

Simply edit the PHP variables as follows:

$sb_fc_tab_title = 'Reviews';
$sb_fc_width = '600'; 
$sb_fc_comments = '50';

This is a tab called ‘Reviews’,  a width of 600 pixels and to show 50 comments. Edit to suit.

UPDATE: Updated my code for WooCommerce 2.0+.  Use the following link:

SB WooCommerce Facebook Comments for WooCommerce 2.0+ (693 bytes)

For PRE-WooCommerce 2.0 installations:

SB WooCommerce Facebook Comments (696 bytes)

Any comments or feedback by all means let me know