I would like to allow users to add anonymous comments with discussion plugin.
I've followed this but that only fix it for javascript part.
http://www.dokuwiki.org/plugin:discussion:discussion#anonymous_email
I thnk this part of php starting at line 243 of action.php is related:
} elseif((isset($_SERVER['REMOTE_USER']) && $this->getConf('adminimport') && auth_ismanager()) || !isset($_SERVER['REMOTE_USER'])) {
if(empty($_REQUEST['name']) or empty($_REQUEST['mail'])) return; // don't add anonymous comments
if(!mail_isvalid($_REQUEST['mail'])) {
msg($lang['regbadmail'], -1);
return;
} else {
$comment['user']['id'] = 'test'.hsc($_REQUEST['user']);
$comment['user']['name'] = hsc($_REQUEST['name']);
$comment['user']['mail'] = hsc($_REQUEST['mail']);
}
}
I hope someone can help.