Rewrites, feeds, and smileys

So after several years of having this site hosted in a shared Windows space, I switched over to a Linux space. In the past it didn't really matter which operating system my site was hosted, but now that my site uses CodeIgniter I wanted to use friendly urls and get rid of the "index.php" that is usually in there. To do this I make a simple rewrite rule in the .htaccess file to send any 404 to the index file, which will make it work as normal.

The script can be found here:

Second thing, since my site is a blog, was to create an rss feed.  Based on the documentation I found it was just a matter of adding the xml helper and using "header("Content-Type: application/rss+xml");" to your controller to parse it as an rss feed. After that just make a view file as an xml page and make sure it validates.

You can find the article here:

The third change I made was having text smileys convert to images in the comments section. This was the easiest since it is built into Codeigniter with the smiley helper. Just add smiley to your autoload file under helpers and you can use the functions in that file. You also need to add a folder with the smiley images into your directory so there is is a place to choose from. You may be able to add more smiley images and add them to the array at application/config/smileys.php. 

The documentation and link to download the smiley images can be found here:


I probably should post on here more

So my blog is still a work in progress. I'm mostly working on browser compatibility and making use of real estate on the right column.

All and all this is an interesting learning experience so far with the new features in HTML5 and CSS3. Some features however don't work on certain browsers, mainly with CSS3. One of which was the use of CSS gradients, which I was able to accomplish with browser-specific tag, which I found with the help of this article:

If I think of anything else to say I'll post more, though I'm mainly focused on cleaning things up and adding more features to the site. If you have a suggestion, please feel free to add a comment. I like feedback, as well as knowing people are actually reading this.


Spartan Internet Consulting Corporation

A list of sites I've done significant development on.

Social Hub for Facebook (PHP/MySql) - First facebook app, from concept to implementation

Virg Bernero for Governor (PHP/MySql) - Code compliance and redesign, regular site updates

WJR Explores Michigan (PHP/MySql) - port from ruby on rails to php as well as full redesign

WJR Golf (PHP/MySql) - port from ruby on rails to php as well as full redesign

Vacation Villas of Orlando (ASP) - Redesign and regular updates

Lothamer (ASP.Net DotNetNuke CMS) - Site redesign, page redesign, regular updates

Michigan State University International Studies & Programs

These are screenshots of various ISP sites that I have worked on.

Office of China Programs

old chinanew china

Office of International Development

old oidnew oid

International Studies & Programs Advisory/Consultative Committee

old accminsnew accmins

TC 446: Interactive Media II

This is the second web development course in DMAT and is focused mainly on development of web applications in Flash. The course consists of several mini projects.