Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: HoverClub on January 28, 2011, 06:48:03 PM

Title: Calendar Event Reminder
Post by: HoverClub on January 28, 2011, 06:48:03 PM
Link to Mod (https://custom.simplemachines.org/mods/index.php?mod=2860)

Allows users to set a reminder for any calendar event.

Adds an drop-down reminder menu icon (alarm clock) to events in the calendar and on post with linked events.

The reminder menu allows users to select pre-set reminder periods from 1 day to 8 weeks.  They will be send an email reminder the selected period before any event.

Required Settings:
The calendar must be enabled in the admin control panel.
If you are also using my Event Registration mod (http://custom.simplemachines.org/mods/index.php?mod=3238) mod then this mod MUST be installed AFTER installing the event registration mod.

Languages Support:
British English
Dutch
Italian
.. and the utf8 versions of all of them....


v2.31
Install bug in Italian language file
v2.30
fixed undefined error when event has been deleted but reminder still set
v2.20
include_once used to avoid PHP redeclare errors if code used in a portal block
v2.10
Won't send out reminders for events that have alerady started
Schedule changed to once daily @ 1:10am (to avoid other midnight tasks)
v2.09
fixed emailtemplate error for unsupported languages
removed some debug code that was preventing emails being sent
added support for utf8 languages.
v2.08
Fixed issue that stopped reminders being sent at times.
Now handles reminders correctly if the event date is changed AFTER a reminder has been set
v2.07
fixed template errors caused by attempting support for non-english language for email
v2.06
fixed language undefined errors in scheduled task
v2.05
changed redirect in calreminder.php to return to home page if topic # is undefined
reminder menu no longer visible to guests
reminder icon reduced in size
Menu no longer available on same day as event (it's too late!)
... etc.
Title: Re: Event Reminder
Post by: TheListener 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=';

Title: Re: Event Reminder
Post by: HoverClub 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)
Title: Re: Event Reminder
Post by: TheListener 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
Title: Re: Event Reminder
Post by: TheListener 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
Title: Re: Event Reminder
Post by: HoverClub 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.
Title: Re: Calendar Event Reminder
Post by: willemjan on February 07, 2011, 08:07:33 AM
Here is the Dutch translation:


$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?

$txt['reminder_mod_title'] = ' stuur mij een email voordat dit evenement begint';
Title: Re: Calendar Event Reminder
Post by: HoverClub on February 07, 2011, 09:47:40 AM
Embarrassingly, it's not actually used anywhere - I'll remove it next update  :-[
Title: Re: Calendar Event Reminder
Post by: willemjan on February 07, 2011, 09:52:39 AM
Ok, then that is the Dutch translation ;) Have fun with it  :)
Title: Re: Calendar Event Reminder - errors after install
Post by: OCJ 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
Title: Re: Calendar Event Reminder
Post by: HoverClub on February 27, 2011, 09:40:43 AM
These aren't fatal errors - they should be fixed in the latest release though (05).
Title: Re: Calendar Event Reminder
Post by: OCJ 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
Title: Re: Calendar Event Reminder
Post by: doughboy99 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.
Title: Re: Calendar Event Reminder
Post by: HoverClub 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?
Title: Re: Calendar Event Reminder
Post by: doughboy99 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.
Title: Re: Calendar Event Reminder
Post by: hcfwesker 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?
Title: Re: Calendar Event Reminder
Post by: HoverClub on April 02, 2011, 01:19:31 PM
Quote from: hcfwesker 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?

Nope - it's really the same thing as most people elect to get email reminders of a PM
Title: Re: Calendar Event Reminder
Post by: 72 454 on April 09, 2011, 05:47:33 PM
Nice mod! Glad to see some interest in improving the Calendar/Events features. Tnx!  :)
Title: Re: Calendar Event Reminder
Post by: OCJ 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...
Title: Re: Calendar Event Reminder
Post by: petesky on July 01, 2011, 07:49:58 AM
I deleted my 0.7 but 2.0 cannot be installed right now on my RC4 ?!!!!
Title: Re: Calendar Event Reminder
Post by: OCJ on July 01, 2011, 01:05:55 PM
well, its meant for 2.0 gold... think its worth upgrading isnt it?
Title: Re: Calendar Event Reminder
Post by: HoverClub on July 01, 2011, 01:18:48 PM
Quote from: petesky on July 01, 2011, 07:49:58 AM
I deleted my 0.7 but 2.0 cannot be installed right now on my RC4 ?!!!!

