Image Image Image Image Image

Fish Can’t Whistle Limited

Registered Company Number: 7781289

Studio 30
Fazeley Studios
191 Fazeley Street
Birmingham
West Midlands
B5 5SE

 

Scroll to Top

To Top

WordPress 3.0 - Fish Can't Whistle

Undo Domain Mapping – WordPress Multisite

I recently had a situation where a site within a WordPress multisite was domain mapped and the DNS at the registrar was changed away from the multisite without the multisite install being updated first. This meant that the WordPress site was not available and the client wanted certain information from the original WordPress dashboard.

Read more…

WordPress themes for UK Politician

Recently I have found myself working for a number of people and organisations involved with UK government and politics. One of my clients needed to find a WordPress theme that we could use a starting point to rebuild their blog.

Read more…

Tags | , , , , ,

How to fix the recent errors with TubePress and Vimeo

On 28, Feb 2012 | No Comments | In hack, php, WordPress, WordPress 3.0, WordPress Development | By Andy

I was informed last night that a previously working site using the TubePress WordPress plugin had suddenly started throwing a fatal error.

The error was this

Fatal error: Cannot use object of type stdClass as array in ***/wp-content/plugins/tubepress/sys/classes/org/tubepress/impl/factory/commands/VimeoFactoryCommand.class.php on line 164

After much digging around it turns out to be a problem with the Vimeo API rather than TubePress and a simple fix will sort you out.

Read more…

Getshopped – Add more details to sales CSV

I have previously showed I added shipping columns to the sales logs page in a getshopped (Wp-Ecommerce) installation. This was fine but now we need that data to show up in the csv download.

Here’s how to do it-

Read more…

GetShopped – Add order without shipping column to sales view

The sales view in the wp-ecommerce (GetShopped) is great but it will show you the total price of an order rather than the price without shipping, the shipping, and the total.

To introduce this functionality you do have to hack the plugin files, but there is not another way as I can not see any hooks I could make use of. If I have missed one, please do let me know!

Read more…

New version of WordPress Gallery

Version 0.6 of WordPress Gallery is now available!

It’s always nice to see my plugin on the front page of WordPress plugins. Even if it is only in the recently updated section!

Two massive new features have been introduced in the latest version-

Read more…

Tags | , , , , , ,

Is WordPress good enough for my site?

Quite often I have people asking whether or not WordPress can handle their large site. They have very genuine concerns that WordPress can not handle things like scaling and caching and large visitor loads.

Whether you are performing due diligence or just wondering what WordPress can do, the below should be quite useful to you.

Its always best to lead by example right! So here we go!

A whole bunch of sites with massive user bases use WordPress. Here are a few-

http://tutsplus.com/ – A HUUUGE site with thousands of articles, media and users. Alexa rank 591

http://freelanceswitch.com/ – I use this site a lot! Both the site and the jobs board are powered by WordPress. Alexa rank 5,813

http://mac.appstorm.net/ – Another site with a huge following. Alexa rank 5,856

http://wiki.envato.com/ – The wiki for the ginormous envato market place. Alexa rank 4,101

http://workawesome.com/ – A blog but a large blog nonetheless. Alexa rank 31, 945

http://blog.themeforest.net/ – The blog for themeforest, possibly the largest template site on the net. A huge following. Alexa rank 287

With large sites caching is very important. Querying the database as few times as possible and only doing so when cached content is not available is crutial for a large site. Serving users static html rather than server intensive php powered by goodness knows how many DB queries saves a tonne in terms of server resources and site responsiveness. WordPress already has numerous plugins for this. The best two are WP Super Cache and W3 Total Cache.

http://codex.wordpress.org/High_Traffic_Tips_For_WordPress is a really good read straight from the WordPress mouth about the capabilities of WordPress. For me, the overriding message from that page is that it is more about the hardware behind the site than the software serving the site.

37 signals (the makers of Basecamp and other very successful web apps) wrote this very honest and wise piece.

http://gettingreal.37signals.com/ch04_Scale_Later.php

Basecamp is probably the most successful online project management tool out there and they openly admit that precious time is lost worrying about problems that may never occur. And when they do occur it is optimal to fix them and tweak the set up as they happen.

