Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Events calendar MOD - recurring/one-off option
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

StudyManSteve
Starting Member

New Zealand
11 Posts

Posted - 26 October 2005 :  21:21:06  Show Profile
I'm not sure if this post should be here or in the MOD Add-On Forum (W/O Code)

I am in the process of testing the fantastic Red1's Event Calendar Mod I'm hoping to making the posting of a one-off (non-recurring) event a bit simpler.

My thoughts are to have a pair of radio buttons at the top something like this. When the 'One-off' event type is selected, the end date and recur type details should be hidden, and the end date automatically set to the same as the start date.

So far I have got the radio buttons in place as shown, setting values of 0 and 1 to "strRecurring" for the one-off and recurring options respectively. I think setting the end date to the start date should be easy enough but I don't have any ideas on hiding the desired bits when One-off is selected.. I guess it will require some javascript? Any clues here would be great.

I'm sure this has been thought of before, but i can't find any info on an existing implementation..

If this turns out to be too much of a challenge I may go with a non-recurring version of the events calendar mod, however I cannot see a non-recurring version for Snitz 3.4 on Snitzbitz, is there one available elsewhere?

Cheers guys

Nertz
Junior Member

Canada
341 Posts

Posted - 27 October 2005 :  11:06:12  Show Profile
StudyManSteve, just a suggestion.... Shouldn't need the radio buttons. I would instead suggest an additional option "non-recurring event" in the recurring pull-down selected by default on page load, which hides the end date field and makes its value the same as start date until some other recurring option is selected. Also, selection of end date should be limited by start date so that end date cannot occur before start date.

cheers,
Nat

Sadly, most Family Court Judges wrongfully reward opportunistic gold diggers
that use our children unjustly as "instruments" of power.


www.fathers-4-justice-canada.ca
Go to Top of Page

StudyManSteve
Starting Member

New Zealand
11 Posts

Posted - 27 October 2005 :  22:44:56  Show Profile
Excellent suggestion thanks Nat! Got me thinking outside the square

I have spent the last few hours doing something sort of similar and have come up with a solution which fits the bill for me. In case anyone else is interested:

My aim was to stop the end date and recur type options showing unless a recurring event type was desired. As suggested, I removed the radio buttons which I had put on the topic page, and instead I placed them on the events calendar page (screenshot) The value of 'recurring' (either 0 or 1) is passed to cal_post.asp, where it only displays the end date and recurring options if the recurring type had been selected. A small check had to be added to cal_post_info1.asp, checking the end date for a nul string, and if so set the end date to the same value as the start date.

Just need to work on getting the right things displaying when an event is edited, but that can wait for another day
Go to Top of Page

Nertz
Junior Member

Canada
341 Posts

Posted - 28 October 2005 :  13:27:12  Show Profile
StudyManSteve,

glad you like the suggestion, I just wish I had the time and know-how to do it myself. One other suggestion... I need additional recurrence options in my forums, like "1st sunday of month yearly", ... "last sunday of month yearly", etc. eg: Event: Fall Back, last sunday of october every year. Not that I need to remind users to reset their clocks twice a year, but I do have yearly scheduled events that are on specific weekends of a month. If you could pull that one thru, I'd appreciate it.

And long time ago, I worked out some code for Liturgical events over the year. Your welcome to have that as well to include in your code if you want it.

cheers,
Nat

Sadly, most Family Court Judges wrongfully reward opportunistic gold diggers
that use our children unjustly as "instruments" of power.


www.fathers-4-justice-canada.ca
Go to Top of Page

StudyManSteve
Starting Member

New Zealand
11 Posts

Posted - 29 October 2005 :  08:05:14  Show Profile
Nat - I don't really have the time to be Snitz'ing either, I should be studying for exams.. oops, the sarcasm in my username is beginning to show!

The first sunday of month/last sunday of month idea is another goodie.. in fact for my forum it would be nice to have the daylight savings notes. I'll look into it in a couple of weeks when I'm free.

I'm not familiar with the pattern of Liturgical events, I'll be keen to have a look at your code and learn from it though.

Did you want a copy of the one-off/recurring code? It still needs tidying up a bit.
Go to Top of Page

goorootech
New Member

Australia
53 Posts

Posted - 09 November 2005 :  03:42:58  Show Profile  Visit goorootech's Homepage
Hey StudyManSteve, I'd be keen on this! We use non-reoccuring events ALL the time.

Another thing we miss is a button to put both start and end dates to 'todays date' - not sure if you can do that, but I'm soo sick of having the set an old event (ie past event) to today's date and having to manually set both start and finish dates to today's date. A simple click of a button called 'Set to Today' would be unbelievably fantastic!!

Either way I'm really interested in what you come up with this.

Jason

regards,
Jason Binder
Go to Top of Page

gelliott
Junior Member

USA
268 Posts

Posted - 10 November 2005 :  12:24:08  Show Profile
Steve and Nat - sorry I'm a few weeks late in seeing your comments - things have been unbelievable at work lately. I wrote an add-on for Red's calendar which adds holidays like daylight savings, Father's Day and Mother's Day, and other "floating" holidays. Go to http://www.snitzbitz.com/mods/details.asp?Version=All&mid=66 and scroll down to the first add-on...

* The optimist says the cup is half full. The pessimist says it's half empty. But the engineer knows the truth - the cup's design is incorrectly sized.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.32 seconds. Powered By: Snitz Forums 2000 Version 3.4.07