Webdev: May 2004 Archives

Four days ago I upgraded the motor of this site to Movable Type version 3.0D --- the D is for Developer edition. Unlike many others who installed this version, I was fully aware that this developer edition could have some problems with plug-ins. Here are my findings of the first days playing around.

One of the additions to Movable Type is a news box in the main menu of the main menu. This box syndicates the latest news from the Movable Type site, and has a prominent position on the top right of the screen.

I prefer to read syndicated content through my news reader, and this news box simply irritates me. So I searched through the files and removed the responsible code. In case you want to do the same: you'll need to edit the file tmpl/cms/list_blog.tmpl, and remove lines 7-13 (starting with <div class="news-box">).

I have upgraded to Movable Type 3.0, and am trying to fix the templates at the moment. During the next days, posting comments might give some problems, but I am working on it.

On the web a lot of people complain about the new licences, but I haven't got any problems with it. As this site uses only three webblogs ---the main site, the photo site and one for static content--- and has only one author ---that's me :-D---, I fall exactly within the limits of the free licence. And if I really need more, I have no problem paying for it. Let's face it, they made a far better CMS than I will ever be able to make myself.

The installation went without any problems, the pesky part is in the Individual Archive templates. There have been many changes, and I will have to go through my code line-by-line to see what I have to change.

To make it even more difficult, they did not escape ampersands in their code! The same thing happened in their 2.66 update, and I really expected that they'd learned something. Anyway, soon I expect version 3.01, which fixes these errors in the JavaScript.

Another problem I ran into is their use of JavaScript as: document.comments_form.email.value = getCookie("mtcmtmail");, which typically won't work in documents served as application/xhtml+xml. I have to change all these lines to use the document.getElementById function.

You notice: work enough to do, so I'll better get back into debugging mode.

[Update 2004.05.17]: They did escape ampersands, but that I was using the wrong version of their code.

There is a law that is valid on both the internet as on every school yard: how important you are depends on who your friends are. Nowadays on the internet, your importance is expressed as PageRank. PageRank is a number between 0 and 10, calculated in a very secret way, but based on the amount of links to your site and the PageRank of the sites linking to you. If you own a site with a high PageRank (8+) you can earn a lot of money by simply putting a link to other sites on your homepage.

Knowing this, I wondered how popular I am. What is the PageRank of this site, where on the internet popularity scale am I. I looked it up, and found that I am exactly in the middle; I have a PageRank of 5/10. I am not the most popular guy on the school yard, but neither a looser without any friends.

This made me wonder what I had to do to get a 6. What kind of sites have a 6? And a 7? So I visited some sites from my bookmarks and made a short list with example sites for each PageRank:

PageRankExample site
10Google
9SlashDot
8CSS Zen Garden
7Zeldman
6Weblog about Markup & Style
5Brain Tags
4Fimcap
3Familie Naafs - Van Dijk
2KJG Roundabout
1Startpagina voor Jong Nederland
0Jong Nederland Harmelen

It was quite difficult to find sites with PageRank 1 and 2. Most sites I found have a PageRank of 3 and 4. Most popular sites reside at PageRank 8. Jong Nederland Harmelen obviously did something very wrong, since Google punishes them hard for not letting the GoogleBot spider their site.

Mozilla Firefox is a great internet browser, and I just love tabbed browsing. Each day I look in Bloglines to see which sites have been updated, and I open up all interesting reading matter in new tabs --- I CRTL-click more than I click. After that I go one by one through my tabs, reading each page and opening interesting links in new tabs. I continue doing so until I have closed all my tabs, or until I run out of time, in which case I simply bookmark all open tabs. The good thing about loading pages on tabs it that I can load many pages before I read them; each time I close a tab, I find a new page waiting for me.

But there is one thing that annoys me. As you might know, I am very interested in web design, and many sites I read are about standards web design. Therefore, more and more sites I visit are standards compliant: clean HTML and designed with CSS. In my opinion Firefox does not handle these sites correctly, since it only starts loading background images the moment I focus on a tab. Thus many times I close a tab, I am confronted with an almost white page with some text on it, which then is converted little by little in a beautiful design. I do not understand why Firefox waits until I focus on the tab and does not pre-load the background images while I am reading other sites.

Or is there some hidden configuration option I don't know about?

Since September of last year, this site is also available in WAP format at http://wap.braintags.com/. As you might imagine, there are not many people using this feature, I guess only 2-5 visitors per day.

With my new phone I also had a look at this site over WAP, and ran into an error. Clearly the template I was using was not OK. I made this template myself, because at the time I could not find a suitable template on the internet.

I decided to search again, and found Building a Better Wap Diary describing how to set up a WAP site with individual archives. This sounded interesting, since until now I published the last X items in a single file, without the possibility to view archived posts.

I quickly set to work, using the provided templates as the base for my own styled pages. I checked the result on two different phones and on a WAP emulator on the internet, and it looked alright on all of them. The new WAP site is better in three ways:

  • The index page contains only the titles of the last entries. Before it contained also the full texts. Therefore, the index will load much faster;
  • Now all texts are available, in stead of only the latest ones. I only have to wait for Google to pass by, and I expect an increase in the number of visitors;
  • I also included the comments and trackbacks in the individual archives.