Rebuild of – day 1 – Introduction

This is the first post in a multi-part series where I document the rebuilding and promotion of an existing website. Find out more

What is the website?

On 31st March 2006 I registered the domain name  I was about to convert an empty van into a campervan, and then travel through Europe in it.  I had seen a few other blogs when people had added photos and information about their own campervan conversions, and I thought I would do the same, to help others in the future.  I am a web developer, and it’s always great to use your work skills to make something great to help others.

What I didn’t know was that a very slow rollercoaster of emotions would come from this website, as well as money and a huge sense of pride, and disappointment.

What happened?

I left Cornwall, England and headed to France in September 2016.  I had my little van, a camera and a laptop.  I intended to be travelling for 2 or 3 months, but I was away for 9 months.  I was travelling on my own, and had lots of quiet times.  So, I documented as much as I could about my day, traveling in Europe, and travelling in van I had covered myself.

I created the website, a simple HTML site using Dreamweaver, so that I add all of the content offline, and upload it when I got on line next.  These are the days before iPhones and proper 3G don’t forgot.

Anyway, I made the website, uploaded it, went home, and met a girl (now my wife).  I was about to go India, and thought I would convert the website to Drupal.  I’d used Drupal a fair bit, and knew the site would be easier to manage as I wouldn’t have a laptop with me in India.  Drupal also allowed for member interaction. I hadn’t used WordPress at this point.

I first added Google Analytics to the site, on 8th Feb 2017.  2 page views were recorded that day!  Here’s a graph of how the traffic has grown over the last 10 years.


Google Analytics for from 8th Feb 2017 to 23rd Jan 2017

That first year was a slow builder, but in the second year things really took off!  The site quickly become the most popular resource for campervans in the internet, ranking well for most things.

I had experience of affiliate marketing and Google Adsense, and so I was able to monetise this website well.  Well enough that me and my wife to travel through Asia and Europe for the next 5 years.

We were living the digital nomad dream.  Although I had no client deadlines, and nothing stopping me from going out and doing whatever I wanted each day.  This was great passive income, with no client demands or expectations!

However, as you can see in the data a drop occurs in 2012 and continues through until now.  This was caused by a change to Googles search engine algorithms, which meant the site didn’t rank so well anymore.  I also stopped updating the site at this point, as I had moved back to Brighton, England, and was freelancing.

This drop in traffic also means a drop in income, and with big changes from eBay, and Amazon I was making a lot less money now.  The love for this website was fading out, and I lost interest.

Why do this?

It’s been 5 years since I stopped working on the site (almost exactly).  I the last 5 years I’ve finished a degree, supported my wife, bought a property, started and closed a tech startup. and done a lot of freelance work.

I make websites for people all of the time.  My passion for that is fading, and now I dream of making an awesome resource again.  It’s taken a long time to get to this point, as I’ve had a problem saying no to freelance work.  But I’ve got good at saying no now, and today, as I write this blog post, is the start of the rebuilding of this website, and the journey to make it a great resource again.  And, the documenting of that rebuild.

My plan is to make an awesome resource that makes a good profit.

Then, I will build related websites and create a portfolio of websites giving me passive income, and allowing me to experiment with the things I love.

What are you going to do?

  1. The site is currently powered by Drupal, and a move to WordPress is likely, as I know and love WordPress, however Drupal has some important features that can’t be ignored.  So it might be an upgrade to the latest Drupal version.
  2. Create a new theme for the site.
  3. Take the existing content, audit it all, and improve it all.
  4. Replace just about ever photo on the site.
  5. Fix and improve all of the membership features.
  6. Add new membership features.
  7. Monetise the site in better ways.
  8. Offer something to sell, probably premium content.

When are you going to do it

Over the next 2 or 3 months.  I will be doing some client work in this time, to pay the bills.  I’ve taken many steps to get to this point, and I’m really excited to get started.

Then what?

Once is established again I will look to leverage its traffic and membership base.

I’ll use the Coca Cola model:  Once they started selling Coke, then they introduced Diet Coke, then Vanilla Coke.

Other ideas include a camping classifieds website, and a van database website.

Send WooCommerce emails using code – useful for testing custom emails

If you need to test custom WooCommerce checkout email templates or functionality you don’t want to constantly be generating orders, or changing order statuses.

Instead use this snippet to send the emails until your code is working perfectly.

Just add it to your theme functions.php.  Be sure to set the $order_id and the $email_class if necessary.

add_action('init', 'send_wc_email');
function send_wc_email() {

// The order ID we're testing the email with
$order_id = 623;

// The email we want to send
$email_class = 'WC_Email_Customer_Processing_Order';

Available emails are:

// Load the WooCommerce Emails
$wc_emails = new WC_Emails();
$emails = $wc_emails->get_emails();

// Select the email we want & trigger it to send
$new_email = $emails[$email_class];

// Show the email content
echo $new_email->get_content();

How to Show KGs as grams in WooCommerce

The default metric value in WooCommerce is KGs.

My client has been running his site for years in KGs, and many of his products have the weight entered as KGs.

Now he wants to show the value in grams.

WooCommerce has an option to show the weights as grams:

WooCommerce weights

Whilst this changes the label on the website, WooCommerce was still showing the actual weight value in KGs.

I could run a script to change the weights of the products from KGs to grams, but my client was using a CSV export, and I didn’t want to disrupt this.

The following code will display the KG weights as grams on the WooCommerce templates

// Convert the product weight
function ag_woocommerce_product_get_weight( $weight ) {

// Only convert if we have a weight
if ($weight) {

// The weight is in KGS, and we want grams, to multiple by 1000
$weight = $weight * 1000;

return $weight;
// add the filter
add_filter( 'woocommerce_product_get_weight', 'ag_woocommerce_product_get_weight', 10, 1 );

wp_foots() Compromised WordPress and Drupal sites

I’m seeing a few WordPress and Drupal sites with template files being compromised, and a call to a PHP method wp_foots being added

<?php wp_foots();?>

This PHP call injects malicious Javascript code that typically writes spam links to the footer.

It is safe to delete the wp_foots() call. However, this call is part of a bigger compromise, and other PHP files within the website have almost certainly been injected as well.

You should look out for calls to eval(base64_decode( and delete/fix those files.

Dropbox stuck at 100% CPU on Mac, nothing seems to work

If you find your Dropbox is stuck at 100% CPU and constantly ‘Downloading file list’ on your Mac, and you’ve tried all of the unlink/re-link suggestions, be sure to check you don’t have a symbolic link in your Dropbox folders.

I did (from a downloaded website backup), and my Dropbox was stuck synching for weeks.

Run the following from Terminal to search for symbolic links, then delete them (or zip up the folder in my case, then delete the files).

cd ~/Dropbox
find . -type l

Latest from the blog

View All
Social media & sharing icons powered by UltimatelySocial