Subscription Expiry Notification on Forumhome
This modification is in the archives.
Hack Name: Subscription Expiry Notification on Forumhome
Hack Version: 2.1 Hack Author: Kall Release: 20 April 2005 Description: Shows date of Subscription Expiry (and days remaining) on Forumhome to members with Active Subscriptions. Requested by: Mike Warner. Thanks to: MarcoH64 (big thanks to Marco), Mike Warner and The_Realist for help on day one ironing out the bugs. Files modified: 1 (root/index.php) Templates Modified: 1 (FORUMHOME) New templates: 1 (forumhome_nzb_exprydatebit) By default, this will show to people with under 30 days remaining on their Subscription and the next 5 subscriptions to expire. To change the days, change the 30 at the start of the last PHP edit to the number of days you want to show in advance. To change the number, change the 5 at the end of the sql query. This is my first hack that includes either a joining of tables or a new template or a template that can be called more than once, so I apologise in advance if a string of runaway queries turns your server into swiss cheese. New features in v2.1: Optimised query to only be run for non-guests and tidied up a lot. (thanks to Marco). To upgrade, simply replace the final index.php edit with the one inside the new .txt file. Updates - Fixed query thanks to MarcoH64. Extended message thanks to The_Realist. Tidied message up, XHTML-wise and gave it a nice little box. v2.0 Released. Thanks to MarcoH64 for shaming me into making it a bit more functional with his first post. Download This modification is archived and cannot be downloaded. Screenshots
|