Re: Remove read notifications?
Reply #1 –
A better way to "detect" read notifications would be handy (e.g. mark them as read when the message is read irrespective of how the user reach the message), though nobody managed to make it become reality.
A scheduled task I guess it would work, the "main code" would be something like:
$mentions = getAllMentionIDsYouWantToMarkAsRead();
require_once(CONTROLLERDIR . '/Mentions.controller.php');
$mentions = new Mentions_Controller();
foreach ($mentions as $mention_id)
{
$mentions->setData(array(
'id_mention' => $id_mention,
'mark' => 'read',
));
$mentions->action_markread();
}
getAllMentionIDsYouWantToMarkAsRead is of course just a dummy function that require an actual implementation.