Showing posts with label Blogger. Show all posts
Showing posts with label Blogger. Show all posts

Sunday, December 27, 2009

Web-Site Statistics - Free Stand-Alone Services

As web-design gurus suggest: keeping an eye on what is going on at your web-site is the must. What information is of the most interest, what part of the world your visitors come from, how long they stay on a particular page, etc. I've had some of such web analysis services in use for a few months and would like to make a note on that.

The main idea behind stand-alone analysis service is pretty simple - when a visitor opens a page the visitor's internet browser receives all text and images from the page and executes scripts. Some of the received information can be linked to an analytical site which provides the requested information and at the same time analyzes and stores the visit related info.

I've been testing the following three services which are offered for free of charge:

  1. Google Analytics - is extremely informative, it allows to look at your web-site statistics from different point of view: visitors benchmarking, new ones vs. returning, world wide location, browsers been used and more; traffic sources as direct, referred from other sites, search engines; content analysis, top visiting pages, top landing and exit pages, etc.. If you really want to know how to improve your site Google Analytics is very helpful. Google Analytics functionality is based on java-script which should be pasted into web-site pages. More detailed information can be found at http://www.google.com/analytics/. Briefly what should be done to use it in Blogger is: to register with Google Analytics, create a new profile for your site, get the code and put the code in the blogger layout template above the </body> tag.

  2. StatCounter - collects a lot of useful information about visits and represents it in very convenient way: popular pages, entry and exit pages, keyword analysis, visit length, new and returning visits, map, browsers and so on and so forth. Similarly to Google Analytics StatCounter is based on java-script code. To make it working with Blogger just put the code right before the </body> tag.

  3. ClustrMaps - is another service which collects only the info about global visitors position and provides a nice world map picture with visitor locations marked.The same picture also serves as a link to ClustrMaps site and allows them to collect visitor's info. Since it is just a picture it can be placed anywhere you like in a web-page - I put it in the Header block.

    Along with the free version of the service ClustrMaps has two more advanced ones with a richer choice of map styles, higher visit rates and better archiving options.
Read more...

Saturday, September 12, 2009

Add Atom and RSS Feeds to Blogger Template

Atom and RSS are two similar methods of web content syndication. The idea of feeds is not to check all web sites of interest one by one, but automatically collect updates from them with one tool called "feed reader" or "aggregator", so feeds can be considered as an advanced alternative to bookmarks. Subscribing to feeds really helps to save time and stay informed. Blogger supports both Atom and RSS feeds.

The truth is that nowadays web browsers can work directly with feeds, so a special program is not really needed. For example, Firefox shows available feeds as an icon in the end of the address field:and Internet Explorer - in the Command Bar: Click the icon to open available feeds from the web page, choose the one you prefer and that will take you to a subscription page. Firefox can save a feed as a "live" bookmark which references not just a website at whole but each article individually from it. IE puts it under tab "Feeds" in the "Favorites" window.

While it is possible to subscribe to the feeds directly from a web browser it is still can be good for the sake of convenience to add them to a web page. Blogger has some variants of the feeds - Blogger Help describes them in the "Blogger Feed URLs" article.

For instance, I decided to put Atom and RSS full site feeds in the right top column along with the "Bookmark and Share" button. In Blogger layout all the three buttons are sitting inside one HTML/Javascript gadget - you can check the source of the page to see how it looks like as code.

For more information a great description of Atom and RSS can be found in Wikipedia.
Read more...

Sunday, August 16, 2009

Picasa - Managing Blogger Pictures

Managing images in Blogger environment seems not convenient at all. It is possible to upload a picture directly to a post, scale and position it, but the sad part comes when you delete an image from the blog - because it is not really deleted from its storage. Trying to find better pictures for a post occasionally makes one upload some different variants of the same picture and all those raw variants are going to stay stored, taking valuable place which is 1GB max for free. The good part is that the default storage for Blogger images is actually Picasa.

One who has a Blogger account already
has a Picasa account - you can login to it from Picasaweb with your Google user name and password as usual and there is no need to install Picasa on the home computer. For Blogger images Picasa has corresponding albums created - named the same as the blog, marked with the Blogger and Unlisted icons.
  1. The first inconvenience for image managing is that all of them are stored in the same blog album as bulk;
  2. The second is that addresses (URL) assigned by Blogger to the images directly uploaded to a post are different from their addresses you can see in Picasa.
