Advertisement:

Author Topic: Calendar Event Reminder  (Read 19018 times)

Offline HoverClub

  • Jr. Member
  • **
  • Posts: 172
  • hoverclub.org.uk
    • The Hovercraft Cruising Club
Calendar Event Reminder
« on: January 28, 2011, 06:48:03 PM »
Link to Mod

User-selectable email reminders for calendar events.

Adds a auto drop-down menu icon to events showing in the calendar and linked posts.  The menu allows users to select preset reminder periods from 8 hours to 8 weeks.  The system will send a reminder email the selected period before the event.
« Last Edit: January 17, 2012, 05:40:08 AM by HoverClub »

Offline Old Fossil

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,974
  • Gender: Male
  • Fussy Old Sod
    • MKComm on Facebook
    • @mkcommforum on Twitter
Re: Event Reminder
« Reply #1 on: January 30, 2011, 12:19:19 PM »
This mod looks good.

Would be ideal for my forum as it is for the local community and makes heavy use of the Calendar.

However on line 158 of my display template file I have this error.

Undefined Inex: View Week.

$url = '<li><a href="' . $scripturl . '?action=calreminder;eventid=' . $event['id'] . ';eventstart=' . $event['start_timestamp'] . (isset($context['current_year']) ? ';year=' . $context['current_year'] : '') . (isset($context['current_month']) ? ';month=' . $context['current_month'] : '') . (isset($context['current_day']) ? ';day=' . $context['current_day'] : '') . ($context['view_week'] ? ';viewweek' : '') . ';' . $context['session_var'] . '=' . $context['session_id'] . ';reminder=';


Offline HoverClub

  • Jr. Member
  • **
  • Posts: 172
  • hoverclub.org.uk
    • The Hovercraft Cruising Club
Re: Event Reminder
« Reply #2 on: January 31, 2011, 09:40:59 AM »
Edit the display template line 158 and replace:

$context['view_week']

..with

isset($context['view_week'])


.. I'll fix it at the next update (although it does work OK with the curve theme on RC4  ;D)

Offline Old Fossil

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,974
  • Gender: Male
  • Fussy Old Sod
    • MKComm on Facebook
    • @mkcommforum on Twitter
Re: Event Reminder
« Reply #3 on: January 31, 2011, 09:50:13 AM »
Will do it this afternoon.

Another thing I have noticed is not all the events have the image next to them.

The calendar is open to guests if ya wanna take a peep.

www.miltonkeynesaware.co.cc/mkaforum

Offline Old Fossil

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 10,974
  • Gender: Male
  • Fussy Old Sod
    • MKComm on Facebook
    • @mkcommforum on Twitter
Re: Event Reminder
« Reply #4 on: January 31, 2011, 10:06:19 AM »
Getting these errors now.

http://www.xxxxxx/index.php?action=calendar
Apply Filter: Only show the errors with the same message
2: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument

Apply Filter: Only show the errors from this file
File: /home/xxxxxpublic_html/xxxxx/Themes/default/Calendar.template.php
Line: 383
   
http://www.xxxxxx/xxxx/index.php?action=calendar
Apply Filter: Only show the errors with the same message
8: Undefined variable: rems_done
Apply Filter: Only show the errors from this file
File: /home/xxxxx/public_html/xxxx/Themes/default/Calendar.template.php
Line: 383
   