I would recommend upgrading for the security fixes in 2.0.  Otherwse, don't bother updating this mod - there are no functional changes or serious bug fixes in the 2.0 version.
Title: Re: Calendar Event Reminder
Post by: TheListener on July 23, 2011, 11:28:53 AM
Been getting tons of the following error.

Apply Filter: Only show the error messages of this URL
http://www.xxxxxxxxxxxx/index.php?topic=573.0
Apply Filter: Only show the errors with the same message
8: Undefined index: reminder
Apply Filter: Only show the errors from this file
File: /home/xxxx/public_html/xxxxxx/Themes/default/Display.template.php
Line: 179

169:
$menu = '<ul class="dropmenu" id="menu_rem">
170:
<li id="button_rem">
171:    
<span class="firstlevel"><img src="' . $settings['images_url'] . '/icons/notify_sm.gif" alt="*" /></span>
172:    
<ul>
173:    
' . $url . '0' . '"><span>' . ($event['reminder']==0 ? '<img src="' . $settings['images_url'] . '/icons/field_valid.gif" alt="*" />' : '') . '&nbsp;' . $txt['reminder_noremind'] . '</span></a>
174:
</li>';
175:    
176:
foreach ($periods as $time=>$msg)
177:    
{
178:
if (($event['start_timestamp']-$time)>time())
==>179:    
$menu .= $url . $time . '"><span>' . ($event['reminder']==$time ? '<img src="' . $settings['images_url'] . '/icons/field_valid.gif" alt="*" />' : '') . $msg . '</span></a></li>';
180:    
}
181:    
return $menu . '
</ul>
Title: Re: Calendar Event Reminder
Post by: Eclipse16V on July 24, 2011, 03:49:50 AM
Thanks for this Mod
Title: Re: Calendar Event Reminder
Post by: Alpay on August 02, 2011, 05:49:05 PM
thanks you for mod :=)
Title: Re: Calendar Event Reminder
Post by: bruce86 on September 22, 2011, 09:52:01 AM
Italian Translation..;)

Title: Re: Calendar Event Reminder
Post by: DaleM on September 22, 2011, 02:50:28 PM
Thank you for this mod!

When you select "8 hours" before the event for the reminder, what *time* is being used? 12 midnight or 12 noon? Something else?

The calendar table does not store a time, so I was wondering what "8 hours" would be calculated against.

Thanks.
Title: Re: Calendar Event Reminder
Post by: HoverClub on September 22, 2011, 03:28:42 PM
It's 12 midnight - probably should be 12 hours before rather than 8.
Title: Re: Calendar Event Reminder
Post by: OCJ on January 19, 2012, 08:06:53 AM
Got a strange looking subject title for an event reminder.

Quote=??B?T3V0Z​G9vciBDbHVi​IEphcGFuICB​cKE9DSlwpIC​DjgqLjgqbjg​4jjg4njgqLj​g7vjgq/jg6n​jg5bjg7vjgr​jjg6Pjg5Hjg​7Mg?=

Mightve been Japanese characters in the event tiltle ... but not on the calendar now - need to check again with alphabet only.

Title: Re: Calendar Event Reminder
Post by: Kindred on February 01, 2012, 04:15:58 PM
ok.   This was a nice-clean uninstall and re-install -- even with the huge number of mods currently running....
with the exception of the new function at the end of display.template.php.
Another mod had added another new function between this one and the ?>. Which made the uininstall fail, because the ?> did not immediately follow the reminder function.

Title: Re: Calendar Event Reminder
Post by: PPZ-01 on June 26, 2012, 12:09:45 PM
Quote from: igirisjin on January 19, 2012, 08:06:53 AM
Got a strange looking subject title for an event reminder.

Quote=??B?T3V0Z​G9vciBDbHVi​IEphcGFuICB​cKE9DSlwpIC​DjgqLjgqbjg​4jjg4njgqLj​g7vjgq/jg6n​jg5bjg7vjgr​jjg6Pjg5Hjg​7Mg?=

Mightve been Japanese characters in the event tiltle ... but not on the calendar now - need to check again with alphabet only.


     I have the same problem, instead of normal subject I get this.Is there any help for it?

