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

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
millhaus
New Member
New Member
Posts: 4
Joined: Tue May 08, 2007 5:09 pm

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

Post 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  :)
Last edited by millhaus on Fri Sep 07, 2007 11:20 am, edited 1 time in total.
cyberman

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

Post by cyberman »

Many thanks - maybe you should post this soultion on forge too.
cyberpaws
Forum Members
Forum Members
Posts: 16
Joined: Sat Aug 25, 2007 7:18 pm

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

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

Return to “Modules/Add-Ons”