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

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,965
  • Latest: boruko
Stats
  • Total Posts: 195,980
  • Total Topics: 21,320
  • Online today: 539
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 509
  • Total: 509

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

This website is proudly hosted on Crocweb Cloud Website Hosting.