BTW, here is Serbian translation, both Latin and Cyrillic versions :):

     
Code (Email.templates.serbian_latin-utf8.php) Select
'event_reminder' => array(
/*
@additional_params: event_reminder
EVENTNAME: display name for member.
EVENTSTART: start date of the event.
TOPIC: url to forum topic for the event.
REALNAME: real user name.
@description:
*/
'subject' => 'Podsetnik',
'body' => '{REALNAME},

Ovaj email te podseća na  {EVENTNAME} koji počinje {EVENTSTART}.  Za više informacija klikni na sledeći link: {TOPIC}

{REGARDS}',
),


Code (Email.templates.serbian_cyrillic-utf8.php) Select
'event_reminder' => array(
/*
@additional_params: event_reminder
EVENTNAME: display name for member.
EVENTSTART: start date of the event.
TOPIC: url to forum topic for the event.
REALNAME: real user name.
@description:
*/
'subject' => 'Подсетник',
'body' => '{REALNAME},

Овај емаил те подсећа на  {EVENTNAME} који почиње {EVENTSTART}.  За више информација кликни на следећи линк: {TOPIC}

{REGARDS}',
),


Code (Modifications.serbian_latin-utf8.php) Select
// podsetnik
$txt['reminder_mod_day'] = 'dan';
$txt['reminder_mod_days'] = 'dana';
$txt['reminder_mod_week'] = 'sedmicu';
$txt['reminder_mod_weeks'] = 'sedmice';
$txt['reminder_noremind'] = 'ne podsećaj';
$txt['reminder_emailsubject'] = 'Podsetnik događaja!';
$txt['reminder_mod_before'] = ' ranije';


Code (Modifications.serbian_cyrillic-utf8.php) Select
// podsetnik
$txt['reminder_mod_day'] = 'дан';
$txt['reminder_mod_days'] = 'дана';
$txt['reminder_mod_week'] = 'седмицу';
$txt['reminder_mod_weeks'] = 'седмице';
$txt['reminder_noremind'] = 'не подсећај';
$txt['reminder_emailsubject'] = 'Подсетник догађаја!';
$txt['reminder_mod_before'] = ' раније';


Code (ManageScheduledTasks.serbian_latin-utf8.php) Select
$txt['scheduled_task_reminderemails'] = 'Slanje podsetnika događaja';
$txt['scheduled_task_desc_reminderemails'] = 'Šalje email-podsetnik za odabrane događaje iz kalendara članovima';


Code (ManageScheduledTasks.serbian_cyrillic-utf8.php) Select
$txt['scheduled_task_reminderemails'] = 'Слање подсетника догађаја';
$txt['scheduled_task_desc_reminderemails'] = 'Шаље емаил-подсетник за одабране догађаје из календара члановима.';


     
Title: Re: Calendar Event Reminder
Post by: PPZ-01 on June 28, 2012, 11:27:28 AM
     Well, let me answer to myself  ;D

      Problem with subject was that I was using country-specific characters in subject, which was by some mail servers treated as code or something, so people were getting such a strange subject email.
      As soon as I changed subject to simple letters, with no special characters, everything worked.

      It SHOULD work and with special characters, especially because people in my country are using two kinds, cyrillic and latin sets, and sending and receiving emails written in them, but hey, I solved my problem!  ;D  It is important to me that subject is understandable, and I got it.

      HoverClub,thank you for this great mod!
Title: Re: Calendar Event Reminder
Post by: Vince S on July 06, 2012, 11:47:28 PM
Quote from: HoverClub 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?

With SMF 2's nicely paced email release what's the prospects of revisiting this request? As admin I would like to be able to subscribe all members that haven't unticked the "receive notifications from admins" box. In our case that would apply to all events, but obviously there may be events where that is not called for. Can I do this as a manual exercise via updating a database once the next year's calendar events are listed (typically an event every fortnight)? Obviously it would be really helpful to tick a box to announce the topic at the designated reminder point, any chance of that? The reality is that relying on myself to generate the reminders simply isn't realistic and an "opt out" .vs. "opt in" approach would be much more helpful. Thank you.
Title: Re: Calendar Event Reminder
Post by: Vincent Volmer on October 24, 2012, 08:41:17 AM
Thanks for this mod.....

It looks OK but I (and also other members) don't receive any notifications.....

We're using 2.0.2 with PortaMx (and some other mods).
What can be wrong? Did I miss a setting somewhere?

