Your Ad Here

Site Launch: Cobblestone and Clover Teas (Updated)

Cobblestone and Clover Teas is a gourmet loose leaf tea retailer located in Arlington Heights, IL. They provide hand-selected and tasted gourmet loose leaf teas at a price affordable to even the rookie tea drinker. If you enjoy a cup of tea now and then, gourmet loose leaf tea is an amazing treat. It has so much more flavor and character than you could ever hope for in a bag of Lipton black tea.

The Cobblestone and Clover site is a custom-designed online shopping experience. Every element of the site was developed from scratch with the client and customer in mind. Please, treat yourself to a cup today. http://www.ccteaz.com

CCteaz

Rate this:
2.9

Tags:

Digg This Story

Site Launch: Octagon Spa & Salon

Dan has been very busy over the past few months working on a few new websites. The first of these to be released is the redesign of Octagon Spa & Salon, Phase 1 of 3. Octagon is a high-end, personal wellness spa/salon located in Gurnee, IL. We have partnered with Octagon to bring their internal and external technology infrastructure into, shall we say, this century.

Dan gets all of the credit on this one, I have been buried in other projects (wah, wah, wah). Stay tuned for another website launch, coming in the next two days.

Octagon Logo

Rate this:
2.9

Tags:

Digg This Story

Creating a website template you can work with

Everyone wants a site that looks good, loads fast, and is easy to work with. It really isn’t as hard as one might think, as long as you follow some of the basic rules of design that you would with any development project. With this, I’m going to assume you’ll be writing a PHP based site, but the same principles can be applied to another server side language.


If all or most of your pages are going to have the same header or footer, why not separate it out? This way, you only have to update links or other changes once. a simple <? include “header.php”; ?> can save you headaches throughout development. If you decide later on down the road to change it, you only need to edit one file. The best part about this method, is that search engines don’t know that your content is generated on the fly, so it will index the full page. I also like to make a links.php file and a footer.php file. The links file lets you make sure that your link bar up top is always up to date. I’ve seen plenty of (FrontPage) sites where it seems like every single page has a different set of links. The footer file is great for all of your static copyright and privacy policy links. This won’t change much, but it keeps your template nice and clean. a good template could look as simple as this:

<? include "header.php";  ?>
<? include "includes/standard_functions.php";  ?>
<div id = "linkbar">
  <? include "links.php"; ?>
</div>
<div id =  "content">
  <!-- content -->
</div>
<? include "footer.php" ?>

The <html> and <head> and <title> tags can all be housed in your header.php file. All pages should have all the same information in those tags anyways, so it will save you a step. All of your stylesheets can be included from here as well. If you want to have each page with a different browser title, there is a very easy modification you can implement. Make the top of your template file look like this:

$page_title = "This page title
<? include "header.php" ?>

Then in the header.php file, change the <title> tag to this:

 <title><? echo $page_title; ?></title>

Nice, easy, simple, clean. I’ve used this or a similar method on many sites.

In the standard_functions.php file, you can pretty much put whatever you want. If you need to connect to a sql database, you can include another file from there, you can use it to declare variables, or use it to define functions that will be used throughout your site (rotating sponsor link on the sidebar for example).

The links and the content div shouldn’t need any styling in the page itself (that’s what stylesheets are for!), so even if you COMPLETELY change the look of your site, you’ll be able to do so with the editing of only the stylesheet file. Keep in mind, that the html code itself is not used to define the look and style of the site; html should be used to create a shell, and to enumerate content.

The footer is where you are going to be including the </body> </html> tags, and thus any javascript that needs to be run site-wide (such as google analytics). It’s always good practice to include javascript code directly before the </body> tag, to reduce perceived loading time. (Browsers will stop loading elements until the script has finished excecuting).

Your template might need some tweaking from the basic outline shown above, and here are some alternate options for you to start playing with:

A more stylized content area:

$page_title = "template";
<? include "header.php";  ?>
<? include "includes/standard_functions.php";  ?>
<div id = "linkbar">
  <? include "links.php"; ?>
</div>
<div id = "wrapper">
  <div id =  "content">
    <!-- content -->
  </div>
</div>
<? include "footer.php" ?>

A float template:

$page_title = "template";
<? include "header.php";  ?>
<? include "includes/standard_functions.php";  ?> 

<div id = "wrapper">

  <div id = "linkbar">
    <? include "links.php"; ?>
  </div>

  <div id =  "content">
    <!-- content -->
  </div>

  <div style = "clear:both;">

</div>
<? include "footer.php" ?>