377:    
/* The events are made up of:
378:    
title, href, is_last, can_edit (are they allowed to?), and modify_href. */
379:
foreach ($day['events'] as $event)
380:    
{
381:    
382:    
==>383:    if (!in_array($event['id'],$rems_done))
384:    {
385:    
$rems_done[]=$event['id'];
386:    
echo make_reminder_menu($event,null);
387:    }
// If they can edit the event, show a star they can click on....


Hmm since the suggested edit was applied I now see the following on the page.

Parse error: syntax error, unexpected ')' in /home/xxx/public_html/xxxxx/Themes/default/Display.template.php on line 158
« Last Edit: January 31, 2011, 10:20:49 AM by Brack1 »

Offline HoverClub

  • Jr. Member
  • **
  • Posts: 172
  • hoverclub.org.uk
    • The Hovercraft Cruising Club
Re: Event Reminder
« Reply #5 on: January 31, 2011, 12:13:35 PM »
Looks like you mis-edited the template.  Do a search and replace by copying the text from the post above.

Guests can't see the reminder icon in the calendar as, being guests, they haven't got an email address to recieve a reminder.

Offline willemjan

  • Full Member
  • ***
  • Posts: 671
  • Gender: Male
  • Dutch and proud
Re: Calendar Event Reminder
« Reply #6 on: February 07, 2011, 08:07:33 AM »
Here is the Dutch translation:

Code: [Select]
$txt['reminder_mod_title'] = ' stuur mij een email voordat dit evenement begint';
$txt['reminder_mod_hours'] = 'uren';
$txt['reminder_mod_day'] = 'dag';
$txt['reminder_mod_days'] = 'dagen';
$txt['reminder_mod_week'] = 'week';
$txt['reminder_mod_weeks'] = 'weken';
$txt['reminder_noremind'] = 'geen reminder';
$txt['reminder_emailsubject'] = 'Evenement Reminder!';

I'm not shure if this part is correct. Could you place that in context for me?

Code: [Select]
$txt['reminder_mod_title'] = ' stuur mij een email voordat dit evenement begint';

Offline HoverClub

  • Jr. Member
  • **
  • Posts: 172
  • hoverclub.org.uk
    • The Hovercraft Cruising Club
Re: Calendar Event Reminder
« Reply #7 on: February 07, 2011, 09:47:40 AM »
Embarrassingly, it's not actually used anywhere - I'll remove it next update  :-[
« Last Edit: February 07, 2011, 09:53:42 AM by HoverClub »

Offline willemjan

  • Full Member
  • ***
  • Posts: 671
  • Gender: Male
  • Dutch and proud
Re: Calendar Event Reminder
« Reply #8 on: February 07, 2011, 09:52:39 AM »
Ok, then that is the Dutch translation ;) Have fun with it  :)

Offline igirisjin

  • Jr. Member
  • **
  • Posts: 374
  • Gender: Male
    • Outdoor Club Japan
Re: Calendar Event Reminder - errors after install
« Reply #9 on: February 27, 2011, 05:06:13 AM »
Im getting the same (log) errors as Brack1 with a clean install on rc4 or rc5 with no errors during package setup and no manual edits.

Adds up to about 200-300 errors per day.



http://************/events/index.php?action=calendar;year=2011;month=3

2: in_array() [<a href='function.in-array'>function.in-array</a>]: Wrong datatype for second argument

File: /home2/************/public_html/events/Themes/default/Calendar.template.php (main sub template - eval?)
Line: 383


http://************/events/index.php?action=calendar;year=2011;month=3

8: Undefined variable: rems_done

File: /home2/************/public_html/events/Themes/default/Calendar.template.php (main sub template - eval?)
Line: 383


Andy
« Last Edit: February 27, 2011, 05:11:26 AM by igirisjin »

Offline HoverClub

  • Jr. Member
  • **
  • Posts: 172
  • hoverclub.org.uk
    • The Hovercraft Cruising Club
Re: Calendar Event Reminder
« Reply #10 on: February 27, 2011, 09:40:43 AM »
These aren't fatal errors - they should be fixed in the latest release though (05).

Offline igirisjin

  • Jr. Member
  • **
  • Posts: 374
  • Gender: Male
    • Outdoor Club Japan
Re: Calendar Event Reminder
« Reply #11 on: February 28, 2011, 11:45:18 PM »
That was quick .... reminder5
 :)

Seems like 1 error gone but still getting this one:

