UvumiTools Gallery : light HTML enhancements

Working with HTML and Javascript is always interesting in terms of Search engine optimisation. What's nice about the Uvumi Tools  Gallery, distributed on MIT license, is not what you would notice at first sight when trying out this little mootools script. It actually starts off with a table like layout of thumbnails, which turns out to a vertical scroll bar after the first click on any image. This is where the fun comes in : the vertical scroll is driven by the mouse wheel and gives a nice feeling out of this light javascript / HTML combination. But don't be fooled  : its main advantage (being light) is also its main drawback ... won't generate thumbnails unless you work at a PHP -or anything server side language- integration. If you have a few minutes to spare, dare to take a look at Uvumi's textarea : integrates a progress bar that displays the ratio of words typed / allowed via a visual indicator of how close you are  to the maximum input size, also automatically grows and shrinks the textarea height to accommodate larger text submissions. More  @ http://tools.uvumi.com/gallery.html

Create url for mod_rewrite

Creating urls with Search engine optimized keywords from database records involves more than just mod_rewrite and htaccess synchronization. The first step of a good search engine indexing strategy is to take one of your database fields as index (title is a good one) , transform it by removing spaces, special characters, and if necessary append record unique identifier to the generated string. Here is a sample function that transforms a string to make it file compliant using a regular expression to discard non alphanumeric characters and replace spaces with dashes :

function make_url($string){

$pattern = "([^[[:alnum:]|[:space:]|[:blank:]])+";
$anchor = ereg_replace($pattern, '', strtolower($string));
$pattern = "([[:space:]]|[[:blank:]])+";
$anchor = ereg_replace($pattern, '-', $anchor);
return short_name($anchor); // return the short filtered name
} # end function