<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Tom&#039;s Big Box</title>
	<atom:link href="http://tomsbigbox.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://tomsbigbox.com</link>
	<description>My name is Tom, welcome to my box, it is rather large.</description>
	<lastBuildDate>Mon, 08 Mar 2010 17:15:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>The problem with Web 2.0 Design</title>
		<link>http://tomsbigbox.com/the-problem-with-web-2-0-design/</link>
		<comments>http://tomsbigbox.com/the-problem-with-web-2-0-design/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 17:15:23 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Deep Thought]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[trends]]></category>
		<category><![CDATA[web 2.0]]></category>

		<guid isPermaLink="false">http://tomsbigbox.com/?p=680</guid>
		<description><![CDATA[Web 2.0 is the quirky title given to the way in which developers and users have used the web since 2004 to present; and I haven't got a problem with that. I have a problem with the overuse of web 2.0 design. Now there are design trends that come and go, and I am someone [...]]]></description>
			<content:encoded><![CDATA[<p>Web 2.0 is the quirky title given to the way in which developers and users have used the web since 2004 to present; and I haven't got a problem with that. I have a problem with the overuse of web 2.0 design. Now there are design trends that come and go, and I am someone who really hopes that this particular one would just go away. It seems that many designers these days create a plethora of similar designs all based on this so called standard - all glossy buttons and sans-serif fonts. </p>
<p>Now that doesn't mean to say I'm totally against this style of design. But what I am against is people who just mimic the style and call it their own original design. I might be wrong here, but I feel that this design trend has caused laziness amongst the design community, causing many designers to just add some gloss and get rid of an element or two. What I don't like are sites that are incredibly upfront about their web 2.0 style, the ones with a huge amount of glossy buttons and no really design originality.</p>
<p>An upcoming trend is that of simplicity and I for one hope that it aids the destruction of web 2.0 style sites. I just feel like saying to all of these people who copy a million and one tutorials on glossy sites to go and get some design sense!</p>
<p><a href="http://twitter.com/elliotjaystocks">@ElliotJayStocks</a> has talked about this subject quite a lot and he too believes that Web 2.0 must die!</p>
<p>What I am saying is that in a way this style of design is making the design community stupider, think about it, so many clients will ask for a web 2.0 style site without really understanding what it means. </p>
<p>This isn't really much of a post, more of a rant, but I just wanted to make clear that I hate web 2.0 - and you should too! That is all. </p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://tomsbigbox.com/the-problem-with-web-2-0-design/&amp;title=The+problem+with+Web+2.0+Design" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=The+problem+with+Web+2.0+Design+-+http://tomsbigbox.com/the-problem-with-web-2-0-design/+(via+@tom_walters)" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://tomsbigbox.com/the-problem-with-web-2-0-design/&amp;title=The+problem+with+Web+2.0+Design" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://tomsbigbox.com/the-problem-with-web-2-0-design/&amp;title=The+problem+with+Web+2.0+Design" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://tomsbigbox.com/the-problem-with-web-2-0-design/&amp;title=The+problem+with+Web+2.0+Design" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://tomsbigbox.com/the-problem-with-web-2-0-design/&amp;title=The+problem+with+Web+2.0+Design" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://tomsbigbox.com/the-problem-with-web-2-0-design/&amp;t=The+problem+with+Web+2.0+Design" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://tomsbigbox.com/the-problem-with-web-2-0-design/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://tomsbigbox.com/the-problem-with-web-2-0-design/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Screencast #1 &#8211; Creating perspective</title>
		<link>http://tomsbigbox.com/screencast-1-creating-perspective/</link>
		<comments>http://tomsbigbox.com/screencast-1-creating-perspective/#comments</comments>
		<pubDate>Sun, 28 Feb 2010 11:55:19 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Screencast]]></category>
		<category><![CDATA[cool]]></category>
		<category><![CDATA[effect]]></category>
		<category><![CDATA[footer]]></category>
		<category><![CDATA[layered]]></category>
		<category><![CDATA[perspective]]></category>

		<guid isPermaLink="false">http://tomsbigbox.com/?p=668</guid>
		<description><![CDATA[In this first ever screencast I will show you how to add perspective to your websites by using a really simple trick which comes into play when users re-size their windows. In the screencast I focus on creating a fancy city-scape for a footer with three basic levels of perspective. The final effect is viewable [...]]]></description>
			<content:encoded><![CDATA[<p>In this first ever screencast I will show you how to add perspective to your websites by using a really simple trick which comes into play when users re-size their windows. In the screencast I focus on creating a fancy city-scape for a footer with three basic levels of perspective. The final effect <a href="http://tomsbigbox.com/examples/Cityscape">is viewable here</a> - re-size your browser window to see it in action. Hope you like it, (holds glass up) and here's to the first of many! (N.B. The video might take a moment or two to load)</p>
<p><object width="530" height="299"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=9781701&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=9781701&amp;server=vimeo.com&amp;show_title=0&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="530" height="299"></embed></object></p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://tomsbigbox.com/screencast-1-creating-perspective/&amp;title=Screencast+%231+-+Creating+perspective" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Screencast+%231+-+Creating+perspective+-+http://tomsbigbox.com/screencast-1-creating-perspective/+(via+@tom_walters)" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://tomsbigbox.com/screencast-1-creating-perspective/&amp;title=Screencast+%231+-+Creating+perspective" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://tomsbigbox.com/screencast-1-creating-perspective/&amp;title=Screencast+%231+-+Creating+perspective" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://tomsbigbox.com/screencast-1-creating-perspective/&amp;title=Screencast+%231+-+Creating+perspective" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://tomsbigbox.com/screencast-1-creating-perspective/&amp;title=Screencast+%231+-+Creating+perspective" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://tomsbigbox.com/screencast-1-creating-perspective/&amp;t=Screencast+%231+-+Creating+perspective" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://tomsbigbox.com/screencast-1-creating-perspective/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://tomsbigbox.com/screencast-1-creating-perspective/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Could Facebook groups be a bad thing?</title>
		<link>http://tomsbigbox.com/could-facebook-groups-be-a-bad-thing/</link>
		<comments>http://tomsbigbox.com/could-facebook-groups-be-a-bad-thing/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 17:40:37 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Deep Thought]]></category>
		<category><![CDATA[Facebook]]></category>
		<category><![CDATA[groups]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://tomsbigbox.com/?p=655</guid>
		<description><![CDATA[Recently I was looking around on Facebook as you do, and I realized that around 90% of my news feed was full of "John Doe joined the group ... and so did 16 other friends". Now apart from the annoyance this served me it made me think about the purpose behind such groups. One could [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I was looking around on Facebook as you do, and I realized that around 90% of my news feed was full of "John Doe joined the group ... and so did 16 other friends". Now apart from the annoyance this served me it made me think about the purpose behind such groups. One could argue that they are simply the musings and observations of a random person, but I take a more cynical approach. Why? Well I can understand why you might want to protest against racism by joining a group to show your support; but what possible reason could there be for joining a group just to agree with a meaningless statement such as "I want this house" with a photo of a large house? Sure for most people it is just a small thing they do when they are bored. But what worries me is the people behind the groups.</p>
<p>I can understand why, as the founder of a certain group, you might get excited about getting 10,000 members, but I doubt that if your group was for a worthy cause you might make a checklist of what membership number you want to achieve. When creators aim for such high numbers is it just because they want to see that people care? Possible. But as I said I am far more cynical than all of that. Groups that expressly ask you to invite all your friends by copying and pasting some JavaScript code into the URL bar surely have some ulterior motive. What I can see emerging is a sort of voluntary spamming network. </p>
<p>Think about it. If you were to take a handful of groups and add together their memberships to say 1,000,000 people, you would have a good amount of people to spam. If you wanted to spam a certain set of people, you could take student groups and collectively spam them. I can see large shady businesses buying "admin-ships" from the creators of these groups, as to utilize the "Message all members" feature of the groups system. And think about it, this wouldn't just impact your Facebook account, no, because Facebook is automatically configured to email users whenever they are sent a message, and so it would filter down.</p>
<p>Now you might be thinking, yes but all these people could just leave the group. Sure they could. But if the attacks were well coordinated, you could send maybe 10 messages to every account you had access to in a minute? And that's the sort of thing that wouldn't even require a bot network. You could just copy and paste in the spam over and over. You would segment the attacks into a group by group basis and make sure you were targeting the right people.</p>
<p>I would advise you take this idea with a pinch of salt, because I can't see it happening in the near future, but I think it is important for us to be aware that such a network could easily be used to spam people. So what can you do to stop it? Don't join these stupid groups that say "If 250,000 people join I'll run round town naked", only join the ones that mean something to you and that you trust.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://tomsbigbox.com/could-facebook-groups-be-a-bad-thing/&amp;title=Could+Facebook+groups+be+a+bad+thing%3F" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Could+Facebook+groups+be+a+bad+thing%3F+-+http://tomsbigbox.com/could-facebook-groups-be-a-bad-thing/+(via+@tom_walters)" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://tomsbigbox.com/could-facebook-groups-be-a-bad-thing/&amp;title=Could+Facebook+groups+be+a+bad+thing%3F" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://tomsbigbox.com/could-facebook-groups-be-a-bad-thing/&amp;title=Could+Facebook+groups+be+a+bad+thing%3F" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://tomsbigbox.com/could-facebook-groups-be-a-bad-thing/&amp;title=Could+Facebook+groups+be+a+bad+thing%3F" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://tomsbigbox.com/could-facebook-groups-be-a-bad-thing/&amp;title=Could+Facebook+groups+be+a+bad+thing%3F" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://tomsbigbox.com/could-facebook-groups-be-a-bad-thing/&amp;t=Could+Facebook+groups+be+a+bad+thing%3F" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://tomsbigbox.com/could-facebook-groups-be-a-bad-thing/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://tomsbigbox.com/could-facebook-groups-be-a-bad-thing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Travel &#8211; a free Wordpress theme</title>
		<link>http://tomsbigbox.com/travel-a-free-wordpress-theme/</link>
		<comments>http://tomsbigbox.com/travel-a-free-wordpress-theme/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 08:39:52 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Free Stuff]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[travel]]></category>
		<category><![CDATA[Wordpress theme]]></category>

		<guid isPermaLink="false">http://tomsbigbox.com/?p=647</guid>
		<description><![CDATA[So I woke up this morning and felt like sharing the love! And so today I've got a free Wordpress theme for you that I finished up only yesterday! Here is the link to download. And if you want to see it in action, visit the demo page. This is a really simple theme that [...]]]></description>
			<content:encoded><![CDATA[<p>So I woke up this morning and felt like sharing the love! And so today I've got a free Wordpress theme for you that I finished up only yesterday! <a href="http://tomsbigbox.com/core/wp-content/uploads/2010/02/Travel-Theme.zip">Here is the link to download.</a> And if you want to see it in action, <a href="http://urbanmandesign.com/travel">visit the demo page.</a> This is a really simple theme that works in FF2/FF3/IE7/IE8/Chrome/Safari/Opera so you're pretty much covered in terms of compatibility. The sidebar is widget ready, and the options available stretch as far as entering things like your Twitter user name, Facebook profile ID, email address, and RSS freed address, for the social widget in the sidebar.</p>
<p>I designed the theme with those who travel in mind, so if you are taking a gap year to go traveling and you want to share the experience with all of your friends it is ideal. On the other hand you could use it for whatever, I like the light colour scheme and typography of the site, because it's really simple. </p>
<p>Any who I hope you enjoy it!</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://tomsbigbox.com/travel-a-free-wordpress-theme/&amp;title=Travel+-+a+free+Wordpress+theme" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Travel+-+a+free+Wordpress+theme+-+http://tomsbigbox.com/travel-a-free-wordpress-theme/+(via+@tom_walters)" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://tomsbigbox.com/travel-a-free-wordpress-theme/&amp;title=Travel+-+a+free+Wordpress+theme" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://tomsbigbox.com/travel-a-free-wordpress-theme/&amp;title=Travel+-+a+free+Wordpress+theme" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://tomsbigbox.com/travel-a-free-wordpress-theme/&amp;title=Travel+-+a+free+Wordpress+theme" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://tomsbigbox.com/travel-a-free-wordpress-theme/&amp;title=Travel+-+a+free+Wordpress+theme" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://tomsbigbox.com/travel-a-free-wordpress-theme/&amp;t=Travel+-+a+free+Wordpress+theme" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://tomsbigbox.com/travel-a-free-wordpress-theme/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://tomsbigbox.com/travel-a-free-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Create a fancy thumbnails list in Wordpress</title>
		<link>http://tomsbigbox.com/create-a-fancy-thumbnails-list-in-wordpress/</link>
		<comments>http://tomsbigbox.com/create-a-fancy-thumbnails-list-in-wordpress/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 11:55:44 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[thumbnail]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://tomsbigbox.com/?p=616</guid>
		<description><![CDATA[I, like many others, love Wordpress, and every time I come to creating a new theme I always look for new ways to utilize it's true power. I like extending the functionality of websites with Wordpress and I like using images to better the user's experience, so I decided I would explore the possibilities. While [...]]]></description>
			<content:encoded><![CDATA[<p>I, like many others, love Wordpress, and every time I come to creating a new theme I always look for new ways to utilize it's true power. I like extending the functionality of websites with Wordpress and I like using images to better the user's experience, so I decided I would explore the possibilities. While working on a site recently I decided I liked the idea of having a row of thumbnails across the top of the hear to showcase some of the food written about in the blog. It made sense to me that a food blog would benefit from showing it's users little snapshots of the food that they were creating. After a bit of thought I realized it was easy, using the simple nature of Wordpress I managed to cobble together some code, and the end result looked like this:</p>
<p><a href="http://tomsbigbox.com/core/wp-content/uploads/2010/02/thumbnails.png"><img class="aligncenter size-full wp-image-636" title="thumbnails" src="http://tomsbigbox.com/core/wp-content/uploads/2010/02/thumbnails.png" alt="thumbnails" width="487" height="175" /></a></p>
<p>As you can see above there is a row of images which have been grabbed from the posts themselves and displayed in a nice little row. So just how did I do it? Well I used the old custom field functionality of Wordpress to make the image accessible to any part of my site. So instead of placing the image in the post itself I just stored it alongside it. The best thing is, it's really simple to do. So lets go ahead and do it!</p>
<p>First off you're going to need to create a custom field, doing so is really rather easy - all you need to do is go to either add, or edit a post and scroll down to "Custom Fields", as you can see below.</p>
<p><a href="http://tomsbigbox.com/core/wp-content/uploads/2010/02/custom-field.png"><img class="aligncenter size-full wp-image-635" title="custom-field" src="http://tomsbigbox.com/core/wp-content/uploads/2010/02/custom-field.png" alt="custom-field" width="487" height="134" /></a></p>
<p>Go ahead and click on "Enter New" and name it "thumbnail". Then in the value field you will need to enter the URL of an image. So go ahead and upload an image and get the image URL for the field. Once you update the post the image will now be associated with your post. But to use the image we're going to need to use some code. To create the desired effect we are going to create a custom loop for the homepage. So copy and paste the code below into page where you want the images to be displayed.</p>
<div class="code">
&lt;div id="thumbnails-top"&gt;<br />
 &lt;?php<br />
 global $post;<br />
 $myposts = query_posts('showposts=8');<br />
 foreach($myposts as $post) :<br />
 setup_postdata($post);<br />
 ?&gt;<br />
 &lt;a href="&lt;?php the_permalink(); ?&gt;" rel="bookmark" title="&lt;?php the_title_attribute(); ?&gt;"&gt;&lt;img src="&lt;?php echo bloginfo('template_directory') ?&gt;/js/timthumb.php?src=&lt;?php echo get_post_meta($post-&gt;ID, 'thumbnail', true) ?&gt;&amp;h=75&amp;w=85&amp;zc=1" alt="Post Thumbnail" /&gt;&lt;/a&gt;<br />
 &lt;?php endforeach; ?&gt;<br />
&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;
</div>
<p>Now for the above code to work you are going to need a folder entitled "js", with the image resizing script <a href=http://code.google.com/p/timthumb/">Thim Thumb</a> as mentioned in <a href="http://tomsbigbox.com/resizing-images-the-right-way/">this article</a>, inside of it. So what does the code do? Well it grabs the 8 most recent posts and creates some links for them. We use the script to re-size the images so that they won't take ages to load and we then link to the posts they are assigned to. So up to now you should have a list of these images displayed - but on;y if the post includes the correct data! But we're not done yet.</p>
<p>We do have a list, but I can't say it'll look nice, so lets use some CSS to style this bad boy.</p>
<div class="code">
#thumbnails-top { display: block; margin: auto; width:800px; }<br />
.post-thumbnail-top { border:#898a6b solid 3px; margin-left:5px; }
</div>
<p>And that should make it look a bit better. Using this method we are able to give the user a choice as to how they navigate your website. They will now be able to make decisions based on the graphical content of the thumbnail and therefore, hopefully, be better informed.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://tomsbigbox.com/create-a-fancy-thumbnails-list-in-wordpress/&amp;title=Create+a+fancy+thumbnails+list+in+Wordpress" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Create+a+fancy+thumbnails+list+in+Wordpress+-+http://tomsbigbox.com/create-a-fancy-thumbnails-list-in-wordpress/+(via+@tom_walters)" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://tomsbigbox.com/create-a-fancy-thumbnails-list-in-wordpress/&amp;title=Create+a+fancy+thumbnails+list+in+Wordpress" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://tomsbigbox.com/create-a-fancy-thumbnails-list-in-wordpress/&amp;title=Create+a+fancy+thumbnails+list+in+Wordpress" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://tomsbigbox.com/create-a-fancy-thumbnails-list-in-wordpress/&amp;title=Create+a+fancy+thumbnails+list+in+Wordpress" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://tomsbigbox.com/create-a-fancy-thumbnails-list-in-wordpress/&amp;title=Create+a+fancy+thumbnails+list+in+Wordpress" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://tomsbigbox.com/create-a-fancy-thumbnails-list-in-wordpress/&amp;t=Create+a+fancy+thumbnails+list+in+Wordpress" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://tomsbigbox.com/create-a-fancy-thumbnails-list-in-wordpress/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://tomsbigbox.com/create-a-fancy-thumbnails-list-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Using Location Awareness</title>
		<link>http://tomsbigbox.com/using-location-awareness/</link>
		<comments>http://tomsbigbox.com/using-location-awareness/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 16:52:35 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[awareness]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[location]]></category>

		<guid isPermaLink="false">http://tomsbigbox.com/?p=604</guid>
		<description><![CDATA[A future web design trend that I predict is location awareness, and using it to ensure a better user experience. However without access to GPS, most of the world's desktop PCs will have to rely on other means of telling servers where they are. One way that we can use today to determine the location [...]]]></description>
			<content:encoded><![CDATA[<p>A future web design trend that I predict is location awareness, and using it to ensure a better user experience. However without access to GPS, most of the world's desktop PCs will have to rely on other means of telling servers where they are. One way that we can use today to determine the location of any given computer is by using a user's IP address and feeding it to a service that will tell us where the computer is located. Now while this sounds great in practice, in reality most services aren't all that accurate. But saying that, most can tell you what country a user is visiting from. So how can we use this is web design?</p>
<p>Well say for instance you have two e-commerce sites that are essentially the same shop - one for your American audience, and one for the UK. Differences might include currency conversions and product listings, and it would be nice to be directed to the right site should you accidentally visit the wrong one. For example <a href="http://crucial.com/">Crucial's website</a> alerts the user with a nice little pop-up, asking them if they would like to visit their international site, as it were, as you can see below.</p>
<p><a href="http://tomsbigbox.com/wp-content/uploads/2010/02/crucial-popup.png"><img src="http://tomsbigbox.com/core/wp-content/uploads/2010/02/crucial-popup-300x151.png" alt="Crucial Popup" title="crucial-popup" width="300" height="151" class="aligncenter size-medium wp-image-605" /></a></p>
<p>This sort of interaction is really beneficial to the user because it stops them making mistakes later on, and more importantly, it's easy to accomplish! </p>
<p>Now instead of presenting you with all the code, I'm going to tell you how I accomplished the desired effect - hopefully I'll make you actually think about how it works <img src='http://tomsbigbox.com/core/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So first off I visited <a href="http://css-tricks.com/snippets/php/get-geo-ip-information/">this code snippet page</a> to get my code for finding out where the user is. I then took the array filled with information and used an "if" statement to evaluate it. So something like...</p>
<div class="code">
if($ipInfo["country"]=="GB - United Kingdom"){<br />
&nbsp;&nbsp;echo '<script type="text/javascript">popup();</script>';<br />
}
</div>
<p>The code above will initiate a JavaScript function if the user appears to be coming from the UK. This function would do anything you want really, I would suggest you use a nice pop-up box to alert the user, much like the one shown above, and then allow them to navigate to another site. I would argue against immediate redirection, because the reliability of a free database cannot be ensured, and you wouldn't want to be redirected to the wrong site without the option to navigate back, now would you?</p>
<p>As I said, this is a really easy way of determining where your users are, and making a decision based on that information. Users will thank you for helping them out, and admire the fact that you know where they live!*</p>
<p>*Users may not be impressed by this simple technique <img src='http://tomsbigbox.com/core/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://tomsbigbox.com/using-location-awareness/&amp;title=Using+Location+Awareness" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Using+Location+Awareness+-+http://tomsbigbox.com/using-location-awareness/+(via+@tom_walters)" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://tomsbigbox.com/using-location-awareness/&amp;title=Using+Location+Awareness" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://tomsbigbox.com/using-location-awareness/&amp;title=Using+Location+Awareness" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://tomsbigbox.com/using-location-awareness/&amp;title=Using+Location+Awareness" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://tomsbigbox.com/using-location-awareness/&amp;title=Using+Location+Awareness" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://tomsbigbox.com/using-location-awareness/&amp;t=Using+Location+Awareness" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://tomsbigbox.com/using-location-awareness/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://tomsbigbox.com/using-location-awareness/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using CSS Sprites</title>
		<link>http://tomsbigbox.com/using-css-sprites/</link>
		<comments>http://tomsbigbox.com/using-css-sprites/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 19:47:33 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[Sprites]]></category>

		<guid isPermaLink="false">http://tomsbigbox.com/?p=591</guid>
		<description><![CDATA[Navigation is an important part of how sites work, and so I think we can all agree that it is important for our navigational items to look nice. One problem that many sites encounter is the slow loading of roll-over images that are used to give feedback to the user. I'm sure you know what [...]]]></description>
			<content:encoded><![CDATA[<p>Navigation is an important part of how sites work, and so I think we can all agree that it is important for our navigational items to look nice. One problem that many sites encounter is the slow loading of roll-over images that are used to give feedback to the user. I'm sure you know what I'm talking about here - when you roll-over an image and it goes white for a moment before loading in the image? Well the reason for this problem is because the browser only loads the images that are going to be used immediately, and so when you're CSS uses something like <span class="code-small">#nav-item:hover { background-image:url(images/2.png) }</span> to change the background image, the browser has to go off and find that image.</p>
<p>Ways of avoiding this are simple, and one of the best ways to do so is by using one image for all of your navigational images within one image! Sound crazy? Well that's what we call a sprite. Using CSS sprites will reduce your web-page's loading time and greatly reduce the number of requests made by the browser, and that can only be a good thing. Many sites use this method to ensure their servers don't die altogether, for example Apple uses it for their primary navigation.</p>
<p><a href="http://tomsbigbox.com/wp-content/uploads/2010/02/appleMenu.png"><img src="http://tomsbigbox.com/wp-content/uploads/2010/02/appleMenu-300x46.png" alt="Apple&#039;s Menu" title="Apple&#039;s Menu" width="300" height="46" class="aligncenter size-medium wp-image-595" /></a></p>
<p>So lets go ahead and create a nice looking menu.</p>
<p>We will begin with the HTML.</p>
<div class="code">
&lt;div id="nav"&gt;<br />
&nbsp;&nbsp;&lt;ul&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;li id="menu-home"&gt;&lt;a href="#"&gt;Home&lt;/a&gt;&lt;/li&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;li id="menu-blog"&gt;&lt;a href="#"&gt;Blog&lt;/a&gt;&lt;/li&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;li id="menu-contacts"&gt;&lt;a href="#"&gt;Contact&lt;/a&gt;&lt;/li&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&lt;li id="menu-about"&gt;&lt;a href="#"&gt;About&lt;/a&gt;&lt;/li&gt;<br />
&nbsp;&nbsp;&lt;/ul&gt;<br />
&lt;/div&gt;
</div>
<p>So that will just create for us a simple unordered list that we can now manipulate using the CSS below (and don't forget to link to your CSS file). </p>
<div class="code">
* {<br />
	margin:0px;<br />
	padding:0px;<br />
}	</p>
<p>#nav {<br />
	width:700px;<br />
	height:55px;<br />
	overflow:hidden;<br />
	padding-top:0px;<br />
	margin-left:0px;<br />
	margin-right:0px;<br />
	display:block;<br />
	list-style-type:none;<br />
}</p>
<p>#nav li {<br />
	list-style:none;<br />
	top:0px;<br />
}</p>
<p>#nav a {<br />
	display:block;<br />
	width:150px;<br />
	height:100px;<br />
	background-image:url(images/blueMenu.png);<br />
	text-indent:-9999px;<br />
	float:left;<br />
	margin:5px;<br />
}</p>
<p>#menu-home a { background-position:0px 0px; }<br />
#menu-home a:hover { background-position:0px -50px; }</p>
<p>#menu-blog a { background-position:-150px 0px; }<br />
#menu-blog a:hover { background-position:-150px -50px; }</p>
<p>#menu-contact a { background-position:-300px 0px; }<br />
#menu-contact a:hover { background-position:-300px -50px; }</p>
<p>#menu-about a { background-position:-450px 0px; }<br />
#menu-about a:hover { background-position:-450px -50px; }
</p></div>
<p>So together that HTML and the CSS will create a rather lovely menu. To customize the menu you will need to create your own image and aligning it up with the values in the CSS. To view a live example of this <a href="http://tomsbigbox.com/examples/SpriteMenus/">visit the demo page.</a></p>
<p>So what are the real benefits of this method? Well first off it will speed up your site, and although you might not recognize the speed increase straight-away, on sites where daily visits are in the 100s of thousands, the fewer HTTP requests, the better. Also there are the obvious benefits of using images as opposed to text, for example post pictures, and nice roll-over effects.</p>
<p>To finish I'd like to mention one drawback - if you want to edit only one menu item, you will have to have access to the original file to edit it, and then upload it to your server. This can be annoying if you are working on somebody else's site. </p>
<p>Oh and by the way, you don't have to just restrict yourself to menus, many of the larger sites such as YouTube use huge sprites to hold nearly all of the images on their site. Such an approach can be annoying if you are constantly editing your site, but the pros received on a large site are huge and will usually outweigh the cons.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://tomsbigbox.com/using-css-sprites/&amp;title=Using+CSS+Sprites" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Using+CSS+Sprites+-+http://tomsbigbox.com/using-css-sprites/+(via+@tom_walters)" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://tomsbigbox.com/using-css-sprites/&amp;title=Using+CSS+Sprites" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://tomsbigbox.com/using-css-sprites/&amp;title=Using+CSS+Sprites" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://tomsbigbox.com/using-css-sprites/&amp;title=Using+CSS+Sprites" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://tomsbigbox.com/using-css-sprites/&amp;title=Using+CSS+Sprites" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://tomsbigbox.com/using-css-sprites/&amp;t=Using+CSS+Sprites" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://tomsbigbox.com/using-css-sprites/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://tomsbigbox.com/using-css-sprites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why you should be using PHP</title>
		<link>http://tomsbigbox.com/why-you-should-be-using-php/</link>
		<comments>http://tomsbigbox.com/why-you-should-be-using-php/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 19:46:38 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://tomsbigbox.com/?p=576</guid>
		<description><![CDATA[I would like to introduce you to PHP. If you aren't already using PHP on your site, you should be! PHP is an easy way of generating dynamic content and interacting with all sorts of things, from the server, to the user, right back to databases. In past tutorials I've used PHP without first explaining [...]]]></description>
			<content:encoded><![CDATA[<p>I would like to introduce you to PHP. If you aren't already using PHP on your site, you should be! PHP is an easy way of generating dynamic content and interacting with all sorts of things, from the server, to the user, right back to databases. In past tutorials I've used PHP without first explaining why, in this article I'll explain why it's really great. It's important to note that you need PHP installed before you start using it, you can do so by either using a server (the easiest, but more expensive way), or by searching Google for "install PHP on OSX/Windows". </p>
<p>With CSS we can use a small bit of code to link our HTML pages to our style sheets - the meta tag. Well what if you're building a site and you want the same header on every page, without PHP you would just have to copy and paste the same code onto every page, and imagine if you had 100 pages when you decided you wanted to change a tiny detail. That would be a problem. But we can solve this problem with PHP using a simple <span class="code-small">require()</span> function. For example...</p>
<div class="code">
&lt;?php<br />
&nbsp;&nbsp;require("header.php");<br />
?&gt;
</div>
<p>The above code simply goes and grabs the file in between the quotations and replaces itself with it's contents. This can be really useful, and means that you only have to edit the one file to see your changes reflected across your site. But PHP is so much more than just something you can use to insert files, you can use it to do (nearly) anything!</p>
<p>PHP was originally created to produce dynamic content, the PHP code tells the server to do something and returns a HTML value. So say for instance, you may have once visited a site that was displaying the current time or/and date. There are many ways to do this, but one of the easiest, is with PHP. Let me show you.</p>
<div class="code">
&lt;?php<br />
&nbsp;&nbsp;echo gmdate('d-m-y / H:i');<br />
?&gt;
</div>
<p>Would output something like this: 31-01-10 / 19:23. The "echo" command basically produces text and sends it to the browser for rendering, while the <span class="code-small">gmdate()</span> function gets the current GMT time. The code it encased with the two <span class="code-small">&lt;?php  ?&gt;</span> markers, which tell the server that it should look out for PHP to render. PHP is a powerful language which you can use for a plethora of solutions. My favorite part of PHP is the community. If you want to do something in PHP you will be able to find the solution easily. Furthermore it seems to me like the is a function for everything - want to know when a file was created? There's <span class="code-small">mktime()</span> for that. Want to capitalize the first letter of a string? There's <span class="code-small">ucwords()</span> for that! Want to make a cup of coffee? There's <span class="code-small">makeMeCoffee()</span>! Well that last one may have been a bit of wishful thinking, but there really are a huge amount of functions that you can utilize off the shelf.</p>
<p>PHP is also really useful for security. If you've got a password that you want to encrypt, you can use the <span class="code-small">md5()</span> function, which creates an incredibly secure hash which is nearly impossible to decrypt. Moreover, if you want to ensure only certain visitors can access certain pages, you can use <span class="code-small">$_SESSION[]</span> variables to store bits of information accessible by any page of your site. Lastly, PHP can be used for databases, there is a detailed explanation of this over in <a href="http://tomsbigbox.com/building-a-cms-part-1/">my tutorial</a> on building a CMS, and I believe it is one of the most useful features of PHP.</p>
<p>PHP is a really powerful programming language, and I recommend you learn it. A site I found very useful when I was starting off was <a href="http://tizag.com/phpT">Tizag</a>, which will walk you through the basics. And when you're trying to solve a problem, sooner or later you'll end up over at <a href="http://php.net">PHP.net</a> which is a fantastic resource, despite the slightly 90s look and feel to the site <img src='http://tomsbigbox.com/core/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>I use PHP all the time, as do solutions such as Wordpress and Facebook. It makes my life so much easier and opens up doors to things that I could never achieve without it. I urge you to learn it, and as always the best way to learn is through using the language, so go ahead and create something cool using PHP! </p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://tomsbigbox.com/why-you-should-be-using-php/&amp;title=Why+you+should+be+using+PHP" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Why+you+should+be+using+PHP+-+http://tomsbigbox.com/why-you-should-be-using-php/+(via+@tom_walters)" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://tomsbigbox.com/why-you-should-be-using-php/&amp;title=Why+you+should+be+using+PHP" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://tomsbigbox.com/why-you-should-be-using-php/&amp;title=Why+you+should+be+using+PHP" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://tomsbigbox.com/why-you-should-be-using-php/&amp;title=Why+you+should+be+using+PHP" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://tomsbigbox.com/why-you-should-be-using-php/&amp;title=Why+you+should+be+using+PHP" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://tomsbigbox.com/why-you-should-be-using-php/&amp;t=Why+you+should+be+using+PHP" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://tomsbigbox.com/why-you-should-be-using-php/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://tomsbigbox.com/why-you-should-be-using-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Resizing images &#8211; the right way</title>
		<link>http://tomsbigbox.com/resizing-images-the-right-way/</link>
		<comments>http://tomsbigbox.com/resizing-images-the-right-way/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 19:14:56 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[optimize]]></category>
		<category><![CDATA[resize]]></category>
		<category><![CDATA[resizing]]></category>

		<guid isPermaLink="false">http://tomsbigbox.com/?p=566</guid>
		<description><![CDATA[Something that is very important on the web today is how fast our websites load, and alongside script optimization and other fancy tricks, images are a large part of our sites, and so it's important that they are optimized for the web. However what if we don't have control over the size of the images, [...]]]></description>
			<content:encoded><![CDATA[<p>Something that is very important on the web today is how fast our websites load, and alongside script optimization and other fancy tricks, images are a large part of our sites, and so it's important that they are optimized for the web. However what if we don't have control over the size of the images, and we don't have a program to re-size them? Well we have to do something else. I am talking in terms of a CMS, but the techniques I am about to show you can be used anywhere to create many different sized images from one image.</p>
<p>The first method works but is a little clumsy, take a look.</p>
<div class="code">
img { max-width:800px; }
</div>
<p>The code above would be placed in your CMS file and stops all images from getting bigger than a margin of 800px. Yes it works, but there are a number of problems with it. If I had a huge image, say 5000 x 5000px, then this method of resizing would mean my image would take a long time to load, this is because the browser still goes to get the huge image before resizing it - this is bad! I strongly recommend you don't use this method, but instead explore other options.</p>
<p>Well first off for images that are integral to your site, you should be able to re-size them using your original design, but for images that have yet to be uploaded and put on display on your site, I suggest the use of JavaScript. When I first began learning how to re-size images with JavaScript I believed that it was the only way, you see to do so you have to use a large amount of code and it requires you to have a good knowledge of JavaScript. However a very kind man who goes by the name of Tim McDaniels wrote a rather lovely script that we can use for resizing images. The script is called TimThumb and is really easy to use.</p>
<p>Head on over to <a href="http://code.google.com/p/timthumb/">Google Code</a> and download it (or you could just use the URL provided by Google). Once you have uploaded it onto your own server you can start using it straight away. I find it really useful for use in blogs and as I mentioned above, in a CMS. So when you are ready you can implement it's functionality by replacing the URL of your image with the URL of the script and a bit of other info  - see below.</p>
<div class="code">
&lt;img src="timthumb.php?src=my-image.jpg&#038;width=100&#038;height=100&#038;zc=1" alt=""&gt;
</div>
<p>The above code tells the script where your image is, the dimensions you would like it re-sized to, and that you would like crop the image while zooming - that's the little 'zc' parameter by the way. The way in which the script operates is this, it takes the image and all the information with it, and then creates a cache folder to store the image. It then creates the image and returns the URL of the resized image to be used in the 'src' attribute. The script offers some customization, for example you can change the directory the script saves the images to, so that they can be used again. Just see the documentation for details.</p>
<p>And that's it really! I just wanted to share that lovely script with you and ward you off resizing using CSS. Users will appreciate the shorted loading time of pages and I can assure you Google will too! </p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://tomsbigbox.com/resizing-images-the-right-way/&amp;title=Resizing+images+-+the+right+way" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Resizing+images+-+the+right+way+-+http://tomsbigbox.com/resizing-images-the-right-way/+(via+@tom_walters)" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://tomsbigbox.com/resizing-images-the-right-way/&amp;title=Resizing+images+-+the+right+way" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://tomsbigbox.com/resizing-images-the-right-way/&amp;title=Resizing+images+-+the+right+way" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://tomsbigbox.com/resizing-images-the-right-way/&amp;title=Resizing+images+-+the+right+way" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://tomsbigbox.com/resizing-images-the-right-way/&amp;title=Resizing+images+-+the+right+way" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://tomsbigbox.com/resizing-images-the-right-way/&amp;t=Resizing+images+-+the+right+way" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://tomsbigbox.com/resizing-images-the-right-way/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://tomsbigbox.com/resizing-images-the-right-way/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Building a CMS Part 3</title>
		<link>http://tomsbigbox.com/building-a-cms-part-3/</link>
		<comments>http://tomsbigbox.com/building-a-cms-part-3/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 18:10:57 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Building a CMS]]></category>
		<category><![CDATA[CMS]]></category>
		<category><![CDATA[Content]]></category>
		<category><![CDATA[Content Management System]]></category>
		<category><![CDATA[How to]]></category>

		<guid isPermaLink="false">http://tomsbigbox.com/?p=543</guid>
		<description><![CDATA[Note: I must apologist for the lateness and length of this article - I got caught up with other things, sorry and enjoy!  
And so we've arrived at the last in this set of tutorials; if you've been following along, by now you should have a user system as well as a basic CMS. [...]]]></description>
			<content:encoded><![CDATA[<p><em>Note: I must apologist for the lateness and length of this article - I got caught up with other things, sorry and enjoy! <img src='http://tomsbigbox.com/core/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </em></p>
<p>And so we've arrived at the last in this set of tutorials; if you've been following along, by now you should have a user system as well as a basic CMS. At the moment we have a very strong base for our CMS but there are still a few things that we need to talk about. Firstly style. I like to think of myself as a stylish kind of guy <img src='http://tomsbigbox.com/core/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  and I like to keep my work stylish to, so now were are going to implement some CSS to make our CMS at least moderately aesthetically pleasing. We are going to keep it simple and if you would like to change it feel free to do so, this is just a suggestion; in fact if you are intending on integrating this CMS into your own site, why not give it the same look? </p>
<p>Now before we get to the CSS you will need to copy the tiny bit of code below between your <span class="code-small">&lt;head&gt;</span> and <span class="code-small">&lt;/head&gt;</span> tags of every page that you want styled.</p>
<div class="code">&lt;link href="style.css" rel="stylesheet" media="screen"/&gt;</div>
<p>That's the code for linking the CSS to the page. Right then let's just get this CSS out of the way. So go ahead and create a new file called <span class="code-small">style.css</span> and paste in the following code.</p>
<div id="cb1" class="code-bubble">
<p>Show code...</p>
<div id="cbi1" class="code-bubble-inside">
* {<br />
	margin: 0px;<br />
	padding: 0px;<br />
}</p>
<p>/*---Login Page---*/</p>
<p>#login {<br />
	width:500px;<br />
	height:250px;<br />
	background-color:#fff;<br />
	-moz-border-radius: 10px;<br />
	-webkit-border-radius:10px;<br />
	display: block;<br />
	top:50%;<br />
	left:50%;<br />
	margin-left:-250px;<br />
	margin-top: -125px;<br />
	position: absolute;<br />
}</p>
<p>input.textbox, input.edit {<br />
	width:450px;<br />
	margin:5px 24px 0px 24px;<br />
	border:1px solid #cfcfcf;<br />
	-moz-border-radius:5px;<br />
	-webkit-border-radius:5px;<br />
	height:35px;<br />
	font-family: Georgia, "Times New Roman", Times, serif;<br />
	color: #7f7f7f;<br />
	padding:5px;<br />
	font-size: 20px;<br />
}</p>
<p>input.submit, input.editbutton, #submit {<br />
	width:460px;<br />
	height:45px;<br />
	cursor:pointer;<br />
	font-family:Calibri, Arial, Helvetica, sans-serif;<br />
	font-size:19px;<br />
	color:#FFF;<br />
	background-color:#bfbfbf;<br />
	border:#cfcfcf;<br />
	border-style:solid;<br />
	border-width:1px;<br />
	padding:3px 4px;<br />
	-webkit-border-radius:3px;<br />
	-moz-border-radius:3px;<br />
	margin:5px 24px 0;<br />
}</p>
<p>input.submit:hover, input.editbutton:hover, #submit:hover {<br />
	background-color:#cfcfcf;<br />
}</p>
<p>label {<br />
	font-family:Georgia, "Times New Roman", Times, serif;<br />
	font-size:18px;<br />
	color:#9f9f9f;<br />
	padding:5px 24px 0;<br />
}</p>
<p>/*---Index Page---*/</p>
<p>h1 {<br />
	font-family:Georgia, "Times New Roman", Times, serif;<br />
	font-size: 24px;<br />
	color:#777;<br />
	padding:5px;<br />
}</p>
<p>ul.pagelist1 {<br />
	background-color: #cfcfcf;<br />
	-moz-border-radius: 5px;<br />
	-webkit-border-radius: 5px;<br />
	padding:10px;<br />
	width:680px;<br />
}</p>
<p>li.pageoption {<br />
	background-color: #afafaf;<br />
	width:640px;<br />
	padding:10px;<br />
	-moz-border-radius: 5px;<br />
	-webkit-border-radius:5px;<br />
	display: block;<br />
	margin:10px;<br />
}</p>
<p>li.pageoption:hover {<br />
	background-color: #efefef;<br />
}</p>
<p>a.pagelink {<br />
	font-family:Calibri, Arial, Helvetica, sans-serif;<br />
	color:#000;<br />
	text-decoration: none;<br />
}</p>
<p>span.floatright {<br />
	float: right;<br />
}</p>
<p>/*---Edit Page---*/</p>
<p>textarea.edit {<br />
	width:450px;<br />
	margin:5px 24px 0px 24px;<br />
	border:1px solid #cfcfcf;<br />
	-moz-border-radius:5px;<br />
	-webkit-border-radius:5px;<br />
	height:200px;<br />
	font-family: Calibri, Arial, Helvetica, sans-serif;<br />
	color: #000;<br />
	padding:5px;<br />
	font-size: 20px;<br />
}</p>
<p>input.edit {<br />
	width:450px;<br />
	margin:5px 24px 0px 24px;<br />
	border:1px solid #cfcfcf;<br />
	-moz-border-radius:5px;<br />
	-webkit-border-radius:5px;<br />
	height:35px;<br />
	font-family: Calibri, Arial, Helvetica, sans-serif;<br />
	color: #000;<br />
	padding:5px;<br />
	font-size: 20px;<br />
}</p>
<p>/*---Add New Page, Page---*/</p>
<p>#title {<br />
	width:450px;<br />
	margin:5px 24px 0px 24px;<br />
	border:1px solid #cfcfcf;<br />
	-moz-border-radius:5px;<br />
	-webkit-border-radius:5px;<br />
	height:35px;<br />
	font-family: Georgia, "Times New Roman", Times, serif;<br />
	color: #7f7f7f;<br />
	padding:5px;<br />
	font-size: 20px;<br />
}</p>
<p>#url {<br />
	width:170px;<br />
	margin:5px 0px 0px 0px;<br />
	border:1px solid #cfcfcf;<br />
	-moz-border-radius:5px;<br />
	-webkit-border-radius:5px;<br />
	height:35px;<br />
	font-family: Georgia, "Times New Roman", Times, serif;<br />
	color: #7f7f7f;<br />
	padding:5px;<br />
	font-size: 20px;<br />
}</p>
<p>.infomsg {<br />
	display:block;<br />
	background-color:#fff9d7;<br />
	border-width:1px;<br />
	border-color:#e2c822;<br />
	border-style:solid;<br />
	width:445px;<br />
	color:#000;<br />
	font-family:Calibri, Arial, Helvetica, sans-serif;<br />
	font-size:16px;<br />
	text-align:center;<br />
	margin:10px 0px 10px 20px;<br />
	padding:10px;<br />
}</p>
<p>/*---Signup Page---*/</p>
<p>#signupform input {<br />
	width:450px;<br />
	margin:5px 24px 0px 24px;<br />
	border:1px solid #cfcfcf;<br />
	-moz-border-radius:5px;<br />
	-webkit-border-radius:5px;<br />
	height:35px;<br />
	font-family: Georgia, "Times New Roman", Times, serif;<br />
	color: #7f7f7f;<br />
	padding:5px;<br />
	font-size: 20px;<br />
}
</p></div>
</div>
<p>Now that is quite a lot of code indeed. But really all it does is make our site more workable. Next I would like to talk about extending the functionality of this CMS. I am going to be using real world examples that I recently used on a client's site, so they should be relevant.</p>
<p>So let's take a step back and look at what we have done. We have created a CMS that allows users to signup and login. From the index page they can create new pages and edit existing pages. The changes that they make in a friendly noob-based environment as I like to call it, will be reflected on the live site. That's quite impressive. Visit any one of the site's pages and you are viewing dynamically generated content. This approach is excellent for us web designers, and the only people that love it more than we do, are the clients. Think about it, if you had a site that was supposed to display the latest technology news and you had to go through your web designer first, it would take some time, therefore making your site out of date quickly. Clients love the idea that they can easily edit and update the information on their site without needing to know anything technical. But wait! Before you go pitching to a client with the CMS above there are a few things you should know. If I bought a website with the CMS above I wouldn't be happy. Why not? Well because there are some things missing. Firstly think about the navigation in the backend. There is none! Moreover how do I add images and links? Remember I know nothing about code. To overcome such difficulties that you will inevitably face I recommend you work on their solutions.</p>
<p>When the client came to me and asked for a myriad of features I had a number of problems to sort out. Many of the problems I faced were solved using solutions listed in this series of tutorials. But instead of providing you with the exact solutions to some of them, I urge you to try to figure them out for yourself. Let's look at the image and link adding feature for example. Realistically it can be tackled head on very easily. What would we need? Well, we want the URL of the page to be linked to, and what the user wants to display as the link text. Then all we have to do is generate a bit of HTML with that information in it. Go ahead and try and combat the problem. You will need a form and a tip - I used some really simple Javascript to generate the HTML. Once the code is generated the user need only paste it into the editing field of the page.</p>
<p>Now let's discuss an advanced security feature. You could use this for a client who was particularly wary of being hacked. Look at the code below.</p>
<div class="code">
       $ip=$_SERVER['REMOTE_ADDR'];</p>
<p>               if(!filter_var($ip, FILTER_VALIDATE_IP))<br />
               {<br />
                       throw new InvalidArgumentException("IP is not valid");<br />
               }</p>
<p>               $response=@file_get_contents('http://www.netip.de/search?query='.$ip);<br />
               if (empty($response))<br />
               {<br />
                       throw new InvalidArgumentException("Error contacting Geo-IP-Server");<br />
               }</p>
<p>               $patterns=array();<br />
               $patterns["domain"] = '#Domain: (.*?)&nbsp;#i';<br />
               $patterns["country"] = '#Country: (.*?)&nbsp;#i';<br />
               $patterns["town"] = '#City: (.*?)<br#i';</p>
<p>               $ipInfo=array();</p>
<p>               foreach ($patterns as $key => $pattern)<br />
               {<br />
                       $ipInfo[$key] = preg_match($pattern,$response,$value) &#038;& !empty($value[1]) ? $value[1] : 'not found';<br />
               }</p>
</div>
<p>The code above gets the user's IP address and then uses a free service to retrieve some information. With that information you could compare the country the user is in to the country they usually login from, and if it differs ask them to provide some more information like an extra security code. Clients will be impressed by this sort of stuff, especially if you can make it work well and make it slick.</p>
<p>Lastly I want to talk about user details. This is a really simple subject area, but it is important. If your user signs up and accidentally spells their name wrong then they won't be able to change it, and that really isn't great. If you think about it to implement a profile editing page would be easy. I'll take you through the theory. You would create a new page and add a form not dissimilar to that of the form used to signup. You would then populate the form with <span class="code-small">$_SESSION</span> variables, leaving the user free to edit them. When the submit button is clicked the database is updated and everything is great!</p>
<p>The things listed above may seem simple, but adding polish to a site's CMS is a good idea and a requirement if you are working on one for a client. In the end my client's CMS turned into a very powerful one, it looks lovely with a load of fancy icons and animations. I was able to work with the client and help them to achieve their goals because at the end of the day the CMS that I built - much like the one above - was extensible and flexible. </p>
<p>I hope you have enjoyed this series, I have worked hard to iron out any kinks in the code, but if you find one leave a comment below - I'll be most grateful. The same goes for any issues you have with the tutorial. If you have any questions at all, feel free to ask away below. </p>
<p>Now that's over, time for a coffee me thinks!</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-bg-enjoy">
<ul class="socials">
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://tomsbigbox.com/building-a-cms-part-3/&amp;title=Building+a+CMS+Part+3" rel="nofollow" class="external" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Building+a+CMS+Part+3+-+http://bit.ly/8ZvnXv+(via+@tom_walters)" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://del.icio.us/post?url=http://tomsbigbox.com/building-a-cms-part-3/&amp;title=Building+a+CMS+Part+3" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://tomsbigbox.com/building-a-cms-part-3/&amp;title=Building+a+CMS+Part+3" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
		<li class="sexy-reddit">
			<a href="http://reddit.com/submit?url=http://tomsbigbox.com/building-a-cms-part-3/&amp;title=Building+a+CMS+Part+3" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a>
		</li>
		<li class="sexy-mixx">
			<a href="http://www.mixx.com/submit?page_url=http://tomsbigbox.com/building-a-cms-part-3/&amp;title=Building+a+CMS+Part+3" rel="nofollow" class="external" title="Share this on Mixx">Share this on Mixx</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://tomsbigbox.com/building-a-cms-part-3/&amp;t=Building+a+CMS+Part+3" rel="nofollow" class="external" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-comfeed">
			<a href="http://tomsbigbox.com/building-a-cms-part-3/feed" rel="nofollow" class="external" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://tomsbigbox.com/building-a-cms-part-3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
