09-15-2017, 06:29 PM
Cool, I'll take a look into it.
---
Here's updated notifications code to add pagination and a site setting to specify when to auto-archive read notifications. There are new optional constructor parameters to specify whether to get current or all notifications and to specify the archive day limit. I've updated and to default to the site settings.
Add site setting for days to keep notifications before archiving:
ALTER TABLE ADD INT(3) NOT NULL DEFAULT '7' ;
Add notification setting to define archive status:
ALTER TABLE ADD TINYINT(1) NULL DEFAULT '0' AFTER ;
: https://pastebin.com/j813VZEY
: https://pastebin.com/X8Zry1RJ
: https://pastebin.com/kpqN19e9
: https://pastebin.com/1rCCrYiM
---
Here's updated notifications code to add pagination and a site setting to specify when to auto-archive read notifications. There are new optional constructor parameters to specify whether to get current or all notifications and to specify the archive day limit. I've updated
Code:
includes/navigation.phpCode:
parsers/getNotifications.phpAdd site setting for days to keep notifications before archiving:
ALTER TABLE
Code:
settingsCode:
notif_daylimitAdd notification setting to define archive status:
ALTER TABLE
Code:
notificationsCode:
is_archivedCode:
is_readCode:
parsers/getNotifications.phpCode:
classes/Notification.phpCode:
includes/page_footer.phpCode:
includes/navigation.php