Locked Solved Feature requests

Automaticaly Mark Messages as Read

Locked by Fred · 22 Jan 2026 19:44 • Solved by Fred · 22 Jan 2026 19:44
Avatar
Posts 101 507

Would it be Possible to Mark Messages automaticaly as Read after Reading it in the Notifications?

Thanks.

  • notifications solved
Avatar
Posts 428 1580

I look that ;)

Avatar
Posts 428 1580

Modifications Made

Added from_notification Parameter in Links:

  • In themes/assets/js/notifications.js: Added the from_notification parameter when clicking on a notification in the dropdown.
  • In app/Views/notifications/index.php: Added the from_notification parameter in the links on the notifications page.

Automatic Detection and Marking:

  • In app/Views/discussions/show.php:
    • Detected the from_notification parameter in the URL.
    • Automatically marks the notification as read when the page loads.
    • Cleans up the URL by removing the parameter after processing.

Workflow:

  • When you click on a notification (either from the dropdown or the /notifications page), the link includes ?from_notification={id}.
  • Upon arriving at the discussion page, the notification is marked as read.
  • The URL is cleaned to remove the parameter.

Notifications are now automatically marked as read when you view the associated message.

This discussion is locked

Log in to reply
Navigation
3 Posts
post #1
02 Jan 2026
By Utilisateur
Statistics
166
Discussions
911
Replies
21
Flatboarders
4
Contributors
New member : Emmanuel
Online
32 Guests online