Salut Tostiere,
J'ai le même souci que toi mais j'en ai résolu une partie en éditant le fichier mos_smf_discussbot.php situé dans /mambots/content/
pour mettre les liens en français, retrouver le ligne 540 :
//Post the reply button
if ($auto_reply) {
if ($auto_reply_img) {
$showlink = '<a class="link_pos" href="'. $jsmf->fixLink('index.php?action=post;topic='. $topicOptions['id'] . ';num_replies=' . $topic->numReplies) . '"><img border="0" src="' . $settings['images_url'] . '/topic/my_veryhot_post.gif" alt="Ajouter un commentaire" /> ('.$topic->numReplies.') '.$link_text.'</a>';
} else {
$showlink = '<a class="link_pos" href="'. $jsmf->fixLink('index.php?action=post;topic='. $topicOptions['id'] . ';num_replies=' . $topic->numReplies) . '"><img style="border:0px;" src="'.$discuss_image.'" alt="Ajouter un commentaire" /> ('.$topic->numReplies.') '.$link_text.'</a>';
}
} else {
$showlink = '<a class="link_pos" href="' . $jsmf->fixLink('index.php?topic=' . $topicOptions['id'] . $smf_location) . '"><img style="border:0px;" src="'.$discuss_image.'" alt="Ajouter un commentaire" /> ('.$topic->numReplies.') '.$link_text.'</a>';
}
puis retrouver le ligne 591
if ($auto_reply) {
if ($auto_reply_img) {
$showlink = '<div class="dsc_bar"><a class="link_pos" href="'.$jsmf->fixLink('index.php?action=post;topic=' . $resultid . ';num_replies=' . $topic->numReplies) . '"><img border="0" src="' . $settings['images_url'] . '/topic/my_veryhot_post.gif" alt="Ajouter un commentaire" /> ('.$replies.') '.$link_text.'</a></div>';
} else {
$showlink = '<div class="dsc_bar"><a class="link_pos" href="'.$jsmf->fixLink('index.php?action=post;topic=' . $resultid . ';num_replies=' . $topic->numReplies) . '"><img style="border:0px;" src="'.$discuss_image.'" alt="Ajouter un commentaire" /> ('.$replies.') '.$link_text.'</a></div>';
}
} else {
$showlink = '<div class="dsc_bar"><a class="link_pos" href="'.$jsmf->fixLink('index.php?topic=' . $resultid . $smf_location) . '"><img style="border:0px;" src="'.$discuss_image.'" alt="Ajouter un commentaire" /> ('.$replies.') '.$link_text.'</a></div>';
}
}
return $showlink;
} //end of make_smfforumlink
pour avoir les accents correctement renseignés, à partir de la ligne 604 :
/**
* Replaces functionality normally found in htmlentities
*
* @param string $str
* @return string
*/
function jsmf_htmlentities($str)
{
$search = array("&", "'", '"', '<', '>', 'à', 'é', 'è', 'ê', 'â', 'ô');
$replace = array('&', '´', '"', '<', '>', 'à', 'é', 'è', 'ê' , 'â', 'ô');
return str_replace($search, $replace, $str);
}
/**
* Replaces functionality normally found in html_entity_decode
*
* @param string $str
* @return string
*/
function jsmf_html_entity_decode($str)
{
$search = array('&', '´', '"', '<', '>', 'à', 'é', 'è', 'ê' , 'â', 'ô');
$replace = array("&", "'", '"', '<', '>', 'à', 'é', 'è', 'ê', 'â', 'ô');
return str_replace($search, $replace, $str);
}
Il me reste à trouver pourquoi l'apostrophe ne fonctionne pas ... si ça peut t'aider
TheShift