Visit My Blog:
thrandur.net

Google



E-mail
First Name (optional)

Then

Don't worry -- your e-mail address is totally secure.
I promise to use it only to send you Digital Dream.




Add to My Yahoo!
Add to My MSN
Add to Google


Security-
Camera-
Direct.com

Security Camera Systems
Hidden Security Cameras
Home Security
Infrared Security Cameras
PTZ Security Systems


Digital Photo Webs:

4x4 OffRoads

Art Iceland

Boat2Fish.Net

4x4 Off Roads
NEW! 4x4 Off Roads eBook
How To TOUR Your 4x4
And Enjoy Off Road 4 Wheeling

Digital Photography Secrets
Digital Photography Secrets

 

Make Money Online With Your Digital Camera!

Make Money Online With Your Digital Camera
















SBI! Includes - Step By Step


 

I think that the SBI! Includes is one of my favorite parts of SBI! At the same time I have a feeling that it is underutilized by many web masters. It is simply a major time saver for me.

SBI! Includes is the SBI! version of SSI. SSI stands for Server Side Includes and basically works on the server level to insert snippets of HTML code into the final page that is rendered on the users browser. This is extremely helpful in making maintenance easy and tidy.

I try and think about SBI! Includes as a set of building blocks that I can modify myself.

Here is the simple step by step approach I would use for a new site:

Step 1 - Make a draft of the L&F you want using tables with the graphics and everything leaving space for the navbar on the left.

 

    Logo  - Top image

 

 

Menu /
Navigation
 

 

 

 

 

 

 

Main content area Newsletter
signup
Copyright - Footer

I usually plan my sites similar to the table above. Assign background colors to each section and add graphics. Using tables is considerably easier to do than full CSS design.

At this time you can do the design in any tool you find comfortable working with. From a pencil drawing on a napkin to DreamWeaver or FrontPage that I use. Consider this a draft and treat it like that.

In the following article I will use my 4x4OffRoads.com web site as a real life example.

4x4Offroads.com

You can use the following HTML as a starting point:

<table border="1" width="480" id="table2" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3">&nbsp;<p>&nbsp;&nbsp;&nbsp; Logo&nbsp; - Top image</p>
<p>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;<p>Menu / <br>
Navigation<br>
&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</td>
<td>Main content area</td>
<td>Newsletter<br>
signup</td>
</tr>
<tr>
<td colspan="3">Copyright - Footer</td>
</tr>
</table>

 

 

Step 2 - First include file should be the Header with the logo and top image.

Choose a name that is easy to remember. No need to think about keywords since this is only for the server to know. The file extension should be .shtml - and note that the file name can not be the same as a page on your site (or in fact a name that is reserved by SBI! like navbar, head and footer).

<link rel="shortcut icon" href="image-files/favicon.gif" >
<SCRIPT LANGUAGE="JavaScript">
setTimeout("if (window != top) top.location.href = location.href;",3000);
</SCRIPT>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" width="725" bgcolor="#FFFFFF" id="table1">
<tr>
<TD valign="top" height="118">
&nbsp;
<img border="0" src="image-files/4x4OffRoads-logo.gif" width="383" height="80" align="left" alt="4x4OffRoads - Practical Off Roads Information">
<img border="0" src="image-files/mountaintop.JPG" width="305" height="80" align="right" alt="Mountaintop"></span></FONT><p>&nbsp;</p>
<br>
&nbsp;</TD>
</tr>
</TABLE>

This is the HTML for the 4x4OffRoads.com site. I name it 4x4-header.shtml

I wrap the content within TABLE tags. The sites Look and Feel is based on standard SiteSell templates. You could start with your own or copy and modify the above code.

There are a few tricks in this short snippet. If you are not sure what they are for you can always add the lines later.

  • The first line loads a favicon (you must make this file and load it separately).
  • Next comes a JavaScript that puts the page in the primary position (useful for image search results from Google and Yahoo!).

 

i) A special include file for the left hand column - where you include the NAVBAR and can add other elements at will.

 <DIV id="Layer1" style="position:absolute; width:130px; z-index:1; visibility: visible; top: 172px; left: 2px;; height: 0">
<p align="center">
<BR>
<<NAVBAR>>
<br>
<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxxxxxxxxxxx674";
google_ad_width = 120;
google_ad_height = 90;
google_ad_format = "120x90_0ads_al_s";
google_ad_channel ="6487164510";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0000FF";
google_color_url = "000000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</p>

<BR>
</DIV>

Here is my left-column.shtml

This can work almost unchanged for most sites. I find it convenient to use the NAVBAR. If you want to change it for another method of navigation it is easy to make a change in this single file. This is also a convenient place to put things like the AdSense Link unit or Newsletter signup forms. I would not put an AdSense skyscraper here since it would count as the top first ads from Google and therefore be the most expensive - this is bad since skyscrapers get so few clicks and would lower my income.

 

II) An optional right hand column - where you can have newsletter signups and hot items etc.

<form action="http://www.4x4offroads.com/cgi-bin/mailout/mailmgr.cgi" method=post>
<font size="3" face="Tahoma">
<input type="hidden" name="list_id" value="1973">
<input type="hidden" name="action" value="subscribe">
</font>
<TABLE cellpadding="5" cellspacing="0" border="0" bgcolor="#FFFFFF" id="table27" >
<TR>
<TD valign="top" align="center">
<font face="Tahoma" size="2">
<img border="1" src="image-files/4x4NewsletterCover.jpg" width="120" height="169" alt="4x4 Newsletter"></font><p>
<B><font size="2" face="Tahoma">E-mail Address</font></B><font size="2" face="Tahoma"><br>
</font><font size="3" face="Tahoma" color="#FFFFFF">
<INPUT name="email" type="TEXT" size="12"></font><font size="2" face="Tahoma"><BR>
</font><font size="2">
<B><FONT face="Tahoma">First Name (optional)</FONT></B></font><font size="2" face="Tahoma">
<br>
</font><font size="3" face="Tahoma" color="#FFFFFF">
<INPUT name="name" type="TEXT" size="12"></font><font face="Tahoma" size="2"><BR>
<B> Then</B><BR>
</font><font size="3" face="Tahoma" color="#FFFFFF">
<INPUT type="SUBMIT" value="Subscribe" name="SUBMIT"></font><font face="Tahoma" size="2"><BR>
</font><font face="Tahoma" size="1">Don't worry - your e-mail address is totally secure.<BR>
I promise to use it <B>only</B> to send you 4x4 Newsletter.</font><font face="Tahoma" size="2"><br>
&nbsp;</font></TD></TR></TABLE>
</form>
<br>
<font face="Tahoma" size="2">
<a href="hot-item-1.html">Hot Item 1</a>
<a href="hot-item-2.html">Hot Item 2</a>
<a href="hot-item-3.html">Hot Item 3</a>
</font>

A fictional right-column.shtml

You get the html for your newsletter signup from the block builder. Adjust the hot items text and make the links to your own preferred pages.

 

iii) A Footer with the copyright and optionally links to major sections etc.

<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" width="725" id="table1" bgcolor="#FFFFFF">
<tr>
<TD valign="top" colspan="3" height="25">
<FONT face="Tahoma">
<span style="font-size:10.0pt;font-family:Tahoma"><hr width="100%">
<p><font size="2" color="#000080">&nbsp;Copyright © 2003-2006 - 4x4OffRoads.com - <a href="privacy-statement.html">Privacy Statement</a>
- <a href="Contact-Thrandur.html">Contact Us</a><br>
&nbsp;</font></span></FONT></TD>
</tr>
</TABLE>

Here is the ultra simple 4x4-footer.shtml I use. Not much to comment on here except that the table width is the same as other parts of the site, like the header table and the main content table.

 

Step 3 - Plan other possibilities like Google AdSense include blocks - so you can make global changes to the AdSense L&F.

If you have other components on your site that are used throughout like AdSense making include files can help. Then you can modify color combinations, borders and layout in a single place. This can mean significant improvements in the bottom line.

A separate include file for JavaScript menu system or anything else you can imagine may be worth your while.

 

Step 4 - Finally make a template using all these include files and use that as the starting point for all pages.

<HTML>
<HEAD>
...
</HEAD>
<BODY ...>

<<4x4-header.shtml>>

<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" width="725" bgcolor="#FFFFFF">
<tr>
<TD valign="top" bgcolor="#FFFFFF" width="180">
<<left-column.shtml>>
...

</TABLE>

<<4x4-footer.shtml>>

</BODY>

Key parts of a working template.

Using these methods can hopefully save you countless hours that you can use building content for your site.

 

Thrandur Arnthorsson