As they say -

In the beginning, make building a solid core product your priority instead of obsessing over scalability and server farms. Create a great app and then worry about what to do once it’s wildly successful. Otherwise you may waste energy, time, and money fixating on something that never even happens.

Another brilliantly honest article from the same guys-

http://37signals.com/svn/archives2/dont_scale_99999_uptime_is_for_walmart.php

Edublogs is one of the most successful education based blogging platforms and they use WordPress MU (multi-user). Here is an in depth (and quite geeky) article on the set up of that system.

http://wpmu.org/scaling-wordpress-wpmu-buddypress-like-edublogs/

Matt Mullenweg, the founder of WordPress made an interesting response to somebody moving their site to drupal from WordPress after getting to 200,000 hits per day. He offers some sound advice-

http://webdevnews.net/2008/12/mullenweg-scale-wordpress-to-20000000-views-per-day-for-100-pmonth/

“Barry” is the “Chief Systems Wrangler” at automattic (the people behind wordpress, askimet, vaultpress and IntenseDebate) and he wrote this article about hyperDB -

http://barry.wordpress.com/2011/07/20/hyperdb-lag-detection/

Essentially what he is saying is that using hyperDB (found here http://wordpress.org/extend/plugins/hyperdb/) enables huge sites to effectively and sparingly use DB queries to further optimise a high traffic volume and user interaction site. Read more from “Barry” on scaling here http://barry.wordpress.com/category/scaling/

The only other thing I will add is that words like “blog”, “theme” and “plugin” are used a lot with WordPress. Do not be put off by them! WordPress started out life as a blogging platform and it has struggled to shift that association. In truth, WordPress is actually an extremely powerful Content Management System with a highly intuitive and extensive API. Plugins are essentially little (or large) packages that add extra functionality to a WordPress install. Themes define the look of your site. They contain all the client side code and it is in themes that a design of a site is held.

Tags | , , ,

WP E-commerce – Image previews to change on hover

Hi All,

Another fix ive had to implement whilst working with WP E-Commerce. This time to add functionality so that when thumbnails (from gold cart gallery) are hovered over, the main image preview changes. This also will update the main preview image so that when clicked the correct large image pops up.

You must add this code AFTER the thumbnails have been generated. For me that was at the very bottom of wpsc-single_product.php after

</div><!--close single_product_page_container-->

Here’s the code to add-

<script> jQuery(".attachment-gold-thumbnails").each(function () { jQuery(this).css("cursor", "pointer"); var large_preview = jQuery(this).parent().attr("rev"); var even_larger_preview = jQuery(this).parent().attr("href"); var preview_title = jQuery(this).parent().attr("rel"); jQuery(this).hover( jQuery(this).mouseover(function() { jQuery(".product_image").attr("src", large_preview); jQuery(".product_image").parent().attr("href", even_larger_preview); jQuery(".product_image").parent().attr("rel", preview_title); }) ); }); </script>

It also takes the magnifying glass cursor off the thumbnails and replaces it with pointer. You can change it to whatever you like really.

NB: I have only tested this with the thickbox image pop up script within WPEC. This is due to it being the only one that works natively within the plugin for me…
:-)

Add related products to wp e-commerce (getshopped) store

Here is a nice and simple way to enable related products on a single product page when using wp e-commerce. There’s only four steps!

Step one: Download the “Related Posts” plugin from http://www.microkid.net/wordpress/related-posts/ and install it.

Step two: Set up the plugin and familiarise yourself with the admin panel. Here is a great place to start.

Step three: Insert the following where you want your related products to display (for me this is in the imported wpsc-single_product.php file in my theme folder)-

MRP_show_related_posts()

Step four: Change line 450 in microkids-related-posts.php (now in your wp-content/plugins/microkids-related-posts folder)

FROM

$output .= "<li><a href="".get_permalink( $related_post->ID )."">".$related_post->post_title."</a></li>n";

TO

$output .= "<li><a href="".get_permalink( $related_post->ID ).""><img src="".wpsc_the_product_thumbnail(get_option('product_image_width'),get_option('product_image_height'),$related_post->ID,'single')."" ><br>".$related_post->post_title."</a></li>n";

And you’re done.
:-)