Hi there,
I've just installed the mod on two pligg version, 9.8.2 and 9.9
I would like to have a url like this story?title=The-title
But the problem is, that it works for 9.9 and for the 9.8.2 it does not.
In addition I edited the file makeFriendly_main.php to modify the special characters, but unfortunately, nothing happens to 9.8.2.
PHP Code:<?php
function utils_makeUrlFriendly($output){
// http://www.php.net/manual/en/function.utf8-decode.php#31815
$output = html_entity_decode(htmlentities($output, ENT_COMPAT, 'UTF-8'));
$replace=array(
'à' => 'a',
'â' => 'a',
'é' => 'e',
'ê' => 'e',
'ù' => 'u',
'?' => '_',
':' => '_',
'.' => '_',
'!' => '_',
',' => '_',
';' => '_',
);
foreach ($replace as $key => $value) {
$output = str_replace($key, $value, $output);
}
return $output;
}
?>
Does this module really works with this version ?
Thanks



Reply With Quote