Thanks,
Vincent
Title: Re: Calendar Event Reminder
Post by: HoverClub on October 25, 2012, 12:49:04 PM
Check that the "Send Event Reminders" Scheduled Task is appearing properly (in the Scheduled Tasks log).
Title: Re: Calendar Event Reminder
Post by: Vincent Volmer on October 25, 2012, 01:03:34 PM
Yes it does, please see attachment.... (if this is what you mean...)..
Title: Re: Calendar Event Reminder
Post by: HoverClub on October 25, 2012, 01:05:26 PM
I meant check in the task log.....
Title: Re: Calendar Event Reminder
Post by: Vincent Volmer on October 25, 2012, 01:11:41 PM
Ah OK, sorry.... It is called: "sturen evenement rappels" in Dutch (all though I don't understand 'rappels' hehe)...

Attached..
Title: Re: Calendar Event Reminder
Post by: Vincent Volmer on October 25, 2012, 01:13:20 PM
I see a lot of "send_email_campaign" in that log... is that part of it too?
Title: Re: Calendar Event Reminder
Post by: HoverClub on October 25, 2012, 01:17:05 PM
OK - now check the email queue is empty (Maintenance ->Mail->browse queue).

If it is then I've no idea why reminder emails aren't being sent by your site?
Title: Re: Calendar Event Reminder
Post by: HoverClub on October 25, 2012, 01:18:36 PM
Quote from: Vincent Volmer on October 25, 2012, 01:13:20 PM
I see a lot of "send_email_campaign" in that log... is that part of it too?

Nope
Title: Re: Calendar Event Reminder
Post by: Vincent Volmer on October 25, 2012, 01:59:26 PM
Quote from: HoverClub on October 25, 2012, 01:17:05 PM
OK - now check the email queue is empty (Maintenance ->Mail->browse queue).

If it is then I've no idea why reminder emails aren't being sent by your site?

Hmmmm no email's waiting....... than this mod is not working for us.

Thanks, Vincent
Title: Re: Calendar Event Reminder
Post by: Vincent Volmer on October 25, 2012, 02:15:02 PM
Maybe it's the way we ara using it...

The calendar is disabled for normal members. It is only visible/usable for moderators, staf and a special membersgroup called designers. All have the calendar enabled.

Vincent
Title: Re: Calendar Event Reminder
Post by: HoverClub on October 25, 2012, 03:07:23 PM
Send me a copy of your ScheduledTasks.php (Sources subdirectory) and I'll take a look.
Title: Re: Calendar Event Reminder
Post by: Vincent Volmer on October 25, 2012, 03:11:11 PM
Hereby ;)
I hope you can find a solution.

Vincent
Title: Re: Calendar Event Reminder
Post by: HoverClub on November 07, 2012, 08:32:18 AM
This update  (http://custom.simplemachines.org/mods/index.php?mod=2860) should fix it (very obscure bug!).
Title: Re: Calendar Event Reminder
Post by: Vincent Volmer on November 07, 2012, 02:33:54 PM
Thanks for the update! I installed it.... hope it works. Will let you know.

Title: Re: Calendar Event Reminder - v 2.08 via Package Mgr?
Post by: Vince S on November 07, 2012, 05:35:17 PM
Is there something specific that needs to be done to get the latest 2.08 version mod available via Package Manager? Currently ours shows 2.05 as "current" in Package Mgr. Thank you.
Title: Re: Calendar Event Reminder
Post by: HoverClub on November 08, 2012, 03:54:46 AM
Nope- just upload/download the latest version, then uninstall the older one and install the new one and that's it (the current/old version indicators aren't totally reliable in the Package Manager from what I've seen)

Title: Re: Calendar Event Reminder
Post by: Vincent Volmer on November 16, 2012, 05:13:41 AM
Hello,

After updating the notifications are still not working at our website.
Title: Re: Calendar Event Reminder
Post by: HoverClub on November 16, 2012, 06:24:24 AM
Which version have you installed (2.09)?
Title: Re: Calendar Event Reminder
Post by: Vincent Volmer on November 16, 2012, 06:58:05 AM
Ohw.. I'm sorry. I have 2.08 installed. I'll try 2.09.... !! Didn't see the latest version.

Thanks, Vincent
Title: Re: Calendar Event Reminder
Post by: Vincent Volmer on November 16, 2012, 07:16:26 AM
Now I see some notifications, with wrong date ( year 1999) and horrible Dutch translation ;)

