| add this bit of code to the top of your index.php right under \", \"\", $str);
$str = str_replace(\"<\", \"\", $str);
$str = str_replace(\"(\", \"\", $str);
$str = str_replace(\")\", \"\", $str);
$str = str_replace(\"[\", \"\", $str);
$str = str_replace(\":\", \"\", $str);
$str = str_replace(\"]\", \"\", $str);
$str = str_replace(\"|\", \"\", $str);
$str = str_replace(\"\\/\", \"\", $str);
$str = str_replace(\"/\", \"\", $str);
$str = str_replace(\"\'\", \"\", $str);
$str = str_replace(\"!\", \"\", $str);
$str = str_replace(\".\", \"\", $str);
$str = str_replace(\",\", \"\", $str);
$str = str_replace(\"?\", \"\", $str);
$str = str_replace(\"&\", \"and\", $str);
$str = str_replace(\" \", \"-\", $str);
$str = strtolower($str);
return $str;
}
then in index.php find this line
$gallery=str_replace(\"%outurl%\",\"out.php?id=$row[id]\",$gallery);
replace it with this
$gallery=str_replace(\"%outurl%\",$row[id] . \"-\" . str_link($row[title]),$gallery);
then add this line to your htaccess file
RewriteRule ^([0-9]+)-([^/]+)\\.html*$ out.php?id=$1&title=$2
then test it out
you can get a preview of how it looks by going to www.babemeister.com just hover over a thumb on the main page and view your status bar
if you have any problems just contact me
AIM: SyphilisBox
ICQ: 241720280
E-Mail: Jaysin@Gmail.com
if you\'re a CFUSer you can get ahold of me in #CFUS on IRC
|