Drupal’s Invite Module Install Notes

Recently we added a competition to Whatsmysize.com to encourage our current users to invite their friends to use the website.

After much research we chose the Invite Module.  When downloading this module grab the token module as well.  Upload both modules to your Drupal Server and extract. I can never remember how to do this so I use a video to remind me.

First enable the Token module in your admin section of Drupal. Once done go back and enable the  Invite Statistics and Invite at the same time

For  Whatsmysize.com the “Invite a friend” appeared in exactly the right place on the left hand navigation. However this can be changed in the admin section.

Next customise the way the email is written and test that it works.

Finally for SEO  add a page talking about your new function or in our case the competition. Then add a link on a menu that is visible without logging in.

Now tell the the people using your site about your cool new recommend a friend function.

Drupal Logs and favicon’s

Where are my Drupal Error Logs ?

Weirdly I found them inside the Admin http://[domain]/[site name]/admin/reports/dblog.

However I don’t know where this is physically on the server.

How do I add a favicon.ico ?

I added the icon to both the root and the /[site]/misc/ location where I found the drupal favicon. Then remembered that I needed to refresh the cache inside the Drupal   /admin/settings/performance section

Whatmsyize.com launches a new site

We have launched a new Drupal website and are having a party ! Drop me an email if you are missing an invite and here is our hot of the presses, press release.

TSB winner Whatmsyize.com launches new site

Whatsmysize.com launch: Welcome to frustration free online shopping.
Whatsmysize.com launch: Welcome to frustration free online shopping.
Whatsmysize.com is an online clothing size calculator, with sizes from a wide selection of brands. Today we’re pulling back the virtual curtain on our improved fitting room in your sitting room, free from surly attendant, hall of mirrors trauma and hideous lighting.
While at Figleaves.com, Whatsmysize.com co-founder Anne Currie noticed that revenues could be significantly improved by reducing the level of product returns.  She worked out that customers tend to purchase the same item in several sizes, and return all but one. As this is frustrating for both shoppers and retailers (stock is often returned in non-saleable condition or after a season ends, and no-one likes  post office queues), and with research showing that sizes vary up to two sizes between UK high street stores, it became obvious that a better solution was needed.
This is where Whatmysize.com steps in to save the day. We’ve created a virtual multi-brand fitting room, where we collect detailed measurements from the customer and provide a list of sizes based on accurate sizing information provided by retailers. With the launch of our new site, shoppers can use our Search to find whatever they’re looking for, and we’ll scour the web and show them what’s out there, in stock, in the size they need, and email them when new items are added. When they’ve found what they want, purchases are just a click away. It’s like a highly intuitive and helpful personal shopper, and they won’t have to stand in an enormous queue to get in either. And reducing the need for returns to the retailer means that everyone’s a winner.
Speaking of winners…..
Whatsmysize.com won the Technology Strategy Board Competition:Feasibility Studies for Digital Britain. Delighted to have been selected, we used the funding for high level research and development work to improve on our original site and calculator. On the new site, shoppers can now take full advantage of the services outlined above, a wider selection of retailers and an improved design. All of which calls for celebration, so email us if you’d like to come along to our London launch party on April 14th.
The Whatsmysize.com Team
Let’s get the introductions out of the way. The girls at Whatmysize.com are a strong management team of three. Anne Currie, Co-founder, has over twelve year’s experience of delivering software solutions. Until recently she was Head of IT at Figleaves.com, the world’s largest online retailer of branded “intimates” (undies, swimwear, sports & sleepwear). Co-founder Kavita Kapoor runs a consultancy working with big names such as CNN on interactive TV and Figleaves.com on the web. She co-founded Digital Delicatessen (a social networking film site) and Journey Ant (a travel site), and previously spent several years at Channel 4 serving as Applications Architect. As the newest member, Keri Webster’s twin passions of writing and shopping make her ideally suited to her role as Content Manager. Previously working for a diverse array of clients ranging from playboy.co.uk to the Japanese Government, Keri is our fashion obsessive, and is wholeheartedly dedicated to conducting as much ‘research’ on online shopping as her bank balance will allow.
The team is dedicated to providing a service as well-tailored to your sartorial needs as possible. Whatsmysize.com: A fitting room in your sitting room.

Mac, Drupal and XAMPP

Loving XAMPP . It’s a kin to having the messiah arrive in Trafalgar Sq without media coverage.

The team on whatsmysize.com suggested I use XAMPP when I asked for a replica dev environment on my shiny new Mac. As I used to have a 10 page installation guide for Digital Deli (a LAMP setup) I was somewhat reticent to embark on this adventure. Especially on a mac, which reminds me of the La Nausée opening chapter by Jean-Paul Sartre

