[EventCalendar] Re: Uneven calendar

Alex Tingle alex at firetree.net
Mon Nov 28 19:02:40 UTC 2005


Hans,

OK. Thanks for trying that for me. Clearly PHP5 passes object  
parameters by reference rather than by copy. I'll have to review the  
code to see if there are other places where this change might cause a  
problem.

-Alex

--

On 28 Nov 2005, at 12:28, Hans D. wrote:

>
> Hi Alex,
>
> I've edited eventcalendar3.php and the problem seems to be solved.
> Thanks for your reaction!
>
> Kind regards,
> Hans
>
> At 21:28 25-11-2005 +0000, you wrote:
>> Hans,
>>
>> "Hans D." <hansd at funprox.com> wrote:
>> > Thanks for your reaction!
>> > I'm not such an experienced coder,
>> > could you give me a clue where and how I should implement this  
>> patch?
>>
>> If you are running Unix: Save the patch to a file, e.g. '/tmp/ 
>> patch'. Then just cd to the plugins directory and run this command:
>>
>>  patch -sp0 < /tmp/patch
>>
>> If you are on Windows then you'll have to do it by hand. Edit the  
>> file 'eventcalendar3.php'. Find the bit to be patched at about  
>> line 685. Remove the lines marked with a '-', and add the line  
>> marked with a '+'. It should end up looking like this:
>>
>>   // Display months.
>>   $thead=ec3_util_thead();
>>   for($i=0; $i<$ec3->num_months; $i++)
>>   {
>>     $next_month=$this_month->next_month();
>>     ec3_get_calendar_month($this_month,$calendar_days,$thead);
>>     $this_month=$next_month;
>>   }
>>
>> -Alex
>>
>> --
>>
>> On Fri, 25 Nov 2005 17:49:39 +0100
>> "Hans D." <hansd at funprox.com> wrote:
>>
>> >
>> > Hi Alex,
>> >
>> > Thanks for your reaction!
>> > I'm not such an experienced coder,
>> > could you give me a clue where and how I should implement this  
>> patch?
>> >
>> > Thanks,
>> > Hans
>> >
>> > At 20:32 24-11-2005 +0000, you wrote:
>> > >Hans,
>> > >
>> > >"Hans D." <hansd at funprox.com> wrote:
>> > > > It's indeed very strange.
>> > > > The problem occurs whenever I make the number of months  
>> bigger than 1.
>> > > > I've not changed anything in the code. My host uses PHP  
>> 5.0.4 on a Windows
>> > > > server...
>> > >
>> > >I think you may have uncovered a problem with EC running on PHP  
>> 5. Please
>> > >try this patch, and let me know how you get on:
>> > >
>> > >--- eventcalendar3.php  15 Sep 2005 18:19:17 -0000      1.34
>> > >+++ eventcalendar3.php  24 Nov 2005 20:30:43 -0000
>> > >@@ -685,8 +685,9 @@
>> > >    $thead=ec3_util_thead();
>> > >    for($i=0; $i<$ec3->num_months; $i++)
>> > >    {
>> > >+    $next_month=$this_month->next_month();
>> > >      ec3_get_calendar_month($this_month,$calendar_days,$thead);
>> > >-    $this_month=$this_month->next_month();
>> > >+    $this_month=$next_month;
>> > >    }
>> > >
>> > >    // Display navigation panel.
>> > >
>> > >
>> > >-Alex
>> > >
>> > >--
>> > >:: Let me solve your problems: http://www.firetree.net/consulting/
>> > >:: alex.tingle AT firetree.net  +44-7901-552763
>> >
>> >
>> >
>>
>>
>> --
>> :: Let me solve your problems: http://www.firetree.net/consulting/
>> :: alex.tingle AT firetree.net  +44-7901-552763
>
>
>




More information about the EventCalendar mailing list