Page 1 of 1

small calendar bug workaround: text "upcoming events" is shown in the pastlist

Posted: Fri Sep 07, 2007 11:18 am
by millhaus
hello,

i had the problem that when displaying pastlist the header says "upcoming events" resp. "bevorstehende termine".

i've tweaked the module to make it work, maybe this could be featured in the next update, cause everytime i update i have to do this work all over again and i don't know how to submit changes or even participate in the development.

here is the work-around:

1.) in modules/Calendar
make a copy of the "function.displayupcominglist.php" and name it "function.displaypastlist.php"

2.) edit this one and replace in line 3:
"function DisplayUpcomingList" by "function DisplayPastList"

3.) edit "action.default.php':
somewhere down in the switch-section it says:

Code: Select all

case 'pastlist':
    {
      require_once(dirname(__FILE__).'/function.displayupcominglist.php');
      $params['pastitems'] = 1;
      DisplayUpcomingList($this, $id, $params, $returnid);
    }
    break;
replace the "upcoming" by "pastlist" to get:

Code: Select all

case 'pastlist':
    {
      require_once(dirname(__FILE__).'/function.displaypastlist.php');
      $params['pastitems'] = 1;
      DisplayPastList($this, $id, $params, $returnid);
    }
    break;
the translations in the language files are already correct.

hope this helped anyone  :)

Re: small calendar bug workaround: text "upcoming events" is shown in the pastlist

Posted: Fri Sep 07, 2007 11:51 am
by cyberman
Many thanks - maybe you should post this soultion on forge too.

Re: small calendar bug workaround: text "upcoming events" is shown in the pastli

Posted: Tue Dec 25, 2007 10:26 pm
by cyberpaws
Hi... I'm wondering if I missed something because I tried this and I'm till getting "Upcoming Events" for the title instead of "Past Events"

What part of the code calls it to display "Past Events".. .  I can't seem to figure this out..


sorry to be so obtuse.