Calendar MOD idea - Postet den (1928 Views)
Senior Member
leatherlips
Innlegg: 1838
1838
It would be great if someone knew how to write a new function for the calendar mod. Currently you can set it to every day, every week, every month, etc.
I would like to have one called something like Anniversary. If selected, you would only need to select the start date. Then by choosing recurring "Anniversary" it would automatically show that date every year. This way it would not show each year in the event topic as it currently does if you select every year.
It also would be better than the every year function. With the every year function you have to choose the date range. Once the end range expired you would have to edit it again.
Any takers?<
   
 Sidestørrelse 
Postet den
Support Moderator
Podge
Innlegg: 3776
3776
You mean the only difference is that an Anniversary is forever while the current "year function" is limited?<
Postet den
Average Member
phy1729
Innlegg: 589
589
I think he's talking about when year is set it shows all the recurrences. As in:

Post a link to the mod and I'll look at it.<
Postet den
Senior Member
leatherlips
Innlegg: 1838
1838
Here is the link to the calendar event mod.
Click here.
Also on there is an add on that kind of does what I want. It is called Greg's Additional Recurring Options & Floating Holidays. For example, you can choose the Easter setting and it automatically adds Easter to the correct date. I'm not sure if it automatically adds it to each future year though.<
Postet den
Average Member
phy1729
Innlegg: 589
589
Sorry leatherlips, but it's much more complicated then I thought it was. If anyone else wants to try cal_post needs to be edited to add Response.Write "<option value=""18"">Anniversary</option>" after line 117 and cal_post_info1.asp will need editing in the neighborhood of 114.
But what makes it so complicated is to do what you want I would add another table for such dates and just tack the year on the end. I'll attempt this if no one else offers but I can't test anything as I don't have the mod installed.<
Postet den
Senior Member
leatherlips
Innlegg: 1838
1838
I could live with the Every Year function if I could figure out how to not make it display every year in the event topic (as in the picture above).
The only code I can find that deals with the every year is this:

Code:
Case 11  'Every year
dateCursor = DateAdd("yyyy", 1, dateCursor)

There has to be more to it than that? It would be great if it only showed the date of the year that it was appearing in.<
 
Du må legge inn en melding