awesomemotive / sugarcalendar-core Goto Github PK
View Code? Open in Web Editor NEWSugar Calendar plugin for WordPress
Home Page: https://wordpress.org/plugins/sugar-calendar-lite/
Sugar Calendar plugin for WordPress
Home Page: https://wordpress.org/plugins/sugar-calendar-lite/
Adding an event-display
query var like this:
http://sugarlocal.com/events/?event-display=upcoming
will show a list of events without recurring events.
ref: https://secure.helpscout.net/conversation/385363426/61556/?folderId=875342
Porting our mega-meta-box to Gutenberg would be a nice touch.
This could just be an inspector-sidebar panel-thing, or something fancier.
Steps to replicate:
Create a new event with a specified date, time, location, and details.
Save the event to the calendar of your choice.
View the event. The date and time are not displayed.
When using the paid version the event date and time are displayed. Screenshot below shows the lite version on the right.
Expected behavior:
When viewing the details of an event the date and time are displayed.
First reported by a customer: https://secure.helpscout.net/conversation/978382551/134070?folderId=1909447
Request came in via HelpScout to enforce a default Calendar when adding new Events.
This does make sense, and is also how WordPress works with most things that use Taxonomies ("Uncategorized" for Posts as an example.)
Because Events are limited to a single Calendar by default, and because all calendar applications expect for Events to be associated to a single Calendar, I think this is probably a good area of UI improvement.
The screenshots of the plugin UI are severely out of date.
Let's them them updated to show the new, shiny interfaces!
The archive view (example https://sugarlocal.com/events/ ) should show recurring events in the list of posts.
from sugarcalendar/standard#48:
I think you'd need to hook into pre_get_posts, perform a look up with sc_get_all_events(), extract the post IDs, then set post__in. Essentially duplicating the queries.
Let's go ahead and punt the archive view so we can get this finished up.
Recurring Events ultimately consist of an ordered series of events, all relating back to a single source instance of an Event object. This series of Events currently has no way of being calculated on a per-Event basis. Rather, they are built just-in-time based on the current database query and/or Calendar view boundaries.
It should be possible, given any number of Events or any boundaries, for these Sequences of Events to be built up relative to either the initial instance or the boundary.
In short, a Sequence is a Collection of objects, though each object in the Sequence ends up with a unique identifier that is calculable relative to its source.
Any plans to add a thumbnail option, maybe to the show
parameter in sc_get_events_list()
?
The post-type supports thumbnails. Might be nice to display them in the events_list shortcodes and widgets.
Reported on this HS ticket about the same time I noticed it in testing. I happen to use a 24hr clock on all my time-things:
https://secure.helpscout.net/conversation/829226730/118230/?folderId=1909468
My Screen Options settings match my Calendar > Settings > Display:
When creating or editing an event, the edit screen doesn't show the 24-hour hourly digits. Instead it shows 01-12 and AM/PM:
The same event does show correct on the frontend when published/updated:
Similar to EDD's version of it but adjusted for this plugin.
We'll be adding more to the readme.txt soon to encourage contributions.
Request from this pre-sales HS ticket:
https://secure.helpscout.net/conversation/1083532293/145621?folderId=1909452
Can more than one Sugar Calendar be active on the same website simultaneously? One organization ideally wants two calendars: one for the public to see for local events and announcements and another restricted to registered volunteers only to view and signup.
I used a specific category (calendar) in my shortcode and it displays that calendar correctly. However, it does still have the ability to switch to another calendar. I thought this might be a good feature request, to have the ability to either remove the dropdown list selector or lock it to a single entry.
[sc_events_calendar category="lunch"]
Recently, @brashrebel and friends made some improvements to the Read-Me text.
This issue is being created simply to track the imminent pull request to merge those improvements back into this repository.
It's possible more issues will be created like this when changes happen in the future, or they may simply get pushed directly in. But for this first time, I'm following standard pull request protocols.
A slight bug in includes/meta-boxes.php on line 145-148
It ignores PM times when setting the sc_event_date_time
meta value.
if( $am_pm == 'pm' && $hour < 12 )
$hour += 12;
elseif( $am_pm == 'am' && $hour >= 12 )
$hour -= 12;
// $hour should be $hours
if( $am_pm == 'pm' && $hours < 12 )
$hours += 12;
elseif( $am_pm == 'am' && $hours >= 12 )
$hours -= 12;
Just a reminder issue that Lite needs be updated to 2.0 at the same time that Standard is released.
Do you plan to support Gutenberg block editor on your event post type ?
I create a quick gist for enable it, but, it's really basic, and very little tested.
https://gist.github.com/herewithme/f1c377377cc3dcedc8388dd97196fdb6
Reported from HS ticket:
https://secure.helpscout.net/conversation/647066685/88460?folderId=1909468
...the Dutch translation of the plugin contains the following issues:
- The admin pages for creating/editing a calendar item displays an AM/PM selection option. In the Dutch language we don't use AM/PM, instead we use the 24-hour time format.
- The date format on the single calendar item page is 'MONTHNAME DATE, YEAR' instead of the usual Dutch format 'DATE MONTHNAME YEAR'. The settings of the plugin also don't allow me to select an other format which is usually used in Dutch like 'DATE-MONTH-YEAR'.
- The time format on the single calendar item page contains two spaces instead of one before and after the word 'tot' (the Dutch word for 'until'), for example '10:00 tot 17:00'.
- The date range on the single calendar item page is not fully translated (only the month/weekday names are translated). For example: 'Starts augustus 8, 2018 then every woensdag' instead of 'Start 8 augustus 2018, daarna elke woensdag'. I've already looked into the translation file but I couldn't find a field to add this translation to.
We've had a request for a "year" view on the frontend of the calendar.
I don't see this as a high priority but would be nice to offer at some point.
https://secure.helpscout.net/conversation/1019748142/138536?folderId=1909447
Reported via Sandhills support:
Steps to reproduce:
Sugar Calendar: please do not blindly trust that map_meta_cap filter $cap parameter is always string because looks like all developers don't read or follow instructions on what kind of parameters pass to WordPress core functions. Consider returning the $cap instantly if it's a boolean or casting the $cap to string. Tested both solutions and those seem to fix the issue for now.
For example, go to http://demo.pippinsplugins.com/sugar-calendar/ and select September 2013 from the dropdown.
Gonna add a sidebar section to the Settings page.
Reported on this HS ticket:
https://secure.helpscout.net/conversation/953591490/131195/
User on WordPress Multisite and reported a plugin conflict with WP-Ultimo. He was not able to change the start day of the week option in Sugar Calendar settings. It would revert back to the default after he clicked to save. Also had an error when clicking on the update database link. When he deactivated WP-Ultimo, all features worked correctly. This is just an FYI for the future, we do not currently have a copy of WP-Ultimo to test with, but I'm not sure we need to at this point.
Sugar Calendar will fatal error on activation if it is already activated. This can happen in a few different circumstances:
While rare, and kind of silly, it is easily avoidable, so let's avoid it.
We've had a customer request the ability to enter their license key inside of wp-config.php.
We've done this in AffiliateWP and it works really well.
Related: #53
I.E. sugar_calendar_admin_
to Sugar_Calendar\Admin
.
The /themes/legacy
directory houses all of the 1.x theme code, so that needs to stay as-is.
It would be awesome to be able to click into an event square in order to create an event, just like Google Calendar and others work.
See details here. If we ditch load_plugin_textdomain()
, add the domain and path to the header, change the domain to match the slug and require WP 4.6 or higher we can let community translations on w.org work instead of shipping them ourselves.
Would love the Today option that is on iOS/macOS calendars added to especially the large monthly calendar view, but I can see it on:
When I'm viewing something 8 months out, it would be convenient to click a Today button to go back to the current day.
Now that sugarcalendar/standard#153 is merged, there is a need to add a more intelligent range picker to that list table. It's currently based on the Month
range, which is likely not ideal when choosing to view events as a list.
We could add a select
to narrow the results down to a year/month/day, or we could eliminate the range entirely and make it feel more like a regular paginated list. Going to experiment with this a bit to see what's easiest and feels best.
We've had some HS tickets requesting the use of custom fields in their events. Some are using ACF and some are using Beaver Themer.
These are the tickets I found using search, I'll keep adding as they come in :
https://secure.helpscout.net/conversation/590601088/83184/
https://secure.helpscout.net/conversation/925524308/127346/
https://secure.helpscout.net/conversation/953994129/131243/
https://secure.helpscout.net/conversation/1024910507/139264/
https://secure.helpscout.net/conversation/1025564695/139346/
Events need theme compatibility.
bbPress is the most likely candidate, because it integrates directly with shortcodes, widgets, and any custom rewrite rules we may end up with later.
The overly simplistic process here is:
Possible issues/confusion:
Request from this HS ticket:
https://secure.helpscout.net/conversation/909891170/125789/?folderId=1909468
The looks of a single event can only be changed by overriding a template file.
Do you have plans to offer more and better ways?
Like maybe add a shortcode for event where you have a sort of a format setting eg. [suger_single_event format="
{event_name}{event_time}
"]
Or make it work so one can design in a page builder while having access to the fields and one can make a template for the event cpt?
To be consistent with our other plugins and for support , we need the System Info data with the download button so they can send us their details. Usually this is from a Tools menu, then System Info tab.
To reproduce the issue:
Calendar
Clone
linkExpected behavior:
With previous version 1.6.x, you would receive a duplicate event in Draft
status.
It currently shows just me!
The "Visit plugin site" link from the plugin page goes to a 404:
http://pippinsplugins.com/sugar-calendar-lite
First brought to my attention by Naomi on this HS ticket:
https://secure.helpscout.net/conversation/854098642/120683?folderId=1909452
The 1.6x
of Sugar Calendar had the traditional category selection using a checkbox so you could assign multiple categories to an event:
The 2.x
updated version of categories, now calendars, uses a radio option so only one calendar can be assigned to an event:
The request is can we change it back to checkboxes or otherwise allow multiple calendars to be assigned to an event in some way?
I write a plugin that emails on WordPress content publication. It has the potential to work very well with your plugin but for one problem, the custom taxonomy is not registering and I think this is because the includes/taxonomies.php file is not included anywhere else in the code.
Adding:
include_once( SC_PLUGIN_DIR . '/includes/taxonomies.php');
To the main plugin files remedies this issue.
Sugar Calendar (Lite) that is on WordPress.org is more different from regular Sugar Calendar than I remembered or thought.
It omits: categories, widgets, settings, feeds, end-time, and recurring.
(I thought it was only missing recurring for some reason.)
I think we should update (Lite) to include everything but recurring, and bump it to 1.6.8 so we have version parity between GitHub, Lite, and Licensed.
That provides a more functional base product, and incentivizes upgrading to 2.0 later.
(It also somewhat simplifies the deployment process to WordPress.org, but not enough where I consider that a huge bonus.)
A potential customer has requested that we include support for setting timezones on an event-specific basis.
I really like this idea as it would allow for a site to publish events from multiple timezones.
In terms of implementation, I think events should always default to the site's timezone but then support a custom timezone to be set on the event.
I have an event that starts today at 12pm (EST/New York set in WP), and ends at 2pm.
Expected behavior using [sc_events_list display="upcoming"]
:
The event would show as upcoming until it starts or until it is over.
Expected behavior using [sc_events_list display="past"]
:
The event would show as past once it is over (to the minute/second).
Actual behavior using [sc_events_list display="upcoming"]
:
The event is still showing as upcoming, even 2 hours after the event is over.
Actual behavior using [sc_events_list display="past"]
:
The event has been showing as a past event since we checked it this morning.
Originally requested on this HS ticket:
https://secure.helpscout.net/conversation/609231256/84955/?folderId=1909452
Since we are using a multi-site is there a way to set a constant or to set the license key across the network instead of having to go into the plugin settings of each subsite to set the license key?
Reported via Sandhills support, the Events List widget is not included in the check for loading CSS and JS assets. I'm still in the process of troubleshooting their setup, but this is a simple and obvious fix that deserves some documentation.
Going to commit this directly to master, as the changes are benign and simple.
More info on what was changed in this ticket: https://core.trac.wordpress.org/ticket/48955
Seeing errors like this:
Warning: preg_match() expects parameter 2 to be string, array given in /wp-includes/class-wp-block-parser.php on line 417 [www.salinasfairways.com/wp-admin/admin.php?page=sugar-calendar&cy=2020&cm=6&cd=13&mode=month] [wp-includes/class-wp-block-parser.php:417 preg_match(), wp-includes/class-wp-block-parser.php:256 WP_Block_Parser->next_token(), wp-includes/class-wp-block-parser.php:236 WP_Block_Parser->proceed(), wp-includes/blocks.php:521 WP_Block_Parser->parse(), wp-includes/blocks.php:274 parse_blocks(), wp-includes/formatting.php:4842 filter_block_content(), wp-includes/class-wp-hook.php:286 wp_pre_kses_block_attributes(), wp-includes/plugin.php:208 WP_Hook->apply_filters(), wp-includes/kses.php:914 apply_filters('pre_kses'), wp-includes/kses.php:737 wp_kses_hook(), wp-content/plugins/sugar-calendar/sugar-event-calendar/includes/admin/list-tables/class-wp-list-table-base.php:1702 wp_kses(), wp-content/plugins/sugar-calendar/sugar-event-calendar/includes/admin/list-tables/class-wp-list-table-base.php:1529 Sugar_Calendar\Admin\Mode\Base_List_Table->get_pointer_text(), wp-content/plugins/sugar-calendar/sugar-event-calendar/includes/admin/list-tables/class-wp-list-table-base.php:1330 Sugar_Calendar\Admin\Mode\Base_List_Table->setup_pointer(), wp-content/plugins/sugar-calendar/sugar-event-calendar/includes/admin/list-tables/class-wp-list-table-base.php:1272 Sugar_Calendar\Admin\Mode\Base_List_Table->get_event_link(), wp-content/plugins/sugar-calendar/sugar-event-calendar/includes/admin/list-tables/class-wp-list-table-base.php:1226 Sugar_Calendar\Admin\Mode\Base_List_Table->get_event(), wp-content/plugins/sugar-calendar/sugar-event-calendar/includes/admin/list-tables/class-wp-list-table-month.php:200 Sugar_Calendar\Admin\Mode\Base_List_Table->get_events_for_cell(), wp-content/plugins/sugar-calendar/sugar-event-calendar/includes/admin/list-tables/class-wp-list-table-month.php:248 Sugar_Calendar\Admin\Mode\Month->get_row_cell(), wp-content/plugins/sugar-calendar/sugar-event-calendar/includes/admin/list-tables/class-wp-list-table-base.php:2208 Sugar_Calendar\Admin\Mode\Month->display_mode(), wp-content/plugins/sugar-calendar/sugar-event-calendar/includes/admin/menu.php:156 Sugar_Calendar\Admin\Mode\Base_List_Table->display(), wp-includes/class-wp-hook.php:286 Sugar_Calendar\Admin\Menu\calendar_page(), wp-includes/class-wp-hook.php:310 WP_Hook->apply_filters(), wp-includes/plugin.php:465 WP_Hook->do_action(), wp-admin/admin.php:253 do_action('toplevel_page_sugar-calendar')]
Warning: strlen() expects parameter 1 to be string, array given in /wp-includes/class-wp-block-parser.php on line 489 [www.salinasfairways.com/wp-admin/admin.php?page=sugar-calendar&cy=2020&cm=6&cd=13&mode=month] [wp-includes/class-wp-block-parser.php:267 WP_Block_Parser->add_freeform(), wp-includes/class-wp-block-parser.php:236 WP_Block_Parser->proceed(), wp-includes/blocks.php:521 WP_Block_Parser->parse(), wp-includes/blocks.php:274 parse_blocks(), wp-includes/formatting.php:4842 filter_block_content(), wp-includes/class-wp-hook.php:286 wp_pre_kses_block_attributes(), wp-includes/plugin.php:208 WP_Hook->apply_filters(), wp-includes/kses.php:914 apply_filters('pre_kses'), wp-includes/kses.php:737 wp_kses_hook(), wp-content/plugins/sugar-calendar/sugar-event-calendar/includes/admin/list-tables/class-wp-list-table-base.php:1702 wp_kses(), wp-content/plugins/sugar-calendar/sugar-event-calendar/includes/admin/list-tables/class-wp-list-table-base.php:1529 Sugar_Calendar\Admin\Mode\Base_List_Table->get_pointer_text(), wp-content/plugins/sugar-calendar/sugar-event-calendar/includes/admin/list-tables/class-wp-list-table-base.php:1278 Sugar_Calendar\Admin\Mode\Base_List_Table->setup_pointer(), wp-content/plugins/sugar-calendar/sugar-event-calendar/includes/admin/list-tables/class-wp-list-table-base.php:1226 Sugar_Calendar\Admin\Mode\Base_List_Table->get_event(), wp-content/plugins/sugar-calendar/sugar-event-calendar/includes/admin/list-tables/class-wp-list-table-month.php:200 Sugar_Calendar\Admin\Mode\Base_List_Table->get_events_for_cell(), wp-content/plugins/sugar-calendar/sugar-event-calendar/includes/admin/list-tables/class-wp-list-table-month.php:248 Sugar_Calendar\Admin\Mode\Month->get_row_cell(), wp-content/plugins/sugar-calendar/sugar-event-calendar/includes/admin/list-tables/class-wp-list-table-base.php:2208 Sugar_Calendar\Admin\Mode\Month->display_mode(), wp-content/plugins/sugar-calendar/sugar-event-calendar/includes/admin/menu.php:156 Sugar_Calendar\Admin\Mode\Base_List_Table->display(), wp-includes/class-wp-hook.php:286 Sugar_Calendar\Admin\Menu\calendar_page(), wp-includes/class-wp-hook.php:310 WP_Hook->apply_filters(), wp-includes/plugin.php:465 WP_Hook->do_action(), wp-admin/admin.php:253 do_action('toplevel_page_sugar-calendar')]
Requested in HS today:
https://secure.helpscout.net/conversation/1067356932/144008?folderId=1909452
Can Sugar import from other calendars?
--
Can Sugar Calendar import events from Modern Tribe Events and/or Google Calendars?Also, can it handle several thousand events?I have an extensive collection of holidays and special days. It would be a pain in my wrist to have to enter them one by one. :)
From: https://wordpress.org/support/topic/migrating-from-older-version-to-new/
The migrator will finish successfully, but then some Events will just be completely missing.
I've tracked it down, and it happens when an Event from 1.x has no end date/time value (missing or omitting the sc_event_end_date_time
post meta key entirely).
This is causing the migrator to assign the Unix Epoch as the value, and there is no logic to prevent this from happening in this instance.
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.