Customizing SMF > Modifications and Packages

Calendar Event Reminder

(1/14) > >>

HoverClub:
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.

Old Fossil:
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=';

HoverClub:
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)

Old Fossil:
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

Old Fossil:
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

Navigation

[0] Message Index

[#] Next page

Go to full version