Archive for October, 2003

Printer friendly pages

Saturday, October 18th, 2003 | Programming, Tech

There is nothing like reading an article on the website and finding it one of the best you have ever read – you immediately want to show to it other people. You flick the switch on your printer to on, hit Control + P and prepare for it to emerge. But what do you get? A mess of DHTML, adverts or half the text missed off the edge of the page.

You could always hope the visitor turns their page to landscape but with the length web pages usually turn out like it is not very likely. Save them the trouble of having to print selection or copy and paste into a word processing package by making your pages printer friendly for them to print straight from.

Making them friendly in the first place
There are two main ways to allow visitors to print the pages easily. The first is to make the original web page with the article or content on, the right size to be able to print. For liquid width sites this is ok as long as they can condense down although for fixed width sites this is not as easy.

Generally you have a width of about 600 pixels, which the users printer will print. This is good if you have a navigation or sky scraper advert down the site taking the last 200 pixels of your page as the user does not need these printing. Although if your article goes all the way to the edge its time to rethink the design.

One way of getting round this would be to have a link, which chances the width of the page. The user clicks a link to say somepage.php?mode=printer. Then you could have something, which says if the mode is set to printer the page width is altered to 600 rather than 800 pixels using server side scripting. This could also be done to a certain extent using JavaScript so the page will not always have to be reloaded although in some browsers it may have to be and there is more chance of it going wrong.

The printer friendly page

This is a more common solution to the problem of visitors not being able to print. All you have to do is set up a separate page without all your adverts, logos and navigation, which is less wide or uses a liquid width so that the user can print this.

Generally you wont want to include adverts on this page, otherwise visitors may not use it at all as they can remove the ads themselves using print selection or copy and pasting the text. However you may want to include your logo and visitors won’t mind and it increases branding when the article is passed around.

If your articles are static then you may end up creating a separate page for each of these but if your articles are dynamic, most likely stored in a database you will simply be able to make a dynamic page just like your main article page for the printer friendly page and link them together.

Making it usable

Whatever solution you use you may want to include a print link to. This will encourage users to print the article simply by clicking the link, as their finger will already be on the mouse button, so users who would not normally print the article may give it a click.

Another good point about users printing the whole page rather than copy and pasting the text into a word processor is that the URL of the page will be at the bottom so other people who read it will see it and when the visitor looks at it later they will remember your website.

Intellectual property and protest sites

Sunday, October 12th, 2003 | Life, Tech

A lot of people are using the internet to speak out against the companies that they object to. From the global protest sites such as www.stopesso.com to the small one man operations, protest sites are springing up all over the net. But can it be done without attracting a ball of law suites?

Starting these websites can be a problem on two fronts. The first problem is that if you start printing lies about the company they wouldn’t be happy about you bad mouthing them. The second is that if you register a domain such as www.xyzsucks.com are you breaking the trademark of xyz?

The first problem is easily to solve – don’t say anything unless you can prove it. First of all making up lies isn’t going to help the site as it will discredit it if it is discovered to be a lie and secondly it’s not really fair on the company. Which is why the can sue you if you start publishing lies. Stick to the truth of why you don’t like them though and they pretty much cannot touch you.

As for the second problem there is always the solution of not using the companies name in the website name but then how will people know the site is about that company? The good news is this is not a criminal act so even if the company does get angry, police are unlikely to come round knocking on your doors.

As huumor pointed out on one of my favourite web developer forums:

“if you hate McDonald’s and make a “hate” site called www.McDonaldsSucks.com – you are probably more likely going to be #”¤#&”¤-ed by McDonalds lawyers than if you would use www.CrapDonalds.com – with this domain name you’re not using the copyrighted McDonald’s in it…”

The problem is going to come from ICANN’s decisionon whether you can keep the domain or not. Some sites including www.walmartcanadasucks.com have been allowed to keep the names whereas a recent Reg Vardy protest site had its domain handed over to the company.

There is no clear rule on this one although running a search on The Register throws up some interesting results.