I think these are old notifications, from old test events, topics are already deleted..... I'll wait for the next notifications and let you know.

Vincent
Title: Re: Calendar Event Reminder
Post by: HoverClub on November 16, 2012, 07:36:12 AM
Good - if you want better translations then please supply them and I'll include in the mod at the next update  (look in the modifications.xml; file in the mod ZIP for the English version).
Title: Re: Calendar Event Reminder
Post by: Vincent Volmer on November 16, 2012, 07:38:30 AM
hehe... yes of course!

Hereby:

Modifications.dutch.php

$txt['reminder_mod_title'] = ' stuur mij een email herinnering voordat dit evenement begint';
$txt['reminder_mod_day'] = 'dag';
$txt['reminder_mod_days'] = 'dagen';
$txt['reminder_mod_week'] = 'week';
$txt['reminder_mod_weeks'] = 'weken';
$txt['reminder_noremind'] = 'Geen herinnering';
$txt['reminder_emailsubject'] = 'Evenement Herinnering!';
$txt['reminder_mod_before'] = ' voor';



EmailTemplates.dutch.php

'event_reminder' => array(
/*
@additional_params: event_reminder
EVENTNAME: display name for member.
EVENTSTART: start date of the event.
TOPIC: url to forum topic for the event.
REALNAME: real user name.
@description:
*/
'subject' => '{EVENTNAME} Evenement herinnering',
'body' => '{REALNAME},

Dit is herinnering voor het evenement {EVENTNAME} dat begint op {EVENTSTART}. Voor meer informatie over dit evenement klik op deze link: {TOPIC}

{REGARDS}',



ManageScheduledTasks.dutch.php

$txt['scheduled_task_reminderemails'] = 'Stuur evenement herinneringen';
$txt['scheduled_task_desc_reminderemails'] = 'Stuurt e-mail herinneringen voor evenementen aan leden die geselecteerd zijn.';
Title: Re: Calendar Event Reminder
Post by: HoverClub on November 16, 2012, 12:52:33 PM
Thanks!

If you have old reminders that didn't get sent for whatever reason, the mod will catch-up initially.
Title: Re: Calendar Event Reminder
Post by: magswod on December 03, 2012, 01:00:31 PM
Hi, I'm in need of a bit more help. I've got both the Event Registration Mod and the Reminder Mod both installed. Everything seems okay but once I post an event I get this error:

Not unique table/alias: 'h'
File: /home/maggied/public_html/wodtribulations.com/smf/Sources/Display.php
Line: 574

I've got the Display.php attached. Not sure what 'h' means.  :-\

Thanks ahead of time!

Also, I've posted this before but wasn't able to figure it out and I *think* it has to do with this mod. After events are posted, I get this on the Calendar on the date of the event:
Fatal error: Call to undefined function make_reminder_menu() in /home/maggied/public_html/wodtribulations.com/smf/Sources/Load.php(2214) : eval()'d code on line 398
Title: Re: Calendar Event Reminder
Post by: Kindred on December 03, 2012, 01:10:51 PM
turn off eval.
Title: Re: Calendar Event Reminder
Post by: HoverClub on December 03, 2012, 01:32:27 PM
I've already addressed your issue in this thread (http://www.simplemachines.org/community/index.php?topic=462457.msg3445655#msg3445655).  As was said, you've got parts of two different installations of this mod which you either need to remove manually OR restore from a backup and start again.  It's almost impossible to trawl through all of the files trying to find duplicated or corrupted code caused by the double installation - far quicker and safer just to restore and start again.
Title: Re: Calendar Event Reminder
Post by: Kindred on December 03, 2012, 01:57:44 PM
magswood,

I think you are misunderstanding what a "reinstall" actually is in this case.

Copy fresh copies of all files in the Sources, Themes/default and root directories - overwriting the existing files on your server with the exception of Settings.php. (KEEP THAT FILE UNTOUCHED)

your forum will be now reset by removing all mods.

All DATA (boards, messages, users, etc) is stored in the database and will be untouched.


In the future, take regular backups - especially before installing mods.
Title: Re: Calendar Event Reminder
Post by: magswod on December 03, 2012, 02:41:31 PM
Yes thank you. Once this is fixed proper, I'll be backing up. I did that. Reinstalled fresh copies of those files. Now, when trying to view the calendar I get this error:

Fatal error: Cannot redeclare handler() (previously declared in /home/maggied/public_html/wodtribulations.com/smf/Sources/calreminder.php:8) in /home/maggied/public_html/wodtribulations.com/smf/Sources/calreminder.php on line 47 

This is after I re-installed the mods per the instructions on top of the fresh files you noted.

Sorry for being a bit daft, I'm new and learning as I go.
Title: Re: Calendar Event Reminder
Post by: Kindred on December 03, 2012, 02:44:25 PM
it would seemt hat you did not successfully overwrite all the existing files.
Do this.
Delete all files in /Sources.
Delete all files in /Themes/default
(you can leave any subdirectories alone)
delete index.php and SSI.php in the root directory

Now, upload fresh copies of the files for /Sources, /Themes/default, index.php and SSI.php


THEN try reinstalling mods.
Title: Re: Calendar Event Reminder
Post by: magswod on December 03, 2012, 02:55:26 PM
Question - Will this effect the other mods I have installed? The only one I'm terribly concerned with is the Helpdesk mod. If so not a big deal, just curious if I need to uninstall all mods in the admin panel.

Thank you again for your help!
Title: Re: Calendar Event Reminder
Post by: Kindred on December 03, 2012, 03:03:33 PM
yes. Doing this will remove ALL mods which you have previously installed. They will have to be re-installed.

(hence my reminder - always take a backup before installing a new mod)
Title: Re: Calendar Event Reminder
Post by: magswod on December 03, 2012, 04:52:20 PM
Thank you so much, that solved the problem. And I have a backup :)
Title: Re: Calendar Event Reminder
Post by: demlak on January 06, 2013, 12:11:51 AM
Possible german_informal translation:

