[eluser]Unknown[/eluser]
Hi,
I've adjusted the url_helper.php to fit SEO requirements.
The function url_title() performs some preg_replace on the title you whish, but did not remove beginning and ending dashes. And for the &, it does not replace it with 'and'.
-----
$title = "- - -- $ What's--- wrong with CSS & Why # $?";
echo $title returns -whats-wrong-with-css-why-
-----
Go to line 487 in the url_helper.php and add this code to the first line of the array:
'&' => 'and', (or in the preferred language -> for dutch 'en', for german 'und')
then add this code at the end of the array, putting a , at the already present last line:
'^-*' => '',
'-*$' => ''
-----
$title = "- - -- $ What's--- wrong with CSS & Why # $?";
echo $title returns whats-wrong-with-css-and-why
-----
Hope this helps out for some of you guys/girls.
Regards.