[EventCalendar] Feature Request: Recurring Events for one Event
Post?
Jonathan M
bluesweatshirt at msn.com
Sun Nov 5 05:08:38 UTC 2006
EventCalendar Team,
I just found this plugin for wordpress and promptly changed from RS-Event to this one, and I realized that it is missing one feature that would make it outstanding.
Would it be possible to add a recurring event based off a single post?
For Example: Every Tuesday from Jan 1 - March 1 (or say for 12 weeks) at 3:00 "Event X" will happen.
It seems to me that this would be easy to implement, although I have not looked at the plugin and am not skilled enough to do it myself.
I would think the code would be something like:
-New integer values for "Days in Month"
EX:
M1 = 31
M2 = 28
-Script Code:
After posting first Event
While "New Integer Set to Start At 0" < "Number of Weeks to Repeat" (which would be 0 by default)
Loop 7 Times
Add 1 to "day integer"
If day = "Days in Month" + 1 (Which would be the first day in the new month)
Add 1 to "month integer"
Set "Day Integer" to 1
End If
Post New Event
Add 1 to "New Integer Set to Start At 0"
The only thing my idea doesn't have implemented is the change for leap years, but the script could have a check:
If "current year" / 4
Then M2 = 29
End if
(And this code is valid until 2100... which I don't think will be of any worries. lol)
I see the latest version that I found today came out two days ago, so hopefully you guys aren't burned out on coding.
Thanks
Jonathan M
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://penguin.firetree.net/pipermail/eventcalendar/attachments/20061104/bc63ca06/attachment.htm
More information about the EventCalendar
mailing list