MyCalendar

Month, Week, and List calendar for displaying events on your site.

Back to MyCalendar Support

marcoelho977747
marcoelho977747

Correct me if I'm wrong, because I will be writting this based on what I know so far. Every time I have used this plugin, I have been going to the core, to change the Human Time to "H:i" instead of "g:i a". Now that there is a config, I want to do it there. Unfortunately for me, it doesn't seem to be doing much. It changes nothing!! I have tried cleaning the cache and all, but, still not working. I am using "ListEvents".

Now, the ev from the partial "event.htm", should contain more data, like:

        $MyEvents[$e->year][$e->month][$e->day][] = [
            'name' => $e->name . ' ' . $e->human_time,
            'title' => $title,
            'link' => $link,
            'id' => $e->id,
            'owner' => $e->user_id,
            'owner_name' => $e->owner_name,
            'time' => $e->human_time,
            'nametimeless' => $e->name,
            'text' => $e->text,
        ];

(This is from Events.php, but I added "time", "nametimeless" and "text")

Now, last but not least, I think that we should have an easier way to change the visual of the events without having to touch the files of the plugin. A way that, if you updated those files, we could update the plugin without losing anything what-so-ever.

KurtJensen
KurtJensen

You were very observant about the configuration of the time format. The only place that the format from config has been added so far is the "Event View" component. It was a last minute change that I needed for using that component. It will make its way into the other components during the next few updates.

As for your suggestions. I can see your point, but everyone will want something a little different than what ever I provide. So instead of adding elements of data to the array I will probably just add a raw data element and let people do there own thing in the partials.

This started out as a "Super Simple Calendar" where no data was even going to be stored. Users would provide their own stored data to the calendar components. It has grown overtime in features and it now becoming more refined. My goal is still to provide a set of components that others can use to expand and display calendars the way they want them. I think adding a raw data element is the best way to accomplish that.

As always, thank you for your feedback... Kurt Jensen

marcoelho977747
marcoelho977747

Oh, I see. I will change the core in order to make it 24h, and I'll patiently await for the new update ;)

I think that a raw data element would be perfect!!

Thank you for the quick reply, and thank you for the plugin. It is, indeed, very good! Keep up the good work :)

KurtJensen
KurtJensen

Version 1.1.5 has been released.

!!! This is an important update that contains breaking changes. MyCalendar will now be using Passage Permission Keys for permissions and you will need to install the plugin using code "kurtjensen.passage" if you use permissions for your events.

If you do not install Passage Permission Keys plugin then your protected events may not show or may be visible to anyone who visits your site until you do add PassagePermission Keys plugin.

This update also added raw data element to event array and applied config date/time to all components.

1-4 of 4