TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

September 08, 2024, 04:49:13 AM

Login with username, password and session length
Members
Stats
  • Total Posts: 195,368
  • Total Topics: 21,241
  • Online today: 61
  • Online ever: 3,540 (September 03, 2022, 01:38:54 AM)
Users Online
  • Users: 0
  • Guests: 49
  • Total: 49

Calendar bug 1.1Rc2

Started by g6cad, May 22, 2006, 01:51:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

G6Cad

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