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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 How do I make events recurring (cont.)
 New Topic  Topic Locked
 Printer Friendly
Previous Page | Next Page
Author Previous Topic Topic Next Topic
Page: of 5

GauravBhabu
Advanced Member

4288 Posts

Posted - 11 August 2002 :  14:31:13  Show Profile
If IsEmpty(myDate) OR NOT IsDate(myDate) Then


There are two sql queries within the above if block. Add event_repeat to the query.

CSS and HTML4.01 Compilant Snitz Forum . ForumSquare . Rakesh Jain

It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.

Prayer Of Forgiveness
"I forgive all living beings. May all living beings forgive me!
I cherish the friendliness towards all and harbour enmity towards none." -- Aavashyaka Sutra(Translated)
Go to Top of Page

macho
Junior Member

Denmark
150 Posts

Posted - 11 August 2002 :  14:43:31  Show Profile
Got rid of the error msg, now showing this instead of the events for the day:

Repeat: 3Start Date: 20020811000000
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 11 August 2002 :  14:49:01  Show Profile
it is getting the Repeat value of 3 and the date. Good.

comment out the following statements

Response.write "Repeat: " & Rs("Event_Repeat")
Response.write "Start Date: " & Rs("start_date")
Response.end


CSS and HTML4.01 Compilant Snitz Forum . ForumSquare . Rakesh Jain

It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.

Prayer Of Forgiveness
"I forgive all living beings. May all living beings forgive me!
I cherish the friendliness towards all and harbour enmity towards none." -- Aavashyaka Sutra(Translated)
Go to Top of Page

macho
Junior Member

Denmark
150 Posts

Posted - 11 August 2002 :  14:59:32  Show Profile
quote:

comment out the following statements


Response.write "Repeat: " & Rs("Event_Repeat")
Response.write "Start Date: " & Rs("start_date")
Response.end





after I commented this out the events are showing but without effect on repeating. Example:
Event start date: 11 August 2002
Event end date: 11 December 2002
Repeating: Once a week

The event is showing up every single day during that period instead of just once a week.
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 11 August 2002 :  15:15:31  Show Profile
Please post a link to your page.

You got to apply similar logic in Function DisplayMonth_Full as well.

CSS and HTML4.01 Compilant Snitz Forum . ForumSquare . Rakesh Jain

It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.

Prayer Of Forgiveness
"I forgive all living beings. May all living beings forgive me!
I cherish the friendliness towards all and harbour enmity towards none." -- Aavashyaka Sutra(Translated)
Go to Top of Page

macho
Junior Member

Denmark
150 Posts

Posted - 11 August 2002 :  15:48:38  Show Profile
quote:

Please post a link to your page.



Well, it's running on a local intranet, but I can upload a test-site very soon (one hour or so)


quote:

You got to apply similar logic in Function DisplayMonth_Full as well.



Will do before uploading test-site.

Go to Top of Page

macho
Junior Member

Denmark
150 Posts

Posted - 11 August 2002 :  16:20:00  Show Profile
The site is uploaded here (link to calendar):

http://www.staal-larsen.dk/forum/events.asp


Edit: The text version of events_functions.asp is uploaded with the latest version here: http://www.staal-larsen.dk/snitz/events_functions.txt

Edited by - macho on 11 August 2002 16:45:44
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 11 August 2002 :  20:06:31  Show Profile
Find the following statement on around Line 741
Do While NOT Rs.EOF AND bEvents = False


Add the following sattements just below the above statement.

intEventRepeat = Rs("event_repeat")
if Rs("event_repeat") = "" then intEventRepeat = 0
blnRepeat = EventRepeat(intEventRepeat, strToDate(Rs("start_date")))
if blnRepeat then


Find the following statements on or around Line 758-760

Rs.MoveNext
End If

Loop


Modify the above statements to as below


Rs.MoveNext
End If
Else
Rs.MoveNext
End if

Loop



CSS and HTML4.01 Compilant Snitz Forum . ForumSquare . Rakesh Jain

It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.

Prayer Of Forgiveness
"I forgive all living beings. May all living beings forgive me!
I cherish the friendliness towards all and harbour enmity towards none." -- Aavashyaka Sutra(Translated)
Go to Top of Page

macho
Junior Member

Denmark
150 Posts

