Pave Graphics is a creative yet affordable web design & graphic design company in Aberdeen, Scotland.
Wednesday, 12 January 2011
Saturday, 18 December 2010
UserCake Automatic Login
| UserCake Automatic Login |
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
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...
Saturday, 20 November 2010
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.
http://browsersize.googlelabs.com/
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 http://www.w3schools.com/browsers/browsers_display.asp
http://browsersize.googlelabs.com/
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 http://www.w3schools.com/browsers/browsers_display.asp
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...
Also excited to try 'Rock Melt' if/when I get an invite via their Facebook page...
Blogged with the Flock Browser
Saturday, 2 October 2010
Error 404 - Pave not Found
Always loved quirky 404 error pages
In a similar vein, Smiley Cat showcases Error Messages Design
Loads loads more at http://www.plinko.net/404/area404.asp
In a similar vein, Smiley Cat showcases Error Messages Design
Subscribe to:
Posts (Atom)

