Git Product home page Git Product logo

my-calendar's People

Contributors

cmhimmerich avatar dann2012 avatar dependabot[bot] avatar jdevalk avatar joedolson avatar joseffallman avatar shankj3 avatar timlah avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

my-calendar's Issues

New control: Show all events.

Hey Joe

An example. I have used https://webnus.net/modern-events-calendar/
for a customer site.

I believe the site has various events in May, June and perhaps July. Let's say that there are 3-4 events a month.
Having a way to show all events independent of month would be helpful. A way to create an overview of all the events happening. I understand this can be done in List view.

Maybe I should just close this issue. As I would like to see a general better design. Creating additional views on the frontend. To make the calendar feel more modern. I will likely get back to this at a later time.

Went to My Calendar page to view the frontend calendar

I went to the My Calendar page to view the frontend calendar.

This is what I saw:

Screen Shot 2021-04-18 at 21 22 39

I wondered if a fly had landed on the screen. For it kinda looks like a smudge mark on the 2021 year to the left of the Go button.

I assume that I can place the backend Classic block into a Group block to make it wider.
Like so:

Screen Shot 2021-04-18 at 21 25 12

Checking the frontend the calendar has the same width.
I also assume that I can add a background color to the calendar somewhere in the settings page.

It would be nice with different styles for the calendar. I can experiment with that.

Dynamically group calendars in shortcode arguments

Idea from private support forum, e.g. [my_calendar category=”6,3,5(25,26,27,28,29),2,4,30″ format=”calendar” time=”month” above=”nav,jump,timeframe,key” below=”print,feeds”]

In above example, categories 25-29 are being grouped under category 5. They'll be displayed & toggled as a group as if they were in category 5, even if they aren't.

Suggestions to cleaning up the Input screen settings.

Hi Joe

Doing some brain storming.

I am wondering if the "Show in event manager" should be placed in a kind of vertical row with columns list.
+
Using less text in the "Event Scheduling Defaults" section.

"If a recurring event falls on a date that doesn't exist (like the 5th Wednesday in February), move it back one week."
= If a recurring event falls on a date that does not exist, move it back one week.

" If an event coincides with an event in the designated "Holiday" category, do not show the event."
Hmm this one is a bit tricky. It feels too detailed. Having a "Holiday Category" mentioned in the Categories page seems fine. The above option becomes too detailed.

I believe it would be better to have an advanced customization page, to where less used option can be moved.

Remove grey background behind checkboxes.

As I was experimenting with the Categories area I looked at the grey area behind these checkboxes.

With and without:

Screen Shot 2021-04-18 at 21 08 43

Screen Shot 2021-04-18 at 21 09 45

Other areas where there is a grey background is:
Add day event
Hide end time

Ahhh the grey is used as a clickable hover zone. Well it seems the grey areas should perhaps stay.

Need more information: Process WordPress shortcodes in description fields

I am looking at the Output Settings.

Regarding:
The option “Process WordPress shortcodes in description fields” refers to WordPress shortcodes like [my_calendar], not My Calendar’s own template tags like {title}. This enables you to insert forms, payment buttons, and similar items directly into your description fields and have them ren- dered appropriately.

The above should link to a section that mentions shortcodes.

Searchable mc-events Post Type

We have a client that needs to be able to search for any page in their site with a global search bar. Could the exclude_from_search post type argument be modifiable through a filter?

Additional UI experimentation around the Categories area below the Event content field.

Looking at the Categories area below the Event content.

Before:
Screen Shot 2021-04-18 at 21 08 43

After:
Screen Shot 2021-04-18 at 21 09 45

Changes:

.my-calendar-admin fieldset.categories {
margin-top: 10px;
}

.my-calendar-admin fieldset fieldset {
/* margin: 0 0 20px 0; */
padding-top: 2px;
}

.my-calendar-admin .checkboxes li {
display: inline-block;
padding: 5px;
/* background: rgba(0, 0, 0, .05); */
margin: 2px;
}

As there is just too much space in the Categories area. This can be tightened up. I also removed the grey background color.

Default permalinks vs pretty permalinks

I am going through the guide.

I am testing pretty permalinks vs default permalinks.

Use Pretty Permalinks for Events
Adds the title of the event into the URL.
http://yourdomain.com/mc-events/title-of-your-event/?mc_id=24

Turning off this option removes the title from the URL and only inserts the My Calendar slug.
http://yourdomain.com/my-calendar/?mc_id=6

What I find strange with the above is using mc-events with pretty permalinks and with default permalinks it uses my-calendar.