More elaborate (keep in mind, having the four divs that are in the sidebar in the main template reduces the ability to change it sitewide later… this is really just to show a possibility:

$page_title = "template";
<? include "header.php";  ?>
<? include "includes/standard_functions.php";  ?> 

<div id = "wrapper">

  <div id = "sidebar">
    <div id = "linkbar">
      <? include "links.php"; ?>
    </div>
    <div id = "categories">
      <? include "categories.php"; ?>
    </div>
    <div id = "sponsors">
      <? include "sponsors.php"; ?>
    </div>
    <div id = "current_charity">
      <? include "current_charity.php"; ?>
    </div>
  </div>

  <div id =  "content">
    <!-- content -->
  </div>

  <div style = "clear:both;">

</div>
<? include "footer.php" ?>
Rate this:
2.9

Tags:, , , , ,

Digg This Story

Club 390

This post has been removed because my safety has been threatened. I hope those involved can live with themselves, because society shouldn’t.

Rate this:
2.9

Digg This Story

On the fly CSS and more

Firebug. Oh Glorious Firebug. You give me a reason to love Firefox, despite its many horrible memory leaks. You give me hope that there are still people out there looking to help out designers/coders. You give me a reason to install extensions. You save me enough time and energy that I am able to write this post. Thank you Firebug, for being a friend.

Firebug is an extention for Mozilla Firefox that is designed to help web developers debug their code on the fly, as well as provide invaluable information as to the size, structure, and overall composition of a website you are developing. I’ve found some of its superfluous features are actually more useful in the real developers world than its actual intended purpose. Here are a few of my favorite things about the plugin:

1) On the fly CSS editing.

I discovered this on accident the other day, and have used it probably 50 times in the last week. Simply pull up your firebug, click CSS, and you can disable, change, and add CSS properties on the fly, and watch the browser render them in real time. Amazing. Great for finding just the right amount of padding for your text, or where the heck to put that “clear:float” property. You can use it to try out some different text/background colors, or see if ‘border:1px solid black” really does make that sidebar look cleaner. You can inspect elements, and then see what and where CSS is applied to them, and edit it from there as well. Overall… it pretty much makes web design a breeze. Here’s a before and after shot.


2) The Yahoo! YSlow plugin. <– That’s a link. I swear it.

You’ll have to install firebug first. It’s a firefox plugin for firebug. It does not work stand-alone. It, however, does wonders for your Firefox installation.

Yslow will do a fairly comprehensive 13 point inspection of your webpage in order to help determine your bottlenecks. If you find the slowest parts of your site, and how to fix them… don’t you think thats a good step to making it faster? Here’s my main page:

Performance Grade: C (71)
---------------------------
A	1. Make fewer HTTP requests
F	2. Use a CDN
F	3. Add an Expires header
B	4. Gzip components
A	5. Put CSS at the top
A	6. Put JS at the bottom
A	7. Avoid CSS expressions
n/a	8. Make JS and CSS external
Only consider this if your property is a common user home page.
A	9. Reduce DNS lookups
A	10. Minify JS
A	11. Avoid redirects
A	12. Remove duplicate scripts
F	13. Configure ETags

Overall, it scores me at a 71% (C). For my page, that’s more that okay. I don’t need eTags, and I certainly don’t need to host my 3 images on another server. I should add an expires header to what I can to ensure proper caching. I’ll get on that.

Also, it will inspect all the elements on your page, and give them to you in one nice neat little readout. Here’s my homepage:

Empty Cache	Primed Cache
------------------------------------------------
1.3K	1	1.3K	1       HTML document
2.4K	1	0.0K	1	Style Sheet File
6.3K	1	0.0K	0	JavaScript File
115.5K	3	0.0K	3	Images
1.2K	4	0.0K	4	CSS Images
10              9               HTTP Requests
126.9K	        1.3K   Total size

Not bad… I’m sure I could cut the image sizes down a bit, but even on a dial-up connection, it’ll load in about 20 seconds. The good news is, that once the page is cached, there isn’t much to refresh for subsequent visits. cool.

3) Real-time Javascript debugging

Now, this is really what firebug was designed for from the beginning. I just happen to not use javascript much, therefore finding the previous uses coming more in handy. I’m not going to rewrite the documentation for firebug, but I’ll give you the basic idea.

You can insert breaks into your javascript to help see where and when something is going wrong. Couple this with the ability to watch variables real-time (while your javscript is paused), and you’ll feel like you have the control of quickbasic 4.5 pro… (lost?) Visual Basic 6.0? Still too old? Okay… the control of a 2007 Shelby. *Sigh*. A lot of control. A really lot of control.

4) Whisper quiet debugging

There are more methods than I’m going to list (again, read the documentation), but the most useful for me is the
console.log() method. it allows you to output information to the firebug console without having to use annoying “alert()” windows or outputting text that will impact your site format. You could even put little easter eggs on your site for those who use firebug….

Rate this:
2.9

Tags:, , ,

Digg This Story

Pages (13): « First ... « 7 8 9 [10] 11 12 13 »