So the best approach I can see to manage images for Blogger would be:
  1. to upload them directly to Picasa, so they can be easily managed in the Picasa environment;
  2. It's possible to assign tags to pictures in order to keep them organized, but I find it more convenient to group them in different albums (PostIcons, for instance, to keep all icons for post/topic types), not just in the default blog albums
  3. as a consequence of mentioned above use only direct link from Picasa to put a picture into a post.
Since Picasa in this case is used as an ordinary image hosting any other image hosts can be considered for that purpose. However advantage of Picasa is that it is under the same Google's roof as Blogger itself and that's supposed to give it more reliability against others. Read more...

Sunday, August 9, 2009

Blogger Template with Rounded Corners and Adjustable Column Width

While I liked the general style of the "Rounders 3" Blogger template, I really wanted some things to be modified:


  1. to add the third vertical column to the left of the main post section;
  2. the third column should be consolidated with the main post section in one visual block;
  3. I'd like to keep rounded corners.
All those are definitely feasible, but adjusting column width in the original "Rounders 3" could become some headache.

In the "Rounders 3" rounded corners are defined with background pictures in two wrappers: one for two top corners and the other for two bottom ones.
In this case every adjustment in width of a column would require redrawing of the corner picture to follow the change.

A simple solution to make width easily adjustable would be to employ a 4-wrap structure each wrap with one of the corners.
For that 4 corner pictures need to be at a reachable web hosting.
I uploaded them to Picasaweb - anyway it is the default Blogger's storage for images.

Since I planned to use the corners for all of the blocks in the blog page the template styles should be updated with new classes of <div>