http://**********.com/events/index.php?action=calendar

8: Undefined variable: rems_done

File: /home2/*********/public_html/events/Themes/default/Calendar.template.php (main sub template - eval?)
Line: 379
« Last Edit: March 01, 2011, 12:22:04 AM by igirisjin »

Offline doughboy99

  • Semi-Newbie
  • *
  • Posts: 89
Re: Calendar Event Reminder
« Reply #12 on: March 01, 2011, 01:47:03 PM »
Is there any way to set events to default to send emails to all members or individuals? We use calendar events for amongst other things recording who is on the swimming pool life guard rota and it would be great to be able to default to sending an email the day before each individuals "watch". Similarly we have some club events such as talk that we send a reminder about to our membership a couple of days before the event. It would be great if we could automate this via the forum.

Thanks for a useful mod.

Offline HoverClub

  • Jr. Member
  • **
  • Posts: 172
  • hoverclub.org.uk
    • The Hovercraft Cruising Club
Re: Calendar Event Reminder
« Reply #13 on: March 01, 2011, 01:57:32 PM »
It would probably be possible to send a bulk reminder email to all members but that's a guaranteed way to get listed as a spam site ::)

Why not set a reminder for yourself using this mod, then send a newsletter "reminder" (Admin->Main->News and Newsletters->Newsletters) to specific groups?

Offline doughboy99

  • Semi-Newbie
  • *
  • Posts: 89
Re: Calendar Event Reminder
« Reply #14 on: March 01, 2011, 02:30:40 PM »
Thanks for the quick reply. I take your point about spam. In our case we have a restricted and small membership(a dive club) who actively want to be reminded about talks etc. H#ll try your suggestion about setting a reminder for myself as a prompt to email people.

In pool marshall rota is more of an issue for us as its a pain when someone forgets to turn up. I'll try taking a look at Outlook(shiver), although it sort duplicates enties somewhat.

Offline hcfwesker

  • SMF Hero
  • ******
  • Posts: 2,144
  • Gender: Male
  • SMF 2.0.4
Re: Calendar Event Reminder
« Reply #15 on: March 06, 2011, 04:18:04 PM »
I haven't tested this MOD out, just wondering of their is a PM reminder option, instead of sending an email?

Offline HoverClub

  • Jr. Member
  • **
  • Posts: 172
  • hoverclub.org.uk
    • The Hovercraft Cruising Club
Re: Calendar Event Reminder
« Reply #16 on: April 02, 2011, 01:19:31 PM »
I haven't tested this MOD out, just wondering of their is a PM reminder option, instead of sending an email?

Nope - it's really the same thing as most people elect to get email reminders of a PM

Offline 72 454

  • Semi-Newbie
  • *
  • Posts: 83
Re: Calendar Event Reminder
« Reply #17 on: April 09, 2011, 05:47:33 PM »
Nice mod! Glad to see some interest in improving the Calendar/Events features. Tnx!  :)

Offline igirisjin

  • Jr. Member
  • **
  • Posts: 374
  • Gender: Male
    • Outdoor Club Japan
Re: Calendar Event Reminder
« Reply #18 on: May 17, 2011, 04:31:42 AM »
Non-fatal error almost completely gone now ... I get an error when a guest selects a reminder from the calendar page - thats about it.

Adding to this post that one of my main uses for this mod is that the icon on the calendar splits up the events rather well - improves the standard calendar layout which makes it hard to see where one event title ends and the other begins - just the comma in small wrapped linked text. So it would be nice it it stayed rather than made invisible to guests...
« Last Edit: May 17, 2011, 06:15:24 AM by igirisjin »

Offline petesky

  • Jr. Member
  • **
  • Posts: 312
Re: Calendar Event Reminder
« Reply #19 on: July 01, 2011, 07:49:58 AM »
I deleted my 0.7 but 2.0 cannot be installed right now on my RC4 ?!!!!