TinyPortal

Development => Feedback => Bugs/Errors => Topic started by: G6Cad on May 22, 2006, 01:51:08 PM

Title: Calendar bug 1.1Rc2
Post by: G6Cad on May 22, 2006, 01:51:08 PM
This is a SMF issue, but i think i post it here any way for others that may encounter the same problem with modify posted events in the calendar.
I dont know if this is related to SMF 1.0.7, but this is how to fix the bug in 1.1Rc2 though.
This is the error message
Undefined index: calendar_shortedit
....Themes/default/Display.template.php (eval?)
Ligne: 167


Add text into themes/default/languages/index.english.php
Find
$txt['calendar_linked_events'] = 'Linked Events';
And right under that add
$txt['calendar_shortedit'] = 'modify the event';

And in themes/default/display.template.php find
<b>', $event['title'] , '</b> ' , ($event['can_edit'] ? '<a href="' . $event['modify_href'] . '" >[' . $txt['calendar_shortedit'] . ']</a> ' : '') , ': ', $event['start_date'], ($event['start_date'] != $event['end_date'] ? ' - ' . $event['end_date'] : ''), '

And replace that with this
<b>', $event['title'] , '</b> ' , ($event['can_edit'] ? '<a href="' . $event['modify_href'] . '" title="' . $txt['calendar_shortedit_title'] . '" >[' . $txt['calendar_shortedit'] . ']</a> ' : '') , ': ', $event['start_date'], ($event['start_date'] != $event['end_date'] ? ' - ' . $event['end_date'] : ''), '

Themes using display.template.php needs to be changed to. Eg Nexus5...