MyBB Community Forums

Full Version: Moderator logs of poll edits
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
After a bit of testing, it appears that edits to polls (ie. changing the number of votes for each option) aren't showing up in the moderator logs. Is this normal, and is there some way to make them show up? We'd like to make sure that our polls haven't been tampered with.
No they're not logged by default (I think they should be though...should post it in MyBB ideas)

You can try to do this modification in polls.php.

Find:
$plugins->run_hooks("polls_do_editpoll_end");
After that line, add:
$modlogdata = array('tid' => $thread['tid'], 'fid' => $thread['fid']);
log_moderator_action($modlogdata, 'Poll edited');