Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules /

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Preview: Event Calendar Module


Reply


293 Posts   44002 Views

Avatar
Scivitri

Community Member, 2 Posts

4 September 2009 at 9:16am

I added the "and (" & ")" around the date filters. Without that, the ORs were making pretty much every event in the database true.

I also added the "AND calendarDateTime.EventID=0" so it will only select announcements, not events. Not strictly sure if this is necessary, but it seemed logical to not select things that the previous piece of code had already added to the list.

Avatar
silk78

Community Member, 8 Posts

4 September 2009 at 6:12pm

Hello UncleCheese,

I might have a similar problem:

I have updated dataobject_manager and event_calendar to the newest versions (r253 and r76).

Now I have the following effects:

1. I have two separate calendars in my page. After the update in each of the calendars I now see events and announcements from both calendars in both calendars. In the back-end everything looks fine.

2. In Calendar.ss the result from $Link now seems to be wrong. It should link to "more" for a specific event, but instead it links to http://<date>. Substitute the date for an event for <date>. The base tag is correct.

Both had worked in older versions. I am using both modules out of the box.

Best regards,
Christian

Avatar
cygnet

Community Member, 20 Posts

8 September 2009 at 12:52am

I have the same problem. Also I'm unable to select any date, because no popup calender occurs when I try to add Announcement or event. I've attached the javascript errors I get

Attached Files
Avatar
cygnet

Community Member, 20 Posts

8 September 2009 at 5:57pm

One more problem with localization, when I change locale I get no months translation in filter, thought it is localized in date_ua_utf8.js
See the picture.

Attached Files
Avatar
UncleCheese

Forum Moderator, 4096 Posts

9 September 2009 at 2:16am

Can you confirm you're on the latest version? As far as I can see, that shouldn't be happening.

Avatar
cygnet

Community Member, 20 Posts

9 September 2009 at 2:25am

yes. I'm on the latest everything :)

Avatar
cygnet

Community Member, 20 Posts

9 September 2009 at 2:43am

could it be the problem because of the specific theme selected?

Avatar
UncleCheese

Forum Moderator, 4096 Posts

9 September 2009 at 2:48am

Here is the function that is generating the options in that dropdown:

   public static function getMonthsMap()
   {
return array (
      '01' => self::i18n_date('%b',strtotime('2000-01-01')),
      '02' => self::i18n_date('%b',strtotime('2000-02-01')),
      '03' => self::i18n_date('%b',strtotime('2000-03-01')),
      '04' => self::i18n_date('%b',strtotime('2000-04-01')),
      '05' => self::i18n_date('%b',strtotime('2000-05-01')),
      '06' => self::i18n_date('%b',strtotime('2000-06-01')),
      '07' => self::i18n_date('%b',strtotime('2000-07-01')),
      '08' => self::i18n_date('%b',strtotime('2000-08-01')),
      '09' => self::i18n_date('%b',strtotime('2000-09-01')),
      '10' => self::i18n_date('%b',strtotime('2000-10-01')),
      '11' => self::i18n_date('%b',strtotime('2000-11-01')),
      '12' => self::i18n_date('%b',strtotime('2000-12-01'))
    );   
   }

Note: i18n_date() is at this point an alias for strftime() until we figure out how to handle the UTF-8 issue.

So, my next question is, if you echo out strftime('%b',strtotime("2008-09-09")); somewhere, do you get the correct character set?

How can I set my locale to replicate what you have?