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.php
Code:
parsers/getNotifications.php
Add site setting for days to keep notifications before archiving:
ALTER TABLE
Code:
settings
Code:
notif_daylimit
Add notification setting to define archive status:
ALTER TABLE
Code:
notifications
Code:
is_archived
Code:
is_read
Code:
parsers/getNotifications.php
Code:
classes/Notification.php
Code:
includes/page_footer.php
Code:
includes/navigation.php