#1471 closed enhancement (no action required)
bp_core_get_notifications_for_user()
Reported by: | _DorsVenabili | Owned by: | |
---|---|---|---|
Milestone: | Priority: | minor | |
Severity: | normal | Version: | |
Component: | Core | Keywords: | needs-feedback |
Cc: | _DorsVenabili |
Description
I think could be very useful if there are a info zone with all the new notifications and invitations, where the user only have to have a look and to accept or refuse those requests. For example, it could be good to see a info area in your profile page showing you a link to your all notifications and invitations page in case you have.
For the moment, I have done two functions to show separately the notifications and the invitations in the area that you can see in the attached image.
I have written the following code in index.php of the profile folder:
<?php ... $user_id = $bp->displayed_user->id; $logged_user_id = $current_user->id; if($user_id == $logged_user_id) { new_notifications(); new_invitations(); } ?> ...
Attachments (2)
Change History (8)
#2
@
15 years ago
- Summary changed from New info zone with Notifications and invitations to bp_core_get_notifications_for_user()
#3
@
14 years ago
- Component set to Core
- Keywords needs-feedback added; functions notifications invitations profile removed
By the way, I forgot to say that the new function, new_notifications(), not only will show the standar notifications, it will add to the list some more cases that the standar notificaction did not show. like when a group accept your membership request, for example and some more.
I think, it could be interesting to add those cases to the function bp_core_get_notifications_for_user().