That (or a form of that) replaces "-" with a space. Can you please help me add that to this small breadcrumbs script? Or a version of your own making that does the same thing? Thanks
Code PHP:<?php $path = $_SERVER["PHP_SELF"]; $parts = explode('/',$path); if (count($parts) < 2) { echo("home"); } else { echo ("<a href=\"/index.php\">home</a> » "); for ($i = 1; $i < count($parts); $i++) { if (!strstr($parts[$i],".")) { echo("<a href=\""); for ($j = 0; $j <= $i; $j++) {echo $parts[$j]."/";}; echo("\">".$parts[$i]."</a> » "); } else { $str = $parts[$i]; $pos = strrpos($str,"."); $parts[$i] = substr($str, 0, $pos); echo $parts[$i]; }; }; }; ?>



Reply With Quote
Bookmarks