Archive for the ‘Tips & Tricks’ category

Use CAPTCHAs against spam on your website

Thursday July 16th, 2009

Web forms in online shops, forums and guestbooks are often targets of Spam. You can protect yourself from unsolicited comments by using CAPTCHAs on your website. Along with commercial solutions, you will find many free CAPTCHA services on the Internet, such as  captchas.net. Another free and easy to use service is reCAPTCHA.

recaptchanewsletter

On http://recaptcha.net you get a free key for using the service on your website. In order to use reCAPTCHA, you need a public/private API key pair. This key pair helps to prevent an attack where somebody hosts a reCAPTCHA on their website, collects answers from their visitors and submits the answers to your site.

recaptcha3

To use reCAPTCHA, you only have to add a few lines of code to your website. For detailed instructions on using reCAPTCHA please visit reCAPTCHA’s website.


Is your website user-friendly? Test yourself!

Wednesday May 27th, 2009

Usability is such an important factor for the success of your website that it should be on your mind from the beginning on. The rule for the usability test is: The sooner the better. The best is to start testing website usability before you start working on your website: Ideas, concepts and drafts are easier (and cheaper) to change than existing websites. But, of course, it is never too late to start optimizing your website and make it more user-friendly. The only things you need to conduct the usability test are five test persons and some time.

5 Methods to check usability:

  1. Card Sorting for user friendly navigation and menu structures. Write the name of each of the main items (products, topics) of your website on paper cards. Give each user a set of cards ask him to sort them thematically. This will help you find out which topics belong together in the eyes of your users and tells you where they expect to find the information they’re looking for. Use this information to determine the menu and navigation structure of your site.
  2. Paper Prototyping helps you test if your site structure makes sense. Draw your website on paper. Do not concentrate on design issues, but only on the structure: How are website pages organized hierarchically and how are they linked to each other? Let your test users perform real tasks with the paper prototypes and watch their reactions. Ask them also for feedback and suggestions.
  3. Interviews to find out more about user-experience. Ask your test persons about one aspect of your website. If you conduct written interviews, it is recommended to use closed questions with predefined answers (yes/no, I agree totally/ I agree partially/ I disagree). If you interview your test users personally, you can use open questions where users can reply freely. Interviews will give you important feedback and will help you look at your website through the eyes of your users.
  4. Thinking aloud will give you high quality feedback during testing. Let your test user perform a task and ask him to explain his decisions. What is he doing? Why did he choose this option and not another one? How is he feeling? What is his opinion? Thinking aloud will give you important information about the user’s mental and emotional interaction with your website and can give you many good ideas for improvement.
  5. The Five-Second-Test is a fast and easy way to test the functionality of your website. Here, you let your test user perform a certain task again (for example, if you sell products, ask the person to tell you how he would go about buying a certain product). Let the person look 5 seconds at your website without scrolling or clicking on links (you can also use a screenshot). After that, ask the person to tell you what he remembers from the website. This will show you what catches the user’s eye and tells you if your images, titles and banners are sending the right message to the users. On the next step, ask the test person to perform the task. If he has difficulties or takes too long, this means your site is confusing and needs restructuring.

How do I make my website well known?

Tuesday March 31st, 2009

Millions and millions of websites compete for our attention every day and yours is one of them. In the face of such an overwhelming offer, it is obvious that, if you want your website to be visited, you must let the world know you exist. Here are a few simple measures that will help increase your website traffic.

Check content and layout

Start with the basics: your website. When you have been working on a project for too long, you tend to overlook some aspects of it. To avoid this, let your friends and colleagues have a look at your site. Do they like the layout? Can they navigate easily? Do they find the content attractive? Use their judgment to find possible shortcomings.

Submit your URL to search engines

The next point on your to-do-list: Submit the URL of your website to well known search engines or web directories - without them, your website cannot be found. Of course, it is one thing to be listed on the search results and another one to have a high place on these results. This is also a factor you can influence, making sure your website is search-engine-friendly.

Get backlinks

It can take weeks before your website even appears on the search engines. During this time you can do can do some working and get so called backlinks for your site. Backlinks are external links to your website and search engines view them as recommendations - the more you have, the more popular your website is, the higher you get in the results. This means you can exchange links with other websites that have a similar theme or target group. You can also add your URL to social bookmarking services and add social bookmarking buttons to your site, making it easier for visitors to bookmark you.

Adding effects to your website

Tuesday October 16th, 2007

This post might be a little over the standard in terms of technicality. But then, this is a developer’s blog, so why not enlighten you. In this episode, we are going to teach you how to add very simple effects and animations to your page.

Over the last few years, the term AJAX and web 2.0 have become synonym with bleeding edge web software. Although we are not going to show you how to do AJAX, we will show you how to use some of the really nice javascript animations that are available in today’s web 2.0 world. This short tutorial DOES require that you know of some HTML and that you have put your eyes on javascript before. So let’s get this started.

We’re going to take our starting point in the Scriptaculous javascript library (which is an extension of the prototype library). The combination of Scriptaculous and Prototype is what we have used at motigo from the beginning.

We start out by having a <div> layer, which is a standard element in HTML. Our <div> looks like this:

<div id="my_element" style="width: 200px; height: 50px; background: red; color: white; padding: 5px;">
  This is the content inside the DIV
</div>

The code above produces this: (a box with the dimensions of 200×50 pixels, a red background, white text, and an inside margin of 5 pixels)

This is the content inside the DIV

Now - we can begin to manipulate it. Notice that the ID of the DIV is my_element. That means that we can do this (with scriptaculous and prototype loaded):

<a href="#" onclick="Effect.toggle('my_element', 'blind'); return false;">Toggle blind effect</a>
<a href="#" onclick="Effect.toggle('my_element', 'appear'); return false;">Toggle appear effect</a>

This produces this:
Toggle blind effect
Toggle appear effect

Try to click the links and see what happens with the red box.

Pretty neat. Pretty simple!

The reason why we say return false; in the end of the onclick="" attribute, is that we don’t want to redirect the browser to the link of href="".

What allows us to do all this, is because we have Scriptaculous and Prototype loaded on this page. We have done so, first by downloading the Scriptaculous and Prototype files over on the Scriptaculous website, uploaded these files to our server, and including the following HTML code at the top of our page (inside the <head> tag):

<script type="text/javascript" src="/js/prototype.js"></script>
<script type="text/javascript" src="/js/scriptaculous.js"></script>

The downside of using Scriptaculous and Prototype is it’s large size (in kilobytes). Other smaller libraries include Dojo, MooTools, and Ext JS.

Let us know if this is too advanced, or if you would like to know more.

UPDATE: This article seems to have hit a too high level of complexity. We are sorry if all this doesn’t make much sense. The primary problem our readers have experiences is that they are not aware that they need to upload the javascript files from Scriptaculous and Prototype to their own server - and that it is those files that allow us to do the effects.

NOTICE: The effects work in the most popular browsers. Some older browsers are not supported.