My assumption is that it would look like this:
Pretty permalinks:
http://yourdomain.com/my-calendar/title-of-your-event/?mc_id=24

Default permalinks:
http://yourdomain.com/my-calendar/?mc_id=6

With no mention of mc-events.

mc events should default to the My Calendar name or whatever name the user uses for the Calendar page.

Saving a recurring event wipes out custom event instances

Using the option to 'Add New Date' for an event gives you the ability to have an extra occurrence of the event. However, if you re-save the root event, any custom occurrences are wiped out and replaced by the standard recurrence pattern.

Want to add a record in hidden fields of all non-conforming dates so that they will be recreated, as well.

Not able to preview a draft event...

I made an event and saved it as a draft.
Then tried to Preview it.

  1. Draft event.

Screen Shot 2021-04-18 at 21 16 26

  1. Previewing the event. Frontend.
    Screen Shot 2021-04-18 at 21 16 59

This is a test site using Twenty Twenty One. WP 5.7.1. Only the My Calendar plugin active.
OSX 10.15.7
Chrome

Update heading structure and table labelling for "List", "Month", "Week" and "Day" views to improve accessibility

In the “my-calendar” view that allows you to select between “List”, “Month”, “Week” and “Day”.
I would like to see an H2 heading used to consistently title each view.
The heading can be used as an accessible name for the table in the “Month” and “Week” views using aria-labelledby attribute.
This would make styling the page easier and give a consistent way for screen reader users to find the calendar information.

I have added some Javascript to provide a patch on the referenced website to demonstrate the approach I would like to see.
https://accessibleit.disability.illinois.edu/my-calendar/

What is this? Mini calendar widget date links to:

I am wondering what the below does.

Mini calendar widget date links to:
Options.
jQuery pop-up view
daily view page (above)
in-page anchor on main calendar page (list)
In-page anchor on main calendar page (grid)

Associated:
What is this? Target for Mini Calendar date links:
#52

Add UI for browsing SVG icons

After swapping the decade-old handful of PNG icons for 1700 Font Awesome SVG icons, need to build a selector for them.

Re-write my_calendar_copyr and related functions

These functions don't currently conform to the WordPress code standards. Would ultimately like to get rid of this process, and only edit files that are outside of the plug-in directory, but there are a number of steps to get there.

Adding tooltips?

There is so much one can configure that one idea would also be to add tooltips to specific options.

For instance a ? with a circle around it. Hover or click the ? to see the tooltip information.

Rephrasing: "Open calendar links to event details"

In the Output settings.
The first option is:
"Open calendar links to event details"

Rephrasing to what I believe it does:

"Open events in single event view."

---> This should also be on/checked by default.

When adding multiple occurrences of an event, individual all-day labels are not retained

