I don't know phorum, but assuming it's php, it shouldn't be hard to do something like this to the page output, just before it's rendered to the user:
// supports these link formats:
// [[Collection
age|Description]] or
// [[Collection
age]]
// [[Page]]
$Pattern="/\[\[(\\w+
?(\\w+)\\|?([^]]*)\\]\\]/im";
if (preg_match_all ( $Pattern, $pgText, $colMatches,PREG_SET_ORDER))
{
//print "
";
//print_r($colMatches);
//print "
";
foreach ($colMatches as $Match)
{
// because of PREG_SET_ORDER
// $Match[0] is the full match, $Match[1] is the first submatch, $Match[2] is the second submatch etc.
$Collection=$Match[1];
$PageName=$Match[2];
$LinkText=$Match[3];
// TODO - cleanup $Collection, and $PageName to not have any or
etc tags in them!
if ($LinkText=="")
{
return false;
}
if (strlen($Collection)==0)
{
$Collection="Main"; // a default
}
$pgText=str_replace($Match[0],"".$LinkText."",$pgText);
}
}