tenants
Well-known member
What regex does xenforo use to covert the thread titles into the section used in urls,
I thought about using my own "hack", but I dont like it and I want to be consistent
my own hack:
(then after this, obviously add the .node_id)
I thought about using my own "hack", but I dont like it and I want to be consistent
my own hack:
Code:
public function intoUrl($title){
$url = preg_replace("/[^0-9A-Za-z]/","-", $title);
$url = str_replace("--", "-",$url);
$url = str_replace("--", "-",$url); // this is really horrible, using the same str_replace, but clears up any odd dashes ---
return $url;
}