cmb69 / calendar_xh Goto Github PK
View Code? Open in Web Editor NEWEvent calendars for CMSimple_XH
License: GNU General Public License v3.0
Event calendars for CMSimple_XH
License: GNU General Public License v3.0
Calendar has a rather minimalistic approach to date/time formatting: for dates, the separator character can be chosen (.
, -
or /
), but the order of the components is fixed (day, month, year). For times the format is hard coded. This is unsuitable for representing date/times for a lot of languages; e.g. in American English the month usually preceedes the day, and times are usually expressed in 12-hour format.
This needs to be more flexible.
ISO dates are easy to grasp and to process, and there is really no need to allow for different date component separators in the event file. An additional bonus: the event files could easily be sorted, if so desired.
Einstellung der resultierende Beite der Eintragstabelle
The possibility to choose between narrow
, medium
and wide
appears to be clumsy, and doesn't fit to responsive templates.
At least for some users being able to mark up the event
, location
and link text
fields seems to be desireable. As it may not be ideal for all users, a config option appears to be sensible.
See https://cmsimpleforum.com/viewtopic.php?f=16&t=13290#p64846, item 2, and the following discussion.
PS: Caveat: a config option might require dynamic conversion.
The datepicker that is used by Calendar_XH appears to be unmaintained (last commit was on 2014-11-28), and since its move to Gihub (on 2011-10-02) there hasn't been tagged any release. It might be best to replace it, before it finally breaks.
All external links are automatically prefixed by http://
so it is not possible to link to any https://
page (or other protocol for that matter).
Besides that there is no online locking in place, even worse no offline locking is employed, so multiple users may mutually overwrite their modifications.
The documentation states that {{{event()}}}
displays the next event marquee, but calling event() without all four required parameters fatals as of PHP 7.1.0.
nextevent()
ignores birthday events for all but the current year.
If you want to make the scrolling text horizontal (which works well with CSS), the hardcoded <br>
in the source text disturbs considerably.
<div class="nextevent_date">... <br>...</div>
Is that not possible somehow differently? Without?
I have a dream.
Configuration option for the scrolling text: vertical or horizontal.
But that would be luxury and not mandatory ;-)
If we support multiple calendars, we could get rid of special multi-language support.
iCalendar is a widely supported standard format for exchange of calendaring information. Therefore, facilitating the import of .ics
files appears to be appropriate.
The plugin is currently unsuited for lots of events (say, several hundred), because the edit events form becomes unwieldy (no pagination), saving the events may fail (due to max_input_vars
etc.), and there may be overall performance issues.
Presently, calendar.csv
doesn't permit semicolons, since these are used as field separators, and quoted fields are not yet supported.
This feature is available as of CMSimple_XH 1.6, and is a nice improvement especially regarding boolean configuration options.
If we don't do this for Calendar_XH 2.0, we may need to support PHP 5 for years.
CMSimple_XH 1.7.0 has been released in July 2017, so users are supposed to have been updated already; otherwise, let's push them. :)
<h2>
as headings for calendar sections are probably fine in most cases - but not always. They might interfere with the page structure. Especially the month selection for the calendar itself as <h2>
is very inconvenient.
Maybe no heading tag should be used there at all? About the CSS they are well designable.
Or selectable in the configuration?
$plugin_tx['calendar']['next_button_title']="Nachster Monat";
We are allowed to use german umlauts here -> "Nächster".
;-)
It's just not worth the effort anymore. Users of old browsers (such as IE11) need to live without the enhancements.
See https://developers.google.com/search/docs/data-types/events.
That would require to have an own URL for each event, and possibly also an exact location.
These may be deliberately or inadvertently be inserted by the user or a tool – simply ignoring them shouldn't do any harm. See https://cmsimpleforum.com/viewtopic.php?f=16&t=13290#p64846, item 3.
If editevents()
is called without argument (like described in the user manual), it throws a fatal error under PHP ≥ 7.1.0:
Uncaught ArgumentCountError: Too few arguments to function editevents(), 0 passed in ...
Not sure in which way exactly (maybe via QR codes), but it would certainly make sense to offer visitors the possibility to integrate single or all events in their calendars, and maybe it would also make sense for the webmaster to be able to import vCalendar/iCalendar info into Calendar_XH.
This folder is already protected against HTTP access, and this way all data are stored in one place.
It does not make sense to support old CMSimple_XH and PHP versions; instead we should aim to keep the code simple and comprehensible by using more recently introduced features where appropriate.
It appears to be reasonable to require CMSimple_XH ≥ 1.6.3 and PHP ≥ 5.5.0.
These are not bad per se, but unnecessary and may cause issues if there are followed by "too much" whitespace (as in sk.php
).
Originally, the event files have been pure CSV files, but because enhancements have been made in a backward compatible way, the purity has been sacrificed. This is rather unfortunate as it makes it harder to process the files with other tools.
First: Many thanks for version 2.0
Unfortunately, attempts to import complex ics files failed with the following message (white page):
Uncaught TypeError: Argument 1 passed to Calendar\Event::create() must be of the type string, null given, called in \plugins\calendar\classes\ICalendarReader.php on line 95 and defined in \plugins\calendar\classes\Event.php:72
Stack trace:
#0 \plugins\calendar\classes\ICalendarReader.php(95): Calendar\Event::create(NULL, NULL, NULL, NULL, 'Neujahr in Deut...', '', '', NULL)
#1 \plugins\calendar\classes\ICalendarReader.php(58): Calendar\ICalendarReader->parse()
#2 \plugins\calendar\classes\IcalImportController.php(82): Calendar\ICalendarReader->read()
#3 \plugins\calendar\classes\Plugin.php(129): Calendar\IcalImportController->importAction()
#4 \plugins\calendar\classes\Event.php on line 72
With simpler files, however, the import works without problems.
(Example of a complex failed file:
https://www.ferienwiki.de/exports/de -> "Feiertage gesamt"
See the heading.
The default styles of a plugin should not be demonstration of what is possible, but rather minimal, to be a good fit for all (sensible) templates.
The 0. birthday (i.e. the actual date of birth) is shown as normal event (i.e. with location ###
) in the calendar, the event list and the next event marquee.
Since we do not really need date-time calculations, it might be preferable to use ext/calendar instead of ext/date. This would also drastically increase the support range of dates.
If an event is added, it is added to the end of the list, so the user has to scroll down to fill out the fields. At the very least, the focus should be set to the added event.
That is just a mess, unfortunately.
Again, due to cmsimple-xh/cmsimple-xh#21.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.