Loading...
 
Features / Usability

Features / Usability


Problems with mod-events

posts: 3665 United States

Help! I'm having problems using the mod-events module on my Tiki.

  • For anoymous users, the events are shown on the calendar, as expected.
  • For registered uesrs, the events are not shown — the dates are simply blank.
  • For admin, The evetns are shown, but the following warning is generated:
    Warning: mktime() expects parameter 5 to be long, string given in ../public_html/templates_c/en/%%D4/D45/D457C5B2%%mod-events.tpl.php</b> on line 149


-Rick

posts: 3665 United States

I found this tracker item on dev.tw.o....

The calendar events module now displays properly on my Tiki.

-Rick

> Help! I'm having problems using the mod-events module on my Tiki.
> *For anoymous users, the events are shown on the calendar, as expected.
> *For registered uesrs, the events are not shown — the dates are simply blank.
> *For admin, The evetns are shown, but the following warning is generated:
> +Warning: mktime() expects parameter 5 to be long, string given in ../public_html/templates_c/en/%%D4/D45/D457C5B2%%mod-events.tpl.php on line 149
>
> -Rick

posts: 3665 United States

OK, I spoke too soon. The fix (below) does fix the errors I was receiving. However, my registered users still are unable to see the events on the calendar. Anyone know what's up?

-Rick



> I found this tracker item on dev.tw.o....
>
> The calendar events module now displays properly on my Tiki.
>
> -Rick
>
> > Help! I'm having problems using the mod-events module on my Tiki.
> > *For anoymous users, the events are shown on the calendar, as expected.
> > *For registered uesrs, the events are not shown — the dates are simply blank.
> > *For admin, The evetns are shown, but the following warning is generated:
> > +Warning: mktime() expects parameter 5 to be long, string given in ../public_html/templates_c/en/%%D4/D45/D457C5B2%%mod-events.tpl.php on line 149
> >
> > -Rick

posts: 3665 United States

I'm still having an issue with this. Looking at the PHP, it looks like it may have something to do with personal calendars. The calendar in question is NOT identified as a personal calendar, yet registered users are still unable to view the items in the mod-events calendar (although, they can see the events in the main tiki-calendar.php).

Anyone have any ideas?

-Rick



> OK, I spoke too soon. The fix (below) does fix the errors I was receiving. However, my registered users still are unable to see the events on the calendar. Anyone know what's up?
>
> -Rick
>
>
>
> > I found this tracker item on dev.tw.o....
> >
> > The calendar events module now displays properly on my Tiki.
> >
> > -Rick
> >
> > > Help! I'm having problems using the mod-events module on my Tiki.
> > > *For anoymous users, the events are shown on the calendar, as expected.
> > > *For registered uesrs, the events are not shown — the dates are simply blank.
> > > *For admin, The evetns are shown, but the following warning is generated:
> > > +Warning: mktime() expects parameter 5 to be long, string given in ../public_html/templates_c/en/%%D4/D45/D457C5B2%%mod-events.tpl.php on line 149
> > >
> > > -Rick

posts: 15 Norway

> I found this tracker item on dev.tw.o....
>
> The calendar events module now displays properly on my Tiki.
>
> -Rick
>
> > Help! I'm having problems using the mod-events module on my Tiki.
> > *For anoymous users, the events are shown on the calendar, as expected.
> > *For registered uesrs, the events are not shown — the dates are simply blank.
> > *For admin, The evetns are shown, but the following warning is generated:
> > +Warning: mktime() expects parameter 5 to be long, string given in ../public_html/templates_c/en/%%D4/D45/D457C5B2%%mod-events.tpl.php on line 149
> >
> > -Rick

I have made the changes outlined in the tracker, and the error message for admin has been corrected. But, the calendar is still not highlighting the events for registered users. Has this been corrected? If so, where is the code fix for this? Thanks!


posts: 3665 United States

More checking... it appears that the problem somehow lies in this line in mod-events.tpl:

Copy to clipboard
$items = $calendarlib->list_items($calids, $user, $thedate - 60*60*24*16, $thedate + 60*60*24*31, 0, 90 );


I added a test to verify that the array was being built correctly. When I view the page as a non-logged in (or admin) user, the array is built correctly. However, if I view the page as a logged in (Registered), the array is empty.

Can anyone help?

-R


posts: 15 Norway

> Help! I'm having problems using the mod-events module on my Tiki.
> *For anoymous users, the events are shown on the calendar, as expected.
> *For registered uesrs, the events are not shown — the dates are simply blank.
> *For admin, The evetns are shown, but the following warning is generated:
> +Warning: mktime() expects parameter 5 to be long, string given in ../public_html/templates_c/en/%%D4/D45/D457C5B2%%mod-events.tpl.php on line 149
>
> -Rick
I tried to delete my prior post, but was unable to do so. So, I am entering it again as a new post, not a reply in the hopes that it will be easier to follow the thread.

I have made the changes outlined in the tracker, and the error message for admin has been corrected. But, the calendar is still not highlighting the events for registered users. Has this been corrected? If so, where is the code fix for this? Thanks!