Monday, April 12, 2010

Chat room, forum and login options

I'm a firm believer that if there is a technology out there that allows you to do something, there is no point in rewriting code to do the same thing. With my current PHP skills, I don't think creating a chat room or a forum would be very successful, for example. Instead I will use alternate systems that can be implemented with the rest of my website.

Chat room
Besides the typical delayed debate option, where one delegate posts something and another replies in a few hours or days, I also want to have a chat room system available. A small number of delegates (10 at most) would enter a private chat room at a set time and have a regular debate for maybe 30mn.
I decided to use a system called PHPOpenChat. This free chat system was developed by a group of programmers and you can basically add the code to your page to have a simple chatroom that you can customize. There were many systems available but PHPOpenChat was the most developed and it had the most documentation available.


Facebook Connect
Registration is a long and painful process, and it's also a little hard to set up. I have been on a few websites, however, that allow you to create an account on their site using your regular Facebook account. I looked this up and found out Facebook developed an API called Facebook Connect, that lets websites other than Facebook use your facebook account for various things - simply logging in, commenting, sharing pictures...
I want to give my visitors the option of connecting to my website using Facebook, as my target group is the kind that will most likely have a social network account. This way, if the registration process I code for my website myself doesn't work, visitors can still log in using Facebook Connect. It will also make registration much faster for people who just want to have a look.


reCAPTCHA
Captchas are the little registration confirmation codes that require you to read two words that are strangely twisted to make sure you're not a computer. I want to prevent my website from being attacked by any type of hackers, so I chose to use captchas. reCAPTCHAS are very easy to implement - you can simply add a few lines of code to your registration page. I also chose them because they have options such as an audible captcha for blind people and are therefore accessible to everyone.

phpBB
phpBB is a technology used to create discussion forums. I want a discussion forum for my users to discuss matters outside MUN. phpBB allows you to create very complex, customizable forums that are afterwards easily managed, and it's free, so it's by far my first choice. Many phpBB forums can be found throughout the internet as it is the leading technology for creating simple discussion forums.

Meebo bar
As an added functionality, I want my users to be able to chat with their other messaging accounts (Google Mail, Facebook, MSN, Yahoo...) while they are on WEBMUN. I think this will keep people connected longer. For this I found a very simple solution called the Meebo Bar - a simple bar at the bottom of the page from which you can connect to all your other clients. This is once again very simple to implement.

Links
http://www.phpopenchat.org/
http://www.facebook.com/connectnews?v=app_7146470109
http://www.tutorialized.com/tutorials/PHP/Chat-Systems/1
http://bar.meebo.com/

Committees and countries to include

As part of my WEBMUN website, I need to decide on a number of committees I want people to be part of online. I would like to stick to the more typical MUN committees, as I don't have time to create various debating layouts to accommodate different types of debate. Here are therefore the committees I cannot include:
-Youth Assembly
-International Court of Justice

I looked up a number of conferences throughout the world such as THIMUN in The Hague, and BEIMUN in Beijing, to get an idea of the issues and committees present in MUN. I decided that WEBMUN should include 3 committees to start with - the General Assembly, the Human Rights Commission and the Security Council. The General Assembly allows many members to join as it can have up to 290 countries, and the other two provide smaller and varied committees.

I decided for WEBMUN to debate the same issues inside the committees as were discussed in The Hague in 2010. These issues are therefore very recent and since they were used during this conference, they are most likely good debate sparkers. Here are my issues for each committee:

General Assembly
  • Creating a legal framework for the issue of cyber warfare.

  • Ending the economic, commercial and financial embargo imposed by the United States of America against Cuba

Human Rights Commission
  • Measures to combat discrimination and social isolation of the disabled

  • Ensuring the right to food for all, without discrimination

Security Council
  • Nuclear disarmament of Iran and North Korea


I am only including a few issues in each committee because debate online is bound to be somewhat slow. If there are too many issues available, there will be little debate over each. I would rather have 30 people arguing over one thing a little bit every week than the members losing interest because none of their points have been answered.