/* Round corners div wrappers --------------- */
div.wrap-1 {
float:$startSide;
background-image: url("http://lh5.ggpht.com/
_6uhqGhAnYS8/SoDG27WBpuI/AAAAAAAAAR8/
7W7XN9gbIKY/s800/RCorner_TopLeft.png");
background-repeat: no-repeat;
background-position: $startSide top;
padding:0;
}

div.wrap-2 {
float:$startSide;
width:100%;
background:transparent url("http://lh3.ggpht.com/
_6uhqGhAnYS8/SoDKOuKcJ3I/AAAAAAAAASI/
FO8GZlpdnGU/s800/RCorner_TopRight.png")
no-repeat $endSide top;
padding:8px 0 0;
}

div.wrap-3 {
float:$startSide;
width:100%;
background:transparent url("http://lh3.ggpht.com/
_6uhqGhAnYS8/SoDKXk4wLwI/AAAAAAAAASM/
vZCNY04HzOs/s800/RCorner_BottomLeft.png")
no-repeat $startSide bottom;
}

div.wrap-4 {
float:$startSide;
width:100%;
background:transparent url("http://lh6.ggpht.com/
_6uhqGhAnYS8/SoDKowtWYZI/AAAAAAAAASQ/
j8KRoSoiN9c/s800/RCorner_BottomRight.png")
no-repeat $endSide bottom;
}
/* Round corners div wrappers END ----------- */

HTML wrapping structure looks like this:

<div class='wrap-1' id='header-wrapper'>
<div class='wrap-2'>
<div class='wrap-3'>
<div class='wrap-4'>
<b:section class='header' id='header' maxwidgets='1'>
.......
</b:section>
</div>
</div>
</div>
</div>

Adding "width" attribute to the <b:skin> (CSS) section:

#header-wrapper {
width:$BlogWidth;
background-color:$titleBgColor;
margin-top:22px;
margin-$endSide:0;
margin-bottom:0;
margin-$startSide:0;
padding:0 0 0 0;
color:$titleTextColor;
}

and the corresponding variable at the top of the <b:skin> section:

<Variable name="BlogWidth" description="Total Blog Width"
type="automatic" default="920px" value="920px">

makes adjustment of the section width a snap.

It should be said that many people are interested in rounded corners techniques for web design. While my current goal was only to make width of a rounded corner block easily adjustable from a variable but my choice of rounded corners implementation was straight forward - there are many very interesting approaches allowing to create rounded corners with fancy graphic effects as 3D profiles, gradients, reflections, shadows, etc. Recently I bumped on an interesting post with a list of different techniques: "25 Rounded Corners Techniques with CSS" - check it out.
Read more...

Wednesday, July 15, 2009

Adding Favicon to Blogger Template

Favicon or Shortcut Icon is a small picture which appears in web-browser address field, tab and bookmark of the corresponding web site. Blogger has a default icon assigned, but it seems pretty nice to add an original favicon to your blog: it would give a distinctive, easier to remember view to the bookmark and to the web page itself. Adding a favicon is not difficult at all, but the solutions I found on the Web were not quite correct, at least they did not work for my Blogger and web-site.

Considering that a desired image have already been prepared the following issues should be resolved:
  1. A proper internet storage for ico file should be found. While some web browsers are flexible to work with different picture standards (jpeg, png, gif) as a favicon the main limitation comes from IE which can work with ICO images only. On the other hand not many sites including Blogger itself accept ICO files for uploading. I chose 1 Pixel Host - so far it seems working fine. Convert your image into ICO format of 16x16 or/and 32x32 pixels and upload to the host. Have to say: while favicon file probably should stay with the *.ico extension unchanged, it may have any name, not only "favicon.ico". 1 Pixel Host replaces the original file name with a random mess. For instance, mine got the name "yjtxmkry15su2xsg8em.ico", so copy Direct Link carefully.

  2. Reference to the ico file should be added to the blog template. There are direct instructions from Mictosoft how to do it in "How to Add a Shortcut Icon to a Web Page" , but it does not work by some reason neither for my Blogger nor for my home page at ISP (Internet Service Provider). Somehow the problem was resolved by changing position of the "Shortcut Icon" line. Microsoft suggests it like this:

    <head>
    <link rel="SHORTCUT ICON"
    href="http://www.mydomain.com/myicon.ico">
    <title>My Title</title>
    </head>
    To make it work I had to put the "Shortcut Icon" line below the "title" line:

    <head>
    <title>My Title</title>
    <link rel="SHORTCUT ICON"
    href="http://www.mydomain.com/myicon.ico">
    </head>
    Replace the "href" value with the Direct Link to your ICO file, add the line to your Blogger template, save - and that's it. From now the favicon should appear at every page of your blog.
Adding a favicon to a web-page is similar besides that you don't need to find external file storage - upload the picture to the web-site hosting directory and put a proper direct link to it in the web-pages.

If you have any questions regarding favicon you can check out source code of any website which has favicon including mine.
Read more...

Saturday, July 4, 2009

Blogger Template modification for "Read More..."

Some templates for Blogger do not have "Read More..." feature by default, but it is not very difficult to add it the way you like. The idea is to display post differently when it is in the home page or in any of other multi-post pages as a page of selection by a tag, for example, and when it is the page of the post itself. That condition can be checked directly with the page attribute data:blog.pageType: it is equal to "item" when the page shows the post itself.
  1. Backup the original template for the case: Blogger Layout/Edit HTML tap, Download Full Template;

  2. In the Blogger Layout/HTML tap make "Expand Widget Templates" checked;

  3. Find the structure showing a post, it looks like this:
    <div class='post-header-line-1'/>

    <div class='post-body'>
    <p><data:post.body/></p>
    <div style='clear: both;'/>
    </div>

    The line responsible for showing a post is <p><data:post.body/></p>

  4. The original unconditional structure should be replaced with the following one:
    <div class='post-header-line-1'/>

    <b:if cond='data:blog.pageType == "item"'>
    <style>.prepost{display:none;}</style>
    <style>.fullpost{display:inline;}</style>
    <div class='post-body'>
    <data:post.body/>
    <div style='clear: both;'/>
    </div>
    <b:else/>
    <style>.prepost{display:inline;}</style>
    <style>.fullpost{display:none;}</style>
    <div class='post-body'>
    <data:post.body/>
    <a expr:href='data:post.url'> Read more...</a>
    <div style='clear: both;'/>
    </div><br/>
    </b:if>

    This is pretty much the same as it is suggested in the Blogger Help on "How can I create expandable post summaries?" The difference is that I wanted to have three sections in a post instead of only two, so I added a "prepost" section which would be showed only in the pages with post lists, and not on the post page.

  5. In Setting/Formatting tag modify "Post Template" to:

    This part will appear unconditionally.
    <span class="prepost">This part will appear only in the list of posts.</span>
    <span class="fullpost">This part will appear only in the post itself.</span>

    The "prepost" section is useful in cases when post appearance in the list should be different to the "fullpost" section as it is done, for example, for "Big Green Egg BBQ Ribs - the path to success".

  6. Do not forget to save all the changes!
Read more...