Automatic Calendar Reminders
This modification is in the archives.
What does it do?
This hack allows your members to receive automatic reminders for all upcoming events in one or more calendars of their choice without having to request individual reminders for each event. In effect, this operates like a subscription to a calendar. How does it work? When opening a calendar, the user will be presented with an option just under the calendar title to subscribe or unsubscribe to the calendar. Members can request automatic reminders for all events on the calendar for one, two or three days in advance. Once per day, a digest of all upcoming events will be sent to the user advising them of upcoming events in the time frame they chose. (see attached screenshot) Users can also unsubscribe from a calendar by going to the UserCP and Event Reminders section (see attached screenshot) Example Email (uses the event reminder email template):
You do not need to uninstall the previous version. To upgrade from previous version to 1.0.3: 1. Remove the Calendar Subscription cron job if it exists. 2. Delete the file includes/cron/calendar_reminder.php 3. Make the changes to the reminder.php file as specified in the instructions below. Installation Instructions - 1 XML upload - 1 template modification - 1 file edit 1. Use the Product Manager to import the product file product-rah_calendar_autoremind_1_0_3.xml 3. Use the Style Manager to add the following code to the bottom of your CALENDAR_REMINDER template: HTML Code:
<!-- calendar subscriptions table --> <br /> <form action="calendar.php?do=dosubscriptions" method="post" name="unsubscribe"> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="hidden" name="do" value="dosubscriptions" /> <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td class="tcat" colspan="3"> Calendar Subscriptions </td> </tr> <if condition="$show['havesubscriptions']"> <tr> <td class="thead"> Calendar </td> <td class="thead" nowrap="nowrap"><a href="$sorturl&order=asc&sort=reminder">$vbphrase[reminder]</a> $sortarrow[reminder]</td> <td class="thead" align="center"><input name="allbox" type="checkbox" value="Check All" title="$vbphrase[check_uncheck_all]" onclick="checkall(this.form);" /></td> </tr> $subscriptionbits <tr> <td class="tfoot" colspan="5" align="$stylevar[right]"><div class="smallfont"> $vbphrase[selected_events] <select name="what"> <optgroup label="$vbphrase[delete_reminders]"> <option value="delete">$vbphrase[delete]</option> </optgroup> </select>$gobutton </div></td> </tr> <else /> <tr> <td class="alt1" align="center" colspan="5"> <br /> You have no calendar subscriptions. <br /> <br /> </td> </tr> </if> </table> </form> PHP Code:
AND event.visible = 1
PHP Code:
AND event.visible = 1
PHP Code:
$eventlist = array();
PHP Code:
$dsq = $vbulletin->db->query_read("
And, that's it. I hope you enjoy. Please click "" if you use this hack. I have not tested this with 3.6.1 yet, but there shouldn't be any reason it won't work with it. Revision History Version 1.0.0 - Initial Release Version 1.0.1 - Fixed caching bug that caused calendar templates to become uncached when the user clicked the subscribe or unsubscribe link. Version 1.0.2 - Fixed problem were reminders were sent for 3 days in advance regardless of the setting a member chose. Version 1.0.3 - Removed calendar_reminder.php and merged email code with existing reminder.php. A parallel version for 3.5.x forums is now available here. Download
This modification is archived, downloads are still allowed. Screenshots |
Similar Mods
Automatic Calendar Reminders | vBulletin 3.5 Add-ons |