Wednesday May 09, 2007

Customise the theme of Sun Blog

It's pretty easy to add clustrmaps and page-hits in the theme of Sun Blog.

  1. register your blog, say http://blogs.sun.com/simford, in ClustrMaps: http://clustrmaps.com/getone.php
  2. Copy HTML lines from your ClustrMaps login page
  3. In 'Preferences/Theme' setting page, click 'Custom' button
  4. In 'Preferences/Templates' setting page, click edit button of 'Weblog' entry
  5. Paste the HTML lines from ClustrMaps in proper place:
    <div>
    <a href="http://www2.clustrmaps.com/counter/maps.php?url=http://blogs.sun.com/simford" id="clustrMapsLink"><img src="http://www2.clustrmaps.com/counter/index2.php?url=http://blogs.sun.com/simford" style="border:0px;" alt="Locations of visitors to this page" title="Locations of visitors to this page" id="clustrMapsImg" onError="this.onError=null; this.src='http://clustrmaps.com/images/clustrmaps-back-soon.jpg'; document.getElementById('clustrMapsLink').href='http://clustrmaps.com'" />
    </a>
    </div>
  6. Add page hits info in similar place
       <div class="rFolderitem">
        #set($refs = $model.weblog.getTodaysReferrers())
        #showReferrersList($refs 30 20)
       </div>
  7. click 'Save' button

About

simford

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today