Hi,
i want to replace single characters from thread titles in specific forums only.
i've added a small piece of code
Code:
function verify_title(&$title)
{
// replace html-encoded spaces with actual spaces
$title = preg_replace('/&#(0*32|x0*20);/', ' ', $title);
if($foruminfo['forumid'] == '31' or $foruminfo['forumid'] == '114' or $foruminfo['forumid'] == '32') {
$title = preg_replace('/[\.]/', ' ', $title);
$title = preg_replace('/[\-]/', ' - ', $title);
$title = str_replace(" ", " ", $title);
}
$title = trim($title);
in class_dm_thread_post.php (line 111), but it seems that $foruminfo is empty.
how to get the forumid in class_dm_thread_post? Any idea?
cheers