2007-08-21, 03:09 PM
Try this, no guarantees:
$str = array('a', 'e', 'ó', 's', 'l', 'z', 'c', 'n', ' ');
$rep = array('a', 'e', 'o', 's', 'l', 'z', 'c', 'n', '-');
$linksubject = str_replace($str, $rep, $row['subject']);
echo("<a href=\"{$forumpath}{$linksubject}-t-{$row['tid']}\">{$row['subject']}</a> -
Posted: {$date} {$time} by <a href=\"{$forumpath}member.php?action=profile&uid={$row2['uid']}\">{$row2['username']}</a><br />");
echo("{$message}<br /><br />");
echo("Replies (<a href=\"{$forumpath}{$linksubject}-t-{$row['tid']}\">{$row['replies']}</a>)<br /><hr />");