WP-Admin > My Calendar > Add New Event

  • Enter an Event Title (e.g. Test 3)
  • Select the Category (testing)
  • Provide a date (for this example, I simply selected 2018-11-26)
  • Check the "All day event Time label:" and then populate this with "Test A"
  • Click the "Add another occurrence" button
  • Enter the date (for this example, I typed 2018-11-28) (BUG: note the datepicker doesn't open on the second date field, only the first one).
  • Check the "All day event Time label:" and then populate this with "Test B"
  • Click Publish

When I go to view the calendar, both entries inherited the Test B All Day label. This behavior was unexpected since I entered two different All Day event Time Labels. (this is more of an observation than a bug in my opinion though - I'm a web developer (not a WordPress developer) so I tend to side with developers :) but I digress. :)

WP-Admin > My Calendar > Event Groups

  • For the test I did above, I'd expect to only see one entry for the "grouped" event, not two as I am seeing now (again, this is an observation more than a bug)
  • Hover over the event, "Test 3" with the date/time heading of November 28,2018 Test A, you should see the option to Edit Group and click it
  • Change the Event Title from Test 3 to Test 3.1 and click the "Edit Event Group" (I'd expect this to read Save Changes or Save Event Group)
  • You should get the confirmation that the events were updated successfully
  • This time when I view the calendar, the event I edited appears ok (BUG: the system added a blank leading space - this is a bug as it affects the expected layout) but the next event in the group lost the Event Title (BUG) and retains the "All day event Time Label" so that the calendar events entries look like this (the _ represents the space I mentioned earlier). NOTE: the space after the : is expected

November 26: _Test B:_Test 3

November 28: _:_test 3

Add to settings remove My Calendar data when deleting plugin.

I am going through the manual.

  1. INSTALLATION

Why not use the WordPress delete option?

My Calendar User's Guide : Calendar version 3.2.0 : June 2020 : 9
Using WordPress to delete a plug-in does more than just delete the files; it also deletes all of your set- tings for the plug-in. If you use that method to remove a plug-in, you will need to reconfigure any set- tings you've changed in the plug-in, including your stylesheets, unless you're using My Calendar's cus- tom files directory to store styles.


Adding a remove My Calendar data on delete of plugin would give the option for the user.
It would be added to the General settings page.

Removing unneeded settings.

It would be helpful to go through Settings and see which options are not needed any longer, and perhaps add a note about it in this thread. So these can be looked at when there is time to do so.

Example:
Remove Use Pretty Permalinks for Events.

Change default start/end time for new events

Currently, default time is based on the current date. If the default start/end times were instead based on the last event entered, it would be easier to enter a sequence of events in chronological order.

Print search results

Hi.
I'm thinking of a future to make it easy to print search results. I want them to be on calender default print page.

I have done this before, by saving the return from "mc_get_search_results( $search );" i $_session and make my_calendar() to use that if the variable $_GET['searched'] is set.

I could make a pr with that approach but i don't know if its a good way to solve it or if only events id should be saved in the session or as a cookie and reload them when from db when rendering printpage.
One advantage of that would be that it could be easy to implement a select function so you could select which event you want to print.

What do you think?

Manage Events List

It would be nice to have a way to automatically delete (or archive) all events older than x days in order to keep the Manage Events list at a reasonable length.

Upcoming events shortcode does not display today's event (show_today enabled)

My Calendar version: 3.1.18

Issue

If there's a multiple day event with the End Date set to today, upcoming events shortcode does not display it even with show_today set to yes.

Example event
Date: 2020-04-05
From: empty
To: empty
All day event: checked
End Date: 2020-04-10

Example shortcode
[my_calendar_upcoming template="abcd206b575b82d604522ca7bf01021f" before="0" after="7" show_today="yes" type="event" order="asc"]

Fix

I believe changing DATE(occur_end) > '$date' to DATE(occur_end) >= '$date' on line 312 would fix the issue, I'll open up a pull request for it :)

What is this? Target for Mini Calendar date links:

As I am not very familiar with the calendar which is a good thing as I go through the guide..:)

I am right now in the Output Settings screen.

I do not understand what this is:

Target for Mini Calendar date links:
You can configure links in the mini calendar to point either to that date's events or to the place in the current calendar where that date is found. Although I could use the same URL for all possible settings, it gives more flexibility for you to specify a different URL – in case you want a different look or behavior. This URL is the destination you want links from the mini calendar to use.

Questions that come up....
What is the mini calendar? I have not seen a mention of this before now.
Where do I see it?
What does it do?

Screen Shot 2021-05-09 at 21 44 03

Associated:
What is this? Mini calendar widget date links to:
#53

Hover over calendar icon + List text shows uneven underline.

Tested with Twenty Twenty One and Twenty Twenty themes.
Hovering over the main calendar icon + List text shows an uneven underline like so:

Twenty Twenty One
Screen Shot 2021-05-09 at 22 19 54

Twenty Twenty
Screen Shot 2021-05-09 at 22 22 11

I have also seen this in other locations as well.
For instance.

List view.
Hovering
Screen Shot 2021-05-09 at 22 23 57

Btw Open a List view. Click the first event. Then close it again. Move the cursor away.
Notice the first clicked event has gone missing.
Screen Shot 2021-05-09 at 22 25 46

Rewrite style management

The way My Calendar handles designs is problematic, and needs to be revised. Historically, users have been able to directly edit the stylesheets in the plug-in directory. On plug-in update, these files need to be copied to a backup directory then restored. Because of this, there's no good way to ensure that updates to stylesheets - bug fixes, design changes, etc., are propagated to existing sites.

Goal: no more editing of plug-in stylesheets.

Update decision making:

  • If current stylesheet is not in core, replace all
  • If current stylesheet is not modified, replace all
  • if current stylesheet is in core & modified, move to my-calendar-custom, replace all

Process:

  1. Check location of current stylesheet.
  2. Check diff of current stylesheet
  3. Copy stylesheet if necessary

No need to do a replacement; that will happen automatically on update.

  1. Clean-up backed-up styles. (this means retaining file removal for a while longer.)

Changes to editing:

  1. Remove restore default style
  2. If custom style, allow editing.
  3. If core style, styles are additive only, and stored in custom directory.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.