TriNetre - Archive for February 25, 2003

(no longer updated)



February 25, 2003
Get up
[Literature] @ 02:29 PM

Life rots away,
while you stare.
Get up and do something,
when you still can.

The moments that you lament,
the times that you curse,
are but lost to you for ever.
Get up and do something,
for that is all what counts.

Get up and do something,
for that will revive you.
Get up and do something,
for you owe yourself at least that.


The modified BlogTimes
[Software] @ 12:27 PM

As mentioned earlier, I had modified BlogTimes of Nilesh to show time line of posts per days of month rather than the original minutes of day. I had also hacked the script to make the image into an image-map for archive browsing. If you need to source, you can get it here. Couple of points:
  1. It takes in all the tags as the original BlogTimes and one additional tag:MTBlogTimesMapname, which is the name given to the image-map. This will be the same name as the actual image (without the.png extension)
  2. The image-map hack is useful only to those who maintain a daily archive. If you do not have a daily archive, but still want to show the time line as days of months other than minutes of day, comment out the lines that contain the variable "$res". There should be 4 lines. Then uncomment the line "$out", toward the end, just before the line "sub hex2rgb {".
  3. I assume that the daily archive is stored in the following directory structure:
    http://usersite.com/your_mt_main_page/archives/yyyy/mm/dd/index.shtml.
    If this is not your format, please change the line which goes:
    $res=$res."<area shape=\"rect\" coords=\"$ruler_x,$line_y1,$temp,$line_y2\" href=\"$archives/$year/$month/$temp1/index.shtml\">\n";
    accordingly. This should be line number 164 in the source file.
Yup, you guessed it, this hack is just that, a hack.