Posted - 11 August 2002 :  20:47:27  Show Profile
I did those changes now, result:
Events added are now only being showed when in week-view Edit:(still showing every day, even if I posted it to recur only once a week.
Not showing under "Upcoming Events", in "Month View" or "Day View"; no error msg's though!

Edited by - macho on 11 August 2002 20:51:33
Go to Top of Page

macho
Junior Member

Denmark
150 Posts

Posted - 11 August 2002 :  21:11:54  Show Profile
I just found out that if there is an event for a certain date, no recurring, the events that I earlier added are now showing up on that day in the calendar in Month Viewand der Upcoming Events; in week view they all still appear on all days!
Take a look at the calendar now:
http://www.staal-larsen.dk/forum/events.asp
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 11 August 2002 :  21:45:31  Show Profile
I know macho. The events Mod in its current form is not what I like. If you want to change anything you have to do it within every function to be consistent with display of events correctly in all modes. I am working on a complete new calendar Mod which is much advanced and will have many features.

To correct the Display of events in week view or day view, you have to apply the similar criteria, we applied to monthview, in the functions for those modes (week view and day view etc.)
There are many other bugs in the events Mod and will require changes, Infact after we finish modifying, the code will be completely changed. I did it once for me and spent a lot of time and decided to write one from scratch. A demo of work in progress can be found here.

CSS and HTML4.01 Compilant Snitz Forum . ForumSquare . Rakesh Jain

It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.

Prayer Of Forgiveness
"I forgive all living beings. May all living beings forgive me!
I cherish the friendliness towards all and harbour enmity towards none." -- Aavashyaka Sutra(Translated)
Go to Top of Page

rick7165
Senior Member

USA
1094 Posts

Posted - 11 August 2002 :  22:16:51  Show Profile  Visit rick7165's Homepage
Boy the Events MOD needed that... It's been a headache to everyone.

Very Nice Job GauravBhabu!

Test Site:
EastPasco Huw's Code 3.3.10 SQL 2000
Huwr's Modified Code
Email
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 11 August 2002 :  22:33:56  Show Profile
Thanks Rick.

Macho however for the events to dispoly correctly do this

at around line 1200 find the following statements
'Display the events for that day
Do while not rs.eof



Add the following statements just below the above statement

intEventRepeat = Rs("event_repeat")
if Rs("event_repeat") = "" then intEventRepeat = 0
blnRepeat = EventRepeat(intEventRepeat, strToDate(Rs("start_date")))
if blnRepeat then



Then add another end if as shown below around line 1212.
end if
end if
rs.movenext
loop

CSS and HTML4.01 Compilant Snitz Forum . ForumSquare . Rakesh Jain

It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.

Prayer Of Forgiveness
"I forgive all living beings. May all living beings forgive me!
I cherish the friendliness towards all and harbour enmity towards none." -- Aavashyaka Sutra(Translated)
Go to Top of Page

macho
Junior Member

Denmark
150 Posts

Posted - 12 August 2002 :  04:28:17  Show Profile
I have now changed everything following your instructions.
quote:

I did it once for me and spent a lot of time and decided to write one from scratch. A demo of work in progress can be found here.




Your calendar demo is absolutely amazing. I've been looking a lot at the one you have at www.forumsquare.com which has much of the same features. BTW I'm not able to login at www.forumsquare.com for the moment. I enter name/pass and get accepted but after that I'm logged out again! (Maybe you've seen that before?)

I also have to tell you that I really appreciate all the hard work your doing to make the calendar being so great! I'm sure that I'm not the only one thinking that!

Textversion: www.staal-larsen.dk/snitz/events_functions.txt" target="_blank">http://www.staal-larsen.dk/snitz/events_functions.txt - Calendar: www.staal-larsen.dk/forum/events.asp" target="_blank">http://www.staal-larsen.dk/forum/events.asp

Edited by - macho on 12 August 2002 04:32:53
Go to Top of Page

GauravBhabu
Advanced Member

4288 Posts

Posted - 12 August 2002 :  06:17:33  Show Profile
Macho Clear the cookies and also within internet properties, under the privacy tab set the slider to low. That should help.

CSS and HTML4.01 Compilant Snitz Forum . ForumSquare . Rakesh Jain

It is difficult to IMPROVE on Perfection, There is no harm in Keep Trying.

Prayer Of Forgiveness
"I forgive all living beings. May all living beings forgive me!
I cherish the friendliness towards all and harbour enmity towards none." -- Aavashyaka Sutra(Translated)
Go to Top of Page
Page: of 5 Previous Topic Topic Next Topic  
Previous Page | Next Page
 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.3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07