Every country is included in the General Assembly, the full list of which may be found here. I wanted to use the countries of the Security Council in 2011 for my own Security Council, but they have not been voted yet. Instead I used the list of members in 2010:
-China
-France
-Russia
-England
-USA
-Austria
-Japan
-Turkey
-Bosnia
-Lebanon
-Uganda
-Brazil
-Mexico
-Uganda
-Nigeria

There are 47 members of the Human Rights council whose list can be found here.

Wikipedia contributors. "United Nations Human Rights Council." Wikipedia, The Free Encyclopedia. Wikipedia, The Free Encyclopedia, 12 Apr. 2010. Web. 13 Apr. 2010.

"Membership of the Security Council." United Nations. Security Council. 13 Apr. 2010

Wikipedia contributors. "List of United Nations member states." Wikipedia, The Free Encyclopedia. Wikipedia, The Free Encyclopedia, 14 Mar. 2010. Web. 13 Apr. 2010.

THIMUN. The Hague International Model United Nations. 2010. 13 Apr. 2010 <"http://www.thimun.org/">


Criterion C - Plan

I thought we had until the end of the year so I planned to create a website that may be a little overambitious to create in a month. However, it's always good to challenge myself and since computer programming is something I enjoy, I think I should be able to finish my website on time if I work once or twice over the week-ends.

Here is my tentative plan for the creation of WEBMUN:

(Click on it to see the larger version)

Tuesday, March 30, 2010

Design stage



From my three original ideas for a website, I realized I liked the second best (a debate website online). However, quick research on Google found that there are already websites like this. Since I don't want to simply be re-creating a website concept, I had to come up with something new. That's when I remembered that I had been looking for an MUN website online a while ago, and didn't find one.

MUN stands for Model United Nations and we hold a "conference" every year at our school. I also recently went to BEIMUN in Beijing and realized that though many of the delegates there love to debate, they don't always get the chance because conference travel fees are high. If I could set up an MUN experience online, this would give teenagers who like MUN a chance to exercise their skills more often. This could also be used as part of our ISU community to help students who have never done MUN before to get a first taste of it. Finally, some people like debating about real-world issues but lack the confidence to talk in front of a crowd. An online MUN could help with that.

Since most conferences are named as an acronym (ISUMUN, BEIMUN, AISMUN...), I decided to call mine one too - WEBMUN. I want the website to offer delegates the opportunity to debate both real-time and delayed times. In no particular order, here are the features I absolutely want in my website:

1. Information on MUN in general (debate procedures, researching tips, helpful links...)
2. Sign-up and login function
3. A number of separate committees with sign-up functions for countries and chair positions
4. Real-time private chatrooms for each committee
5. Private chatroom and inboxing for the drafting of resolutions
6. Discussion pages for each forum with options such as "Speak for this resolution", "Speak against this resolution", "Submit an amendment", "Motion to..." to allow for delayed debating
7. Informal discussion forum for delegates to get to know each other
8. Voting tool on each resolution

Here are the functions that I would like to implement but are not as fundamental, as some of them may be beyond my means:

1. Video chat options
2. Online resolution editor
3. Live newsfeed from the various forums
4. Regularly updated calendar with real MUN conferences

Tuesday, March 23, 2010

Creating your actual website

After looking at some bad websites, I looked at other lists highlighting websites which were both pleasing to the eye and easy to navigate. Many of these are what you would call "Photoshop" websites: a stylized background image and more borders are designed in Photoshop, before being integrated into the page using CSS code. It's a lot easier to create an image and just link to it, rather than try to create complex effects using code.

Talking about codes - it's good to know what makes a good website, but how do you create that website itself? The basic internet code is HTML, Hyper Text Mark-up Language. This code is rather simple and is interpreted by the browser, which returns the content with the basic formatting added by HTML. However, HTML is the earliest internet language and was consequently not adapted to formatting the page. It's possible to create complex layouts like that of this very nice website I found, Feed Stitch, by using HTML - but it's very hard, and might not look the same in all browsers. The other problem with using HTML to format your pages arises in bigger websites. If you want a 100 pages to follow the same layout, you are going to have to copy the same formatting code into every single one of these pages. This will make your code very messy and make it much harder to find errors in it.