/Themes/default/languages/Modifications.german_informal.php

// Event reminder mod
$txt['reminder_mod_day'] = 'Tag';
$txt['reminder_mod_days'] = 'Tage';
$txt['reminder_mod_week'] = 'Woche';
$txt['reminder_mod_weeks'] = 'Wochen';
$txt['reminder_noremind'] = 'keine Erinnerung';
$txt['reminder_emailsubject'] = 'Veranstaltungserinnerung!';
$txt['reminder_mod_before'] = ' bevor';


/Themes/default/languages/EmailTemplates.german_informal.php

'event_reminder' => array(
/*
@Zusätzliche Parameter für: event_reminder
EVENTNAME: Veranstaltungsname.
EVENTSTART: Startdatum der Veranstaltung.
TOPIC: Link zur Veranstaltung.
REALNAME: Empfängername.
@Beschreibung:
*/
'subject' => '{EVENTNAME} Erinnerungsmail',
'body' => '{REALNAME},

Dies ist eine Erinnerungsmail, dass die Veranstaltung {EVENTNAME} am {EVENTSTART} beginnt. Für weitere Informationen klicke folgenden Link: {TOPIC}

{REGARDS}',
),

      

/Themes/default/languages/ManageScheduledTasks.german_informal.php

$txt['scheduled_task_reminderemails'] = 'Sende Erinnerungsmails';
$txt['scheduled_task_desc_reminderemails'] = 'Sendet Erinnerungsmails an Benutzer die sich für eine Erinnerungsmail angemeldet haben.';

