Calendar weekly and monthly reoccurring items

Started by shadav, May 09, 2022, 11:44:45 AM

Previous topic - Next topic

shadav

I'm sorry but I keep forgetting how almost useless the built in calendar is
I mean it's nice to have don't get me wrong but it's kind of useless
I would really love to see instead of just being able to add yearly holidays to make it more of a schedule where you could also add repeating every week on this day or every month on this date
I feel this would really help make it more useful

yes I know there's the events mod but even that doesn't do this, that's more of a one time event

I mean I guess this could be a mod but is there any reason for it not to be core? To allow repeating weekly, monthly, and yearly options to the calendar?

Arantor

The problem with the calendar is that "it's bloat" so no one wants to improve, but if it were improved it would probably be used more... something of a catch 22 there.
Holder of controversial views, all of which my own.

Kindred

I actually paid a significant amount for a developer to build a functional event system for the calendar.... and offered the code to the team.

Unfortunately,  by the time we reached 2.1, the code had changed so much that the original would have to be rewritten anyway it was never included.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

shadav

Quote from: Kindred on May 09, 2022, 12:24:47 PMI actually paid a significant amount for a developer to build a functional event system for the calendar.... and offered the code to the team.

Unfortunately,  by the time we reached 2.1, the code had changed so much that the original would have to be rewritten anyway it was never included.
would you by chance still have this and where can I get it  :P I don't mind paying you for it
I'm currently looking for something to work with 2.0.19, as I can't update to 2.1.x due to a lot of the mods that I need to use on this project not being updated (and probably never will be updated for 2.1.x)

Steve

Hope you're not in a hurry since ... well, you know.
DO NOT pm me for support!

shadav

#5
Quote from: Steve on May 09, 2022, 01:58:34 PMHope you're not in a hurry since ... well, you know.
hahaha...everyone's abandoning us
*hides behind steve* don't leave me  :laugh:

I did find this....maybe....I don't know
https://www.simplemachines.org/community/index.php?topic=474940.msg3320917#msg3320917
which might sort of work
[edit] installed the above but as far as I can tell it didn't actually do anything at all...can't find how to add the events or anything, or i'm just really really having a duh moment...reverts site[/edit]

Sesquipedalian

FYI, I looked into this back when I wrote some significant improvements to the calendar for 2.1, and the truth is that integrating recurring events into SMF's calendar would be miserably complicated.

If one wants to add support for recurring events to a calendar system, the only sane way to do that is to implement in such a way that it will conform to the iCalendar standard and its rules for recurring events. Those rules can become very complex, especially once you allow exceptions to normal recurrence rules (e.g. we normally meet on Monday at 7:00 PM, but this week we're moving to Tuesday at 4:30 PM). That would require a lot of new code, as well as some new database columns. It's not impossible by any means, but the amount of effort should not be underestimated.

However, the really tricky part would be figuring out how to link recurring events with topics in SMF. This is vital functionality for SMF's calendar, and it currently assumes a one-to-one relationship between a topic and a linked event. Once there are recurring events involved, that assumption goes out the window. So now how does that linking even work? Do you have one topic that is linked to every recurrence of the event, or a separate topic for each recurrence? Do you allow both? If so, it a system wide setting or a per-instance option? If there is a separate topic for each recurrence, are the new topics generated automatically on a schedule? If there isn't a separate topic, what do you do with any exceptions to the normal recurrence rules, since under the hood those would actually exist as separate events?

These are all answerable questions and solvable problems, but it would be a massive undertaking and it would very complicated to build it in a way that satisfied people's divergent needs well.
I promise you nothing.

Sesqu... Sesqui... what?
Sesquipedalian, the best word in the English language.

Kindred

On vacation.
Ping me in 2 weeks and I'll see what I can dredge up
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: