Niche site tutorials coming

March 24, 2008 – 7:20 pm

I’ve got a few tutorials lined up for you covering a couple different kinds of niche sites. Each one will be an affiliate-based store, but using different approaches and different levels of complexity.

Simple Store Front

For this tutorial I will build a simple store front much like the store that I’m an affiliate for. There are only a handful of products so no elaborate catalog and thus no elaborate programming involved. We’ll add in some content for the search engines benefit (and the users), but otherwise this will be a relatively quick build.

Datafeed Site

A much more involved tutorial, we’ll take a datafeed that is provided by the advertiser to build a catalog automatically. Obviously this one will take a bit more work but it won’t be too difficult and perhaps a bit more fun than the first one :)

Hybrid Site

For this tutorial we’ll combine an affiliate store front with an eBay style store. I’ll be using the eBay software that I’ve been working on however instead of the eBay listings being the main focus they will be more of a supporting role. We’ll use the content capabilities of the software to build the actual store and the eBay capabilities naturally for the eBay piece.

In the spirit of completeness I’m not going to hide what the affiliate programs are and I’ll even provide source code where necessary. Yes, this means anyone could duplicate my sites exactly and compete. So be it. I’m hoping though that you take these tutorials and apply what you learn to your own stores and niches. Either way I hope you enjoy them.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • StumbleUpon
  • del.icio.us
  • DZone
  • Technorati

AdSense policy change

February 26, 2008 – 12:47 pm

Google is now going to require that sites using AdSense will need to have a privacy policy in place. Per their blog:

We’ve also added some specific requirements that make it necessary for publishers to post and abide by a transparent privacy policy that users see. According to this policy, publishers must notify their users of the use of cookies and/or web beacons to collect data in the ad serving process. This change relates to advertisers’ use of innovative products and features like Gadget Ads and other offerings in the future.

You can see the announcement here.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • StumbleUpon
  • del.icio.us
  • DZone
  • Technorati

Get top Google keywords for free

February 21, 2008 – 9:49 pm

Finding good keywords for your niche site is always a top priority. Well now Wordze is offering a list of Google’s top keyword searches from January 8th emailed right to you.

Definitely worth a look.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • StumbleUpon
  • del.icio.us
  • DZone
  • Technorati

New affiliate tool on the way

February 20, 2008 – 8:25 pm

I’m really looking forward to this. A new tool called Affspy.com is on the way that will help you find the best payouts for a given affiliate program across the top affiliate companies.

In essence it is a meta-search tool, and as such it should save loads of time when you are looking for the best payout. It is still a couple weeks away, but you can signup for alerts on their site. The UberAffiliate has a detailed write up.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • StumbleUpon
  • del.icio.us
  • DZone
  • Technorati

Adding images the cool way

February 11, 2008 – 9:45 pm

HTML Tutorials!

Images can add a lot to any content. No surprise there right? The question though is how to get that image to integrate well into your content. If you just add an image to your content as is, it will take up a whole ‘line’ of space, leaving lots of whitespace that not only looks wrong, but takes away valuable content space. The trick is to float it. Literally.

If you look at the image to the right of this paragraph you will how the effect. This text wraps around the image and it flows nicely. So, how do you accomplish this? The answer it turns out is actually quite easy, CSS or Cascading Style Sheets.

In this case I’m going to show you the inline method of CSS. There are a couple of ways to accomplish this. Every HTML tag supports the style attribute (see my previous tutorial). The style attribute is where you place in-line style information. In this case it is a simple process. In this case the style attribute will have two styles applied. The float and the margin.

Float Style

The float style does pretty much what it says, it floats the element. You can either float left or right and the style looks like:

style="float: right;"

That takes care of the actual floating. However, when you just apply a float, the content that is floating around it will go right against the image if possible. That just looks wrong. So the next step is to apply some margins.

Margin Style

Again, the margin style does exactly what it says, applies a margin to the element. You can either do margins on a per side basis or all four sides at once. The way to do this is like:

style="margin-left: 10px" or style="margin-right: 10px"

The all in one approach looks like:

style="margin: 5px 10px 5px 10px"

The four attributes are applied in a clockwise manner starting with the top, so in this example there will be a top margin of 5 pixels, right margin of 10 pixels, bottom margin of 5 pixels and a left margin of 10 pixels.

Putting it together

Now that we know how to float an image and add a margin, we can put the two together like this:

style="float: left;margin: 0 0 10px 10px"

Notice that they two styles are separated by a semi-colon. Add that to your image and presto, a float image with a nice margin.

In our next tutorial we’ll go over style sheets in general and the most common tasks you will want to accomplish. Stay tuned!

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • StumbleUpon
  • del.icio.us
  • DZone
  • Technorati

How to host your niche sites

February 11, 2008 – 7:50 pm

No matter what tool you use to build your niche site, you need to host it somewhere, somehow right? The beauty is that hosting companies are abundant giving you lots of choices. The ugly is that hosting companies are abundant giving you lots of choices. Basically there are almost too many choices out there. So what should you look for if you are going to go the niche site route?

Hosting plans

If you plan on really doing niche sites, then you should build not one, not two, buy lots of them. To host all of these sites, you want a nice simple and manageable means of doing so. With that in mind, there are three ways to go: Single plans, domain pointing and multi-plans. Each has their pros and cons and it really comes down to what you are comfortable with and how many sites you really see yourself getting into.

Single Plans

With the single plan approach, you buy a new site plan from your chosen hosting company for each site you put up. Pretty simple and straight forward. This is no different than any other site for all practical purposes.

Pros:

  • Simple to get started
  • Only buy plans as you put up sites
  • Enormous variety of choices in hosting companies
  • You can spread your accounts out of multiple hosting companies if you like

Cons:

  • If you plan on having more than about 3 sites (and you are aren’t you?), it will cost you more in the long run
  • Managing multiple single accounts can quickly become an issue

Domain Pointing

If you are not familiar with how hosting companies work and how web servers can be configured then domain pointing can be a confusing subject. What it means is that you have one main account that allows you to set up multiple sites. Each site is located in a sub directory of the main site. The web server and DNS servers are configured such that when it sees the pointed site, it directs it to the directory in question. Your site visitors never know the difference as the URL that they see does not change. One way to think about domain pointing is to look at your Program Files folder on Windows. Each application you have is in its own directory right? That is basically what happens in domain pointing. That is over simplifying it a bit, but you get the idea.

Pros:

  • Lower cost. You pay for one account and can set up however many domains your provider lets you under that account.
  • Ease of maintenance. You only have to work with one control panel to manage all of your sites. This is a huge plus when you have lots of sites.

Cons:

  • Less options per site than with a separate plan for each site. For most niche site needs this isn’t an issue, but more advanced users want full flexibility.
  • Limited number of sites per plan. This may not be an issue for most needs as this number can be 40, 50 or more.

Multiple Site Plans

If you want full flexibility and almost unlimited domains, you need a multiple site plan. Hosting companies sell these as reseller plans and they are wonderful for the niche site entrepreneur. The idea behind reseller plans is that a large company allows another company to resell sites on their hardware. There is nothing wrong with this and all the big players do it. The benefit to you is that you can take advantage of what that allows, meaning each site truly a separate account with its own control panel, directory structures, etc.

When you get a reseller plan, you buy a certain disk quota and traffic quota. Other than that you are pretty much free to do what you like.

Pros:

  • One main account, referred to as a WebHost Manager, that allows you to create new sites, control traffic quotas per site, disk space usage and whole host (no pun intended) of other options.
  • Most companies allow you to set up as many sites as you like as long as you don’t exceed the overall reseller plan limits.
  • You can pretty much be assured that you are dealing with a large company and therefore a reliable one. This isn’t always the case, but it does help.

Cons:

  • Higher initial cost. However the cost per site goes down as you add more sites.
  • Can be a bit more daunting for the new user.

There is another hybrid option from Site5.com (whom I host with) called a MultiSite plan. Think of it as a limited reseller plan. You can see details by clicking here.

What I use

Personally I like the flexibility of a reseller account. Also, I host some other sites for others so the reseller plan works great for me. As mentioned, I host with Site5, but I encourage you to do some research on your own. One place to go to is WebHostingTalk.com and see what other are saying about various companies. When looking there, make sure you read more than one person’s comments.

I’ve gone with other companies and had mixed results, both in pricing, options and service. Site5 just happens to have good service for me and a really good price. Naturally I have to mention that they are offering a domain pointer plan that is as low as 5$ a month if you buy a two plan. It allows 55 websites, five terabytes of bandwidth (i.e. a LOT). If I didn’t need the flexibility of a reseller plan I would have bought it myself (and I’m not just saying that!). Again do your research; Site5.com is just my personal recommendation.

If you missed any part of this series, start here.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • StumbleUpon
  • del.icio.us
  • DZone
  • Technorati

How to track clicks in a BANS site

February 11, 2008 – 7:48 pm

So you want to track what links get clicked on your BANS site, yes? You are using Google Analytics right? Perfect, then this little tutorial is just for you.

Why?

First, why would you need this? Well, using GA alone is nice and will show you what pages are being visited on your site. With a little digging, Commission Junction will show you what items have been purchased. The missing piece is knowing what was clicked on even though the user didn’t buy anything. This is very helpful in knowing what items your visitors are most interested in allowing you to fine tune your site, target keywords better, etc.