Title: Re: Calendar Event Reminder
Post by: Devpro on May 03, 2013, 07:55:10 AM
This MOD is pretty good... Will be beneficial for a lot of forums...
Kudos!!!  :) :)
Title: Re: Calendar Event Reminder
Post by: littlenicki on June 25, 2013, 06:09:42 AM
Hello, could this mod possibly be backported for SMF 1.1.18 please? Thank you!
Title: Re: Calendar Event Reminder
Post by: HoverClub on June 25, 2013, 06:40:04 AM
Not by me (I've never used SMF 1 and no reason to start now) but anyone else is welcome to try?
Title: Re: Calendar Event Reminder
Post by: HoverClub on June 25, 2013, 12:59:29 PM
..... cancel that - SMF1 doesn't have a scheduled task system so this mod can never work with it.
Title: Re: Calendar Event Reminder
Post by: littlenicki on June 25, 2013, 11:52:56 PM
Could it be done through a cronjob?
Title: Re: Calendar Event Reminder
Post by: HoverClub on June 26, 2013, 03:34:30 AM
Anything is possible if you have the time and skill - I don't have the the first one  ::)
Title: Re: Calendar Event Reminder
Post by: zbluebirdz on September 25, 2014, 02:45:51 PM
Tried to install this MOD (v2.31) on SMF 2.0.8 and the prechecks pulled up the following error:

*   2.   Execute Modification   ./Themes/default/Display.template.php   Test failed
   1.   Add After   ./Themes/default/Display.template.php   Test successful
   2.   Add After   ./Themes/default/Display.template.php   Test failed
   3.   Add Before   ./Themes/default/Display.template.php   Test successful

I've reverted SMF back to the standard theme and still see the same error messages.

Is there any problem in proceeding with the installation?
Title: Re: Calendar Event Reminder
Post by: Kindred on September 25, 2014, 05:04:44 PM
http://wiki.simplemachines.org/smf/Error_in_mod_installation
Title: Re: Calendar Event Reminder
Post by: zbluebirdz on October 04, 2014, 05:34:39 AM
Thanks for the link.

Installed the mod and found out that I didn't need to change anything - changes were made by the installation code.
Title: Re: Calendar Event Reminder
Post by: Kindred on October 04, 2014, 08:14:34 AM
Except that the changes were not made... Anything that was marked as test failed was NOT changed.
Title: Re: Calendar Event Reminder
Post by: SMiFFER on May 15, 2017, 06:30:39 AM
Reading the mod-page, it occurs to me, this mod has not been worked on for some 4-ish years.

I use 2.0.13. Does this mod work with my system or does it screw things up?
Title: Re: Calendar Event Reminder
Post by: Steve on May 15, 2017, 10:04:47 AM
I get an error when trying to install on my test platform so you may have to emulate.

http://wiki.simplemachines.org/smf/How_can_I_install_a_mod_that_doesn%27t_work_in_my_SMF_version

Or:

http://wiki.simplemachines.org/smf/Error_in_mod_installation
Title: Re: Calendar Event Reminder
Post by: Shades. on August 08, 2021, 03:04:14 PM
I don't know if it will work or not but gonna try installing this on 2.0.18 but need help...

In Display.template.php it says to add:
($context['user']['is_guest'] ? '' : make_reminder_menu($event)) .

After:
($event['start_date'] != $event['end_date'] ? ' - ' . $event['end_date'] : '') .

My Display.template.php:
($event['start_date'] != $event['end_date'] ? ' - ' . $event['end_date'] : ''), '
Title: Re: Calendar Event Reminder
Post by: shadav on August 08, 2021, 03:40:17 PM
is there anything after that in your display.template.php
if not then just change your code to match what it wants

the end result should be
' . $event['start_date'] . ($event['start_date'] != $event['end_date'] ? ' - ' . $event['end_date'] : '') . ($context['user']['is_guest'] ? '' : make_reminder_menu($event)) . '

that is if you haven't added something else that changed that line
Title: Re: Calendar Event Reminder
Post by: Shades. on August 08, 2021, 04:13:47 PM
Quote from: shadav on August 08, 2021, 03:40:17 PM
is there anything after that in your display.template.php
if not then just change your code to match what it wants

the end result should be
' . $event['start_date'] . ($event['start_date'] != $event['end_date'] ? ' - ' . $event['end_date'] : '') . ($context['user']['is_guest'] ? '' : make_reminder_menu($event)) . '

that is if you haven't added something else that changed that line
Ok, it was that period (.) toward the end was screwing me up cause mine code has a comma (,) Thanks ;)
Title: Re: Calendar Event Reminder
Post by: shadav on August 08, 2021, 04:33:31 PM
Quote from: Shades. on August 08, 2021, 04:13:47 PM
Quote from: shadav on August 08, 2021, 03:40:17 PM
is there anything after that in your display.template.php
if not then just change your code to match what it wants

the end result should be
' . $event['start_date'] . ($event['start_date'] != $event['end_date'] ? ' - ' . $event['end_date'] : '') . ($context['user']['is_guest'] ? '' : make_reminder_menu($event)) . '

that is if you haven't added something else that changed that line
Ok, it was that period (.) toward the end was screwing me up cause mine code has a comma (,) Thanks ;)

make sure at the start it's a period also and not a comma
' . $event['start_date']
Title: Re: Calendar Event Reminder
Post by: Shades. on August 08, 2021, 04:56:00 PM
Ah ok got it thanks that fixed it! 8)