Page 1 of 1

Mark as read

PostPosted: 21 Jan 2011, 10:19
by Jack
Hey,

I have had a lot of users complain about how they click on a link in the notification popup, but the notification window still says they have a notification until they click on the button. Could you add something so that the message can be marked as read when the user clicks on the link.

A way that this could be done would be to simply append a &notificationRead=1&notificationID={note_id}

Then, you could simply check for the variable and mark it read if the variable is set?

Just kinda speaking out of my head, let me know if this is something you think is good or bad?
Jack

Re: Mark as read

PostPosted: 03 Feb 2011, 12:56
by Jack
@Jason, is there anyway I can implement this into my site? The only thing that is really holding me back is that the notification ID is not being sent to the template section so I can somehow get the variable and set it read in the database.

Re: Mark as read

PostPosted: 03 Feb 2011, 15:00
by Jason
You can edit the subdomain/receive_core.php file in conjunction with the subdomain/includes/functions_notifications.php file to get the notification ID as well. It's a pretty easy edit and should be fairly obvious.

I'm still a little confused what you're trying to do though as clicking the notification popup in the first place should mark them all as read?

Re: Mark as read

PostPosted: 04 Feb 2011, 05:31
by Jack
Well, many users are clicking on the link of what the notification action was. So if someone sends them a private message, they click on the link to view it. Then the notification pops back up and they get annoyed lol So when they click on the url, it would mark that single notification read instead of clicking on the notifications button to view every notification.

Working on a tutorial for everyone. Maybe you could just implement directly into the next version so I don't have to update this everytime you release an updated file that affects either of these two :p

Topic Closed

PostPosted: 07 Nov 2012, 12:40
by Staff Bot
This thread has been locked because the last post is greater than six months old. There is a good chance that the information in this thread is outdated. Please open a new topic if you wish to discuss this further.