For this reason, the World Wide Web Consortium (W3C) created a new language specifically designed to formatting text, called Cascading Style Sheets (CSS). CSS is recognized by all browsers. You don't even need to write in your HTML code a special code tag to indicate you are writing in CSS, as the browser will automatically understand. However, CSS is not usually written inside the HTML code but in an external page that is then linked to the HTML file. This makes your code a lot neater, as content and formatting are stored inside separate files. You only need to write one stylesheet and then link to it from all your other HTML pages.

A few years after HTML was developed, the W3C created a "new" version of HTML called XHTML which is overall very similar to the original. It simply is a slightly stricter version of HTML: all the tags must be properly closed, and written in lowercase. This is what good websites should be designed as anyway, so pretty much any neat HTML code is XHTML.

XHTML and CSS are content languages. This means that they display information for the user, give the user links to click on, change colors when you click these links - but that's about as far as interactivity goes. XHTML pages are basically text put on a computer screen. If you want your users to be able to change something, ask questions, fill in forms, etc. you will need other programming languages to help you.

Javascript is the most basic of these interactive web languages. Javascript can be integrated into an HTML page, or linked separately, just like CSS. While you wouldn't really be able to form an entire game or interactive page in JavaScript, there are many "under the scenes" functions it can perform: for example, send you the information sent in a form, store information about the user's computer in the form of cookies, show different versions of your webpage depending on which browser is being used...In the past, JavaScript was also used to make somewhat cheap effects like a trail of hearts following the user's cursor, but these practices have fallen out of use. The advantage of Javascript is that it requires very little bandwith, so it is often preferred to Flash when both are an option. Javascript is made up of functions, which can be called by any HTML element. For example, the click of a "Submit" button may call the JavaScript Submit function which will send it to some other web address.

The next step is PHP pages. PHP is a server-based web language, which means the code is translated from the server, not from the user's website. This makes testing (and therefore learning) PHP a lot harder, but not impossible. Since it is server-based, PHP allows for more interactivity: you can store names, logins, passwords, etc. in MySQL databases and then use these to provide the user with really personalized content such as an online game, or a discussion forum. PHP also operates with functions, but it is strongly linked to databases. It is much harder to learn than HTML. Hopefully I will be able to master the basics of it in order to create my own interactive website!

W3 Schools. 2010. Refnes Schools. 26 March 2010 <"http://www.w3schools.com/php/php_string.asp">.

Tuesday, March 16, 2010

Bad website designs

For our second week, we started by looking at various websites and design principles in order to learn what makes a good website, design and content wise. Some of these design principles are quite straightforward - don't use too many flashy images, don't use too many frames, make sure your font color is readable...It seems that more often than not, web designers have a problem with using too much rather than not enough. Readers actually prefer a completely blank, plain page to a flashy one giving you epileptic seizures!

What seemed to be a little more hard to control was navigation. I read about a term called "Mystery Meat Navigation," which basically describes a website which looks like it has really great design but is really nearly impossible to walk through. One example of this was the Leo Burnett website, which was made all in flash and seemed really edgy and creative. However, half of the time when I clicked a link it brought me back to the homepage, or to a very small page I wasn't able to resize.

I really liked one of the statements I read: Remember that the people looking at your website spend most of their time on other websites. If you try to come up with a brand-new, snappy navigation that is a unique experience compared to the rest of the web - your visitors won't like it. Somewhat creative designs are good, but not if they modify every single rule of navigation people are used to. That's why it's generally a good idea to stick to elements such as headers, sidebars, etc. Most of the design principles I read recommended not to create entirely Flash-based websites, as these are all eye candy, are hard to read and impossible to access to users with low bandwidth. I read the rule that you have 5 seconds to show some content on the page before the user gets bored and closes your website. I think this is a good number, though it might be a little longer for people with low bandwidth who are expecting it to take a while.