How to do it

So, here is the meaty part, how to integrate click tracking into your bans site. NOTE: Line number are approximate as my files have been modified beyond what I describe. FIRST, BACK UP YOUR INDEX.PHP FILE!

Text below that is bold is code in your file, either existing or to be added. If it isn’t bold, it won’t exist or doesn’t need to be added. Text that is green is what you will add, and should be safe to copy & paste.

  1. Open up your index.php page
  2. From about line 30-45 or so you will see a bunch of lines that start with $front->. After those and before the line that starts with $d->(SELECT, add this code:
    if($mainCat != '') {
    define("MAINCATNAME", $mainCat);
    }
    else {
    define("MAINCATNAME", 'home');
    }
    define("SUBCATNAME", $subCat);
    
  3. Find the FormatRow functions. There are three of them, but this tutorial applies to all. You can find the first one at approximately line 480
  4. The first line after the function declaration, add this:
    $clickUrl = "'/click/".MAINCATNAME."/".SUBCATNAME."'";
  5. Go down to about line 503 or so where you will see where the actual link for the image is generated. It will look something like:

    <a href=”‘.$link.” target=”_blank” rel=”nofollow”><img src= …. /></a>
  6. After the rel=”nofollow” attribute, add this:
    onclick="javascript:urchinTracker('.$clickUrl.');"

    . MAKE SURE there is a space between the ending quote on the rel=”nofollow” and the onclick.

  7. Apply the same onclick to the rest of the generated links. Don’t forget that there is one link for the image and one for the link text itself (the item name and such).
  8. You should have four links to add for each FormatRow function. There is one set of links for “buy it now” items and one set for non buy it now.

That should do it!

How to test it

Now that you have your index.php file modified, upload it to your server, replacing the old one (You DID back it up right?). Go to one of your store pages and view the page source. In the source, look for the ebay links, which isn’t too hard as they are so darn long, and look for the onclick piece you added.

What you will see now in your analytics control panel are URLs that show up like /click/cat_name/sub_cat_name. Now, this doesn’t show you individual item names, but does show you the category and sub category that the item was clicked on. While you could get the item name and such, all the items in a given category should be enough to let you know what your visitors are looking for.

I did a very similar thing for the search box, so I can see what users are searching for on my site. I’ll post about that little mod next.

Happy analyzing!

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • StumbleUpon
  • del.icio.us
  • DZone
  • Technorati

Adding keywords to your BANS site title

February 11, 2008 – 7:40 pm

A fairly well known SEO technique is to have a good title for each of your pages. Another common tactic is to put keywords in your title as well. Given this, if you have a BANS site, it can be beneficial to automatically add in your page’s keywords to your page title. This is pretty easy to do if you don’t mind editing PHP code.

NOTE: First make sure you backup any files before trying this!

Step One

Open your FrontControl.php file and around line 106 there will be a function called meta. This is where, appropriately enough, the meta section of the HTML page is created.

Step Two

The first part of this section you will see where the title is output. It will look something like:

$f = "<title>".$this->getPageArea("title",$checkFile,"id")."</title>";

Change this to:

$f = "<title>".$this->getPageArea("title",$checkFile,"id")." ".
$this->getPageArea("keywords",$checkFile,"id")."</title>";

But it needs to be on one line. I had to put it on two lines to get it to fit.

Step Three

Now scroll down to about line 182 or so and you will see the follow:

$f .= "</title>";

Right before that, add this line:

$f .= $this->keywords;

That should append the keywords that you specify in your admin section to the title for that particular page. If you have any problems, let me know.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • StumbleUpon
  • del.icio.us
  • DZone
  • Technorati

All the HTML you need to know

February 4, 2008 – 9:09 am

Why in the world would you want to learn HTML when you have a nice little WYSIWYG editor in your favorite website tool? It allows you to bold, italicize, change colors, the whole nine yards right? Sure it will do that, but how many times has that editor frustrated you because it added extra space between paragraphs, created links wrong or other some such anomaly?

HTML to the rescue

Never fear my niche site building friend. HTML isn’t quite the monster that you might think it is. However, before you go and buy a book or start reading a ton of tutorials on the subject, I’m going to give show you almost everything you will need to know. The problem with books and other such tutorials is that they cover all of HTML. This is OK if you really want to know as much as you can, or you want to build templates for your favorite website building tool, but the fact is you only need to know a small handful of HTML tags to be really productive.

Hold on, what exactly is HTML?

To put it simply, HTML is a markup language. It stands for Hyper Text Markup Language. It is made up of tags and attributes that tell the browser how to display the content. HTML as a whole has come a long way and combined with Cascading Style Sheets (CSS), can be quite powerful in what it can do.

The Tag

The tag is the fundamental element. A tag starts with a less-than sign the tag name and a greater-than sign. The content of that tag comes next, followed by the closing tag. The closing tag has the same name, but has a less-than sign, a slash, the tag name, then the greater-than sign. Like this:

<tagname>some content here</tagname>

Simply enough right? The closing tag is important as it tells the browser when that tag is complete. This is really important for layouts, but we won’t go into those too much.

Tags can also be nested, so a number of tags can be inside of other tags, like such:

<tagname>some content <a href=”#”>here</a>

But we are getting ahead of ourselves…

The Attribute

An attribute belongs to a tag and provides extra information for the tag. In most cases attributes are optional, but in other cases, like an anchor tag, without the appropriate attributes the tag doesn’t ‘do’ anything.

The are a couple of common attributes regardless of the tag. These are the class and id attributes. Both of these attributes are used in conjunction with style sheets and even javascript. An id specifies this specific tag instance, and as such it is unique. The class attribute is used to denote that this tag belongs to specific grouping of styled elements. An example would be table headers, or headline tags, etc. I’ll cover styles and CSS in a later tutorial.

Enough background, let’s learn something

As I mentioned, there are a handful of basic tags that you will use when entering content into your blog, store builder or other content system. Let looks them in more detail.

The paragraph tag

The paragraph tag is the mainstay of what you will use. It is a simple single letter tag, ‘p’, and as its name implies, it denotes the content as a paragraph. Here is an example:

<p>this is a paragraph</p>

Pretty simple yes? Paragraph tags should not be nested.

Text formatting

There are a couple of basic formatting tags that you might use. These include the bold and italic tags.

<b>This text is bold</b>
<i>This text is italic</i>

Again, pretty simple. The bold tag has an alternate called ’strong’. They both do the same thing, and while the strong tag is supposed to supersede the bold tag, hardly anyone uses it.

Links

Hyperlinks are marked up with the anchor tag. Why isn’t it called ‘link’ instead? Well you can create anchors on a page that don’t actually ‘link’ to another page. It is another single character tag, that being ‘a’. Let take a quick look:

<a href=”http://nichesiteblogger.com”>Text Link</a>

In this example we are linking to http://nichestireblogger.com and the text of the link is Text Link. The way the href attribute is specified is very important as there are two ways to link to something. The first is using an absolute URL, the second is using a relative URL.

Absolute URL

This type of link is an explicit location to somewhere, whether that means to an external site or not. There are two way to specific an absolute URL. The first is by using the http:// prefix, which is exactly as if you were to type in a location into a browser address bar. The second was is to start the URL with a single forward slash: ‘/’. This means start looking at the root of this website. For example, if you were on page site.com/category/subcategory and you created the link: <a href=”/test”>Test</a>, this is the same as going to http://site.com/test.

Relative URL

Relative URLs are, as their name implies, links that are relative to the current location. This type of link causes more frustration than anything else. Using our previous example, if we start at site.com/category/subcategory and create the link: <a href=”test”>Test</a> (note the missing slash at the beginning), this will take us to site.com/category/test. A couple more examples starting with site.com/category/subcategory:

<a href=”../test”>Test</a> - This means “go up one directory then to ‘test’. So it will result in site.com/test

<a href=”test/anothertest”>Test</a> - This will result in site.com/category/test/anothertest

Images

The last tag we will cover today is the image tag. The tag name is ‘img’ and has one required attribute, ’src’ which gives the location of the image. The src uses the same path style as an anchor tag as they both point to a location. This means that you can use an absolute or relative URL to the image.

An optional attribute is ‘alt’. While optional, you should use it as much as possible. What this tag does is define an alternate text to be displayed if the image could not be displayed (or the user has images turned off), but more important it is used by search engines so they know what that image is. Here is an example image tag:

<img src=”http://site.com/images/image.jpg” alt=”Here is an image” />

Note that the image tag is an ‘empty’ tag, in that there is no content between the opening and closing tag. In the example above, the tag is self closing, which is just shorthand for doing <tagname></tagname>.

Putting It All Together

So let us take what we have learned so far and create a simple paragraph:

<p>This is a test paragraph. <b>This line will be bold.</b><i>This line will be italic.</i><a href=”http://mogul.webmogulenterprises.com”>This will go to the author’s blog</a></p>

Which generated looks like:

This is a test paragraph. This line will be bold.This line will be italic.This will go to the author’s blog

With these few simple tags, you can create most of the content you will ever need when using some kind of content management solution. I hope you found it useful and don’t be afraid to ditch the fancy editor. You will be surprised how quickly you end up typing tags and much more clear your content becomes. Next time we will cover cascading style sheets. Lots of fun!

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • StumbleUpon
  • del.icio.us
  • DZone
  • Technorati