PEAK XOOPS - Repeating events on weekdays only in englishin japanese

Repeating events on weekdays only

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
depth:
0
Previous post - Next post | Parent - Children.1 .2 | Posted on 2004/11/24 3:43
nibble4bits  ÆóÅùʼ   Posts: 2
I am trying to repeat events monthly but on weekdays only.

I have a monthly event that occurs on the 15th of the month as long as the 15th is a weekday. If the 15th falls on a Saturday or Sunday, I want to be able to tell the event to "move" it for that month to a Friday or Monday for that month.

Is this possible with piCal?

Thank you!
Votes:0 Average:0.00
depth:
1
Previous post - Next post | Parent - Children.1 | Posted on 2004/11/30 16:47
GIJOE  ÀèǤ·³Áâ   Posts: 4110
hi nibble

As piCal is based on RFC255, a feature of RRULE without RFC2445 will not be implemented.

If you want it, hack it by yourself

The point which should be modified is after the line 509 of class/piCal.php
			} else if( isset( $BYMONTHDAY ) ) {
Votes:0 Average:0.00
depth:
2
Previous post - Next post | Parent - Children.1 | Posted on 2004/12/1 4:32
nibble4bits  ÆóÅùʼ   Posts: 2
I have little experience with hacking PHP files. I did a search in class/piCal.php in piCal 0.60 and could not find a single instance of $BYMONTHDAY .

Line 509 doesn't even appear to be in an if statement, so an else if doesn't seem to make sense.
Votes:0 Average:0.00
depth:
3
Previous post - Next post | Parent - No child | Posted on 2004/12/1 18:45
GIJOE  ÀèǤ·³Áâ   Posts: 4110
Near line 509.
Search it.

And, I'm sorry that I have to say it is impossible for little skilled programmer to hack piCal like what you want.
Votes:0 Average:0.00
depth:
1
Previous post - Next post | Parent - Children.1 | Posted on 2004/12/30 0:03
ocaptain  ÆóÅùʼ   Posts: 2
I would find this most invaluable as well... Similarly, I would like the following repeat item options:
- First WORKDAY of the month, that is I want it on the first of the month unless it falls on a Saturday/Sunday
- Last WORKDAY of the month; same deal.
- Repeat every Friday, unless it is marked a HOLIDAY. In that event forward to the next or prior WORKDAY

This woujld make piCal a corporate-grade application. I don't know of any other calendar program that does this.

The next best thing would be this if it were possible:
- Setup a Repeat Series, say repeat every Friday
- In the event a Friday is on a Holiday that month, change the date of that one item and it asks (do you want to change for this one item or the whole series?"
- Similarly, if I delete an item that is in a series, option should be there to delete the one item or the whole series.

Thanks!!!

-Anthony
Votes:0 Average:0.00
depth:
2
Previous post - Next post | Parent - No child | Posted on 2005/1/4 18:22
GIJOE  ÀèǤ·³Áâ   Posts: 4110
hi Anthony.

As I wrote, my implementation is limited in RFC2445.

Perhaps the only clue for your wants is to use both RRULE and EXRULE.

Of course, I know I have to implement EXRULE & EXDATE.
But it's not so easy and I need a settled time.
Votes:0 Average:0.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!