Cap Number of Alert Notifications
Currently if you have a large number of notifications, SMF will attempt to display all of them if you click the alert dropdown. There should be a limit on the number of notifications that's displayed and a link on the bottom that says "Show More" for usability purposes. (a la facebook) Not to mention the current approach can break layouts.

We already have an "all alerts" link, so I'd be fine with showing something like only the last 10 and letting them go to their profile to see the rest.
That would be fine. :+1: Although I'm tempted to say the "All Alerts" or "View All Alerts" should be moved to below the 10th alert. Just seems more logical.
oh i missed this @mcblaber we eliminated some text because of translated versions can be bit more larger, and this leads the dislocations of text and for mobile view.
Does this needs an admin/user setting or is it something we can hardcode at 10 ?
just hard code it, then no one can complain that things get screwy if they increase the number too high.
Ok, made the change, however, this could lead to some confusion since the total amount of unread alerts is still added to the alerts button.
For example, I have 17 unread alerts but the code is only showing 10. I would be better if there is some kind of text showing something like
"Showing latest 10" and a more promient "show all alerts link", the current one is somehow small and gets missed pretty easily when the list is showing.
Why not just use a scrollable div?
On Fri, Jul 11, 2014 at 11:03 AM, Jessica González <[email protected]
wrote:
Ok, made the change, however, this could lead to some confusion since the total amount of unread alerts is still added to the alerts button.
For example, I have 17 unread alerts but the code is only showing 10. I would be better if there is some kind of text showing something like
"Showing latest 10" and a more promient "show all alerts link", the current one is somehow small and gets missed pretty easily when the list is showing.
— Reply to this email directly or view it on GitHub https://github.com/SimpleMachines/SMF2.1/issues/1990#issuecomment-48763022 .
Not really a fan of adding a scroll in the middle of a page.
w/e
On Sat, Jul 12, 2014 at 8:06 AM, Jessica González [email protected] wrote:
Not really a fan of adding a scroll in the middle of a page.
— Reply to this email directly or view it on GitHub https://github.com/SimpleMachines/SMF2.1/issues/1990#issuecomment-48814637 .
A scroll bar would fix
this could lead to some confusion since the total amount of unread alerts is still added to the alerts button.
And it will create more issues:
- Most Android devices cannot scroll the content at all.
- On mobile devices there is no scroll indicator which will create an even bigger confusion.
- Scrollable divs are a pain to maintain crossbrowser wise.
- You're leaving themers with no other options.
Those are the reasons I'm not really a fan of adding a scroll overthere.
That cap should be 5 not 10.
I think limiting it to 10 with no additional explanation will be fine. That's how IPB does it (one of the forums I frequent is IPB powered) - shows 10 notifications with "show all notifications" and "options" links at the top.
I suggested 5 because of small screen mobile phones.
Does IPB shows the total amount of unread alerts? thats the main issue, we are showing that number and it can be confusing to users to see a number and then only see a different amount of alerts been displayed.
My proposal change is quite simple, show a "showing latest 10" where the "All alerts" link currently is and move the "All alerts" link to the button of the displayed alerts.
As for 5 vs 10, we can check the browser and display 5 if its a mobile device or something.
Yes, IPB does display the total number of unread alerts. One time recently I had 14 of them and it only showed the 10 most recent. I had to click on "View All Notifications" to see the other four.
Limit it to 10 with an additional notice at the bottom to saying "Show rest of the unread alerts"
sounds good to me.
Why do we need a "show the rest of the unread alerts" notice? We've already got a link you can click to view all alerts.
Because otherwise it's not instantly obvious that there are more unread notifications
On Thu, Jul 17, 2014 at 10:31 PM, Michael Eshom [email protected] wrote:
Why do we need a "show the rest of the unread alerts" notice? We've already got a link you can click to view all alerts.
— Reply to this email directly or view it on GitHub https://github.com/SimpleMachines/SMF2.1/issues/1990#issuecomment-49334555 .