Firstly check out  http://www.apachefriends.org/en/xampp-macosx.html . If you are also installing Drupal then ignore it’s flipant remark of getting the latest version. Instead get the one that has a php version in line with the Drupal you want.

So I used version o.7.1 which uses php 5.2.9 and drupal-6.15. As did the dev team at whatsmysize.com

As a slow newbie it took me a couple of hours to find the sexy self installing version in the complex folder structure on sourceforge. Scroll down to XAMPP for mac and download the dmg version.

references

Whatmysize.com wins support from Technology Strategy Board Competition: Feasibility Studies for Digital Britain.

This is a big deal for my start-up as the competition was exceptionally well supported with 580 valid applicants. 84 were assessed as suitable for funding.  The Technology Strategy Board said that the overall the quality of applications had been high

Us girls at Whatmsyize.com (provider of dress size measurements online) are delighted to be a recipient of the competition. We are supported by the lead organisation KSL Consultants which is committing 25 % of the project funding along with WorkingProgram.com.

Using Fantastico to update Drupal

I decided to use Fantastico to take my Druapl 6.07 to 6.10 this evening. After following the instructions in Fantastico I had a nasty scare when the Drupal website failed to come back up.

To fix it…

1.  I needed to save my theme again. Go to the Admin -> themes.  Choose to configue the theme you have previously used.

2. I then had to update any php scripts that I had changed including user-profile.tpl.php. The thing that got me scratching my head however was that Drupal needed to be told to override the default user profile layout and rebuild the theme registry, which can be done by clearing the caches (for example using the button on the admin/settings/performance page), or simply by visiting the admin/build/modules page

Tracking Vists on another website

WhatsMySize.com is a Clothes Size Calculator which recommends great clothes based on your actually body measurements.  This month I want to track my visitor journey on third party websites to establish how well WhatsMySize.com is doing in finding the right clothes  for our users.

WhatsMySize.com uses Google Analytics and after a heck of a lot of surfing (hence this post) I found an article on the Google Analytics website that might help. To test the article I created a basic html page on another completely different domain (KSLConsultants.com).

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
 <title>My Page Title</title>
</head>
<body>
  hello...
</body>
</html>

Step 1

Step 1 of the google article isn’t clear, but assuming you have already implemented Google Analytics on your main website and it’s working, simply copy this same tracking code and paste it between the <head> tags on the external page you wish to track.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
 <title>My Page Title</title>
 <script type="text/javascript">
  var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
 </script>
 <script type="text/javascript">
  var pageTracker = _gat._getTracker("UA-xxxxxx-x");
  pageTracker._setDomainName("none");
  pageTracker._setAllowLinker(true); 
  pageTracker._trackPageview();
 </script>
</head>
<body>
  hello...
</body>
</html>

Step 2

Simply ask add a few tracking parameters to your normal link to the third party site. So mine is as follows ;

<a href=” http://www.kslconsultants.com/checkouttest/index.html” onclick=”pageTracker._link(this.href); return false;”>Testing Link</a>

But lets face it my nice visitors on whatsmysize are going to wander around the third party website so just link through the page that makes sense on that site and when they get to the page that needs tracking google will work it out.

<a href=" http://www.kslconsultants.com/" onclick="pageTracker._link(this.href); return false;">Testing Link</a>

Step 3

Finally we want to track what money has been spent on the third party site. So lets use the addTrans function as found in the api.

<div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try{
var pageTracker = _gat._getTracker("UA-7680084-1");
pageTracker._trackPageview();
pageTracker._addTrans(
"[order ID]", // order ID - required
"[reference name]", // affiliation or store name
"[order total price]", // total - required
"[vat]", // vat
"[shipping cost]", // shipping
"[customer city]", // city
"[customer state or shire]", // state or province
"[customer country]" // country
);
// the following add item ideally will be called for every item in the shopping cart
pageTracker._addItem(
"[order ID]", // order ID - necessary to associate item with transaction
"[SKU]", // SKU/code - required
"[product name]", // product name
"[description]", // category or variation
"[item price]", // unit price - required
"[quantity]" // quantity - required
);
pageTracker._trackTrans(); //submits transaction to the whatsmysize.com analytics servers
} catch(err) {}
</script>
</script></div>

Test it is working

Once done and a you have clicked through a few times we can check Google is tracking this new page. Open up your Google Analytics account and navigate through to  Top Content and you should see an entry for this page you are tracking. You may have to wait a while (in my case two hours) before Google updates itself.

entry in google analytics

ref

http://www.roirevolution.com/blog/2009/05/stressing_about_your_ga_ecommerce.html