Saturday, 18 December 2010

UserCake Automatic Login

UserCake Automatic Login
I just finished a little code snippet for the Open Source User log in system 'Usercake'.
It automatically logs in a new user upon successful registration by redirecting the page, automatically posting the username and password using document.form.submit (but only if there's no errors AND email activation is turned off).

Insert this code on register.php just before the <!DOCTYPE bit at around line 90.

if(!empty($_POST) && count($errors) == 0 && !$emailActivation){

      echo "<html>/n";
      echo "<head><title>Logging you In...</title></head>/n";
      echo "<body onLoad="document.forms['login_form'].submit();">/n";
      echo "<center><h2>Please wait, you are being logged in</center>/n";
      echo "<form method="post" name="login_form" ";
      echo "action="login.php">/n";

      echo "<input type="hidden" name="username" value ="$username" />/n";
      echo "<input type="hidden" name="password" value ="$password" />/n";
      echo "<center><br/><br/>If you are not automatically logged in ";
      echo "within 5 seconds...<br/><br/>/n";
      echo "<input type="submit" value="Click Here"></center>/n";
      echo "</form>/n";
      echo "</body></html>/n";
 } else {

And of course remember to close with a curly bracket right and the VERY END of the page.

I used this to pass an additional $_POST variable telling UserCake that it was the first login.

Hope this helps you!

Saturday, 27 November 2010

Rainbow Library - Man-made Rainbows

I love the rainbow stuff she posts up on 'Things Organized Neatly' so I'm gonna start my own Man-made Rainbows thread...
My sister always used to take all her pencils out of the Caran D'Ache box (starting with the 10 pack aged 7 and working up to 50 or so aged c.13) and organise them in different colour orders, usually based on the rainbow.  I guess the fascination rubbed off...

Monday, 15 November 2010

Browser Sizes

Just found this pretty neat feature from Google Labs - a web 'mask' showing usage percentages for browser window sizes.

Pretty useful tool for us website designers! I'd say it looks like optimising your website design for c. 1000x550px resolution is a happy medium (at the moment) of usability over design possibilities...  Although some would say you should make your site available to absolutely everyone!

There's also useful raw chronological browser stats including size, operating system, browser, from W3 Schools

Wednesday, 10 November 2010

New Web Browsers

I've been test driving the new browser based on Firefox called 'Flock'.  It features a sidebar where you can load integrated social media (FaceBook, Twitter), RSS feeds, Email and much more.

Also excited to try 'Rock Melt' if/when I get an invite via their Facebook page...

Blogged with the Flock Browser

Tuesday, 28 September 2010


Yay the @font-face css declaration is here!
Read more about it at the
I've looked into using custom fonts before, mainly for SEO and page-loading-time reasons; there were a few very ugly solutions out there, including one that generated a Flash swf showing the desired text and embedding the requested font - UGH!!
So can't wait to implement this on client sites and our own upgraded v.3 website in the making.

Saturday, 18 September 2010

Back from Honeymoon!

Well back to the grind now after a lovely honeymoon!
Been checking out EUFreelance for a wide range of Freelance job opportunities in our sector.
Hard to get started but hopefully some good business in it once we're up and running!

Monday, 16 August 2010

Thursday, 12 August 2010


A spate of work just come in including some flash and website work for Paul Mackie Wedding Photography Aberdeen and loads of business cards printing jobs.

Monday, 9 August 2010

UTG Starlings

Ever seen those flocks of starlings playing above Union Terrace Gardens? I always wanted to recreate that in a little Flash 'game'. so here it is!

Wednesday, 4 August 2010