Forums / Cotonti / Extensions / [RELEASE] AutoALIAS <- simple way to autocreate aliases

Lombi
#10764 2009-03-31 02:09
# Koradhil : There are better ways to replace illegal URI characters from a string. Please have a look here and here. Of course this isn't the prettiest option, but at least it should work for all languages.

Noone in their right mind would want to have htmlentity aliases. This was used on slovenian sites so the replaces are for slovenian characters which normalizes them. I'm aware that there may be fancier ways to do it, but it completely does the trick and it's fully client-based.

So no plugs or extra files needed.

The admin can put their own characters in there, if it's an english site it can stay as is.

$output = preg_replace("/[^A-Za-z0-9]/", "", $input);

Obviously noone would want that, since it needs one extra file or even a plugin.

---------------

Btw I noticed that two thirds of the code are for other cool features on the page add/edit page, so I'll remove them.
<a href="http://www.domenlo.com">Surreal Art</a>