Author |
Topic |
GauravBhabu
Advanced Member
4288 Posts |
Posted - 11 August 2002 : 14:31:13
|
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) |
|
|
macho
Junior Member
Denmark
150 Posts |
Posted - 11 August 2002 : 14:43:31
|
Got rid of the error msg, now showing this instead of the events for the day:
Repeat: 3Start Date: 20020811000000 |
|
|
GauravBhabu
Advanced Member
4288 Posts |
Posted - 11 August 2002 : 14:49:01
|
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) |
|
|
macho
Junior Member
Denmark
150 Posts |
Posted - 11 August 2002 : 14:59:32
|
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. |
|
|
GauravBhabu
Advanced Member
4288 Posts |
Posted - 11 August 2002 : 15:15:31
|
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) |
|
|
macho
Junior Member
Denmark
150 Posts |
Posted - 11 August 2002 : 15:48:38
|
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.
|
|
|
macho
Junior Member
Denmark
150 Posts |
|
GauravBhabu
Advanced Member
4288 Posts |
Posted - 11 August 2002 : 20:06:31
|
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) |
|
|
macho
Junior Member
Denmark
150 Posts |
Posted - 11 August 2002 : 20:47:27
|
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 |
|
|
macho
Junior Member
Denmark
150 Posts |
Posted - 11 August 2002 : 21:11:54
|
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 |
|
|
GauravBhabu
Advanced Member
4288 Posts |
Posted - 11 August 2002 : 21:45:31
|
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) |
|
|
rick7165
Senior Member
USA
1094 Posts |
Posted - 11 August 2002 : 22:16:51
|
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 |
|
|
GauravBhabu
Advanced Member
4288 Posts |
Posted - 11 August 2002 : 22:33:56
|
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) |
|
|
macho
Junior Member
Denmark
150 Posts |
|
GauravBhabu
Advanced Member
4288 Posts |
Posted - 12 August 2002 : 06:17:33
|
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) |
|
|
Topic |
|