Another section I read about was making your site accessible to the blind, color-blind, deaf, paralyzed...many of the tips were small things that I hadn't thought about but which can make all the difference to these people. If you set your font-size, for example, it's impossible for the user to resize it and read it. It's better to use relative font measures such as ems. If you set your font to be size 0.9 ems, for example, it'll be a little smaller than the rest but you can still resize it. Another thing that is important for the blind is to make sure your links are descriptive, as often a special program will generate a list of all the links on the page and read them out loud, so the blind person can select one. But that's only useful if your links are descriptive: how do you know where the link "here" is going to take you if you can't read the text surrounding it?

I also went to another website with advice about web design, which was itself very well designed - Ungarbage. I learnt about a screen reading software called JAWS, which is the reference browser for the blind. Another of its functions is to read the names of all the tabs so that the blind person can switch. Once again, however, this is useless if your pages do not have specific, informative titles. Since JAWS is a free program, I think it would be a good idea to open my finished website with it in order to judge whether or not my website really is accessible to everyone.

Finally, I checked a website called listing faulty website designs, called Web Pages That Suck. While some of the examples were too obviously horrible to really teach you anything - for example, this Christian website with a moving background or this reference website on something quite obscure. However, I think that what I saw from all these website is that it's always better to follow simplicity over effects. If your page is a little too simple, no one will complain, but if it's full of effects, visitors will run away from it at the speed of light!

One last pet peeve of mine which wasn't listed on these websites but annoys me on a regular basis is member-only content. I hate having to join a website, which can take 5-10mn, without even knowing what is on it. I think most registration processes take too long - what really is the point of filling in your address, your zip code, and then confirming through two e-mails? I would like to keep the process as simple as possible on my website, if I have registrations.

Flanders, Vincent. Websites That Suck. 1996. 16 March 2010 <>

Kyrnin, Jennifer. "What Design Scares You? Reader Responses." About.com. 16 March 2010 <>

Shannon, Ross. Accessibility: Make Your Website Easy To Use For Everybody. 16 March 2010 <>

Lynch and Harton. "Sidebar: A List of Reminders." Web Guide. Pair Networks. 17 March 2010 <>

Marreiros, Mourylise. Ungarbage. 2007. 20 March 2010 <>

"Web Content Accessibility Guidelines. " 2009. W3C. W3C Networks. 21 March 2010

W3 Schools. 1999. Refnes Data. 21 March 2010 <>

Monday, March 8, 2010

Creating websites - why?

Today we started our new IT unit, creating websites. Mrs. Wilson had originally planned to create websites in groups and enter the annual Think Quest competition, but it turned out that we are not allowed to do summative group projects in Grade 10...we're still making these websites, but we'll be having our own contest. We will each be creating our own website from start to finish, on any topic of our choosing.

The internet is slowly taking over our entire lives. When I was younger, browsing the internet was just a hobby that I took up after school. Nowadays, I do nearly all of my research assignments online, I keep a blog for my IT grade and I was even internet-schooled due to the swine flu! As we saw in our last unit, more and more people are going from passive internet users to active content creators. It has become a lot easier to upload your own point of view on the internet, and this new trend is nicknamed "Web 2.0". More than adding a little to a Wikipedia article, however, it is good for teenagers like us to actually take initiative. Creating an entirely new website develops our risk-taking, writing, critical analysis skills: all competences that we could really use in our daily lives. Designing a website is not only an initiative project, it can also help people express themselves. When chatting to friends online, or participating in web boards, I'm usually more outgoing than I am in real life. For shy people, creating a website can really be a way of passing on information that may be useful to others but that they were not eager to share. Finally, websites make us understand we are part of a global community. Anyone will be able to access our finished sites, whether they are in the classroom or in Brazil! The internet breaks distance limitations and gives us a chance to inform not only the people we know, but the entire planet.