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
 EVENT CALENDAR: Editing Recuring Event - Problem
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

lsakizada
New Member

USA
90 Posts

Posted - 11 February 2006 :  08:48:58  Show Profile
Hi, I have same problem as stated in this archived thread:
http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=56710&SearchTerms=Recurring
The problem (Red1-The author said its by design)is that the End date returned as the start date in case of editing recurring dates so, editing event posting caused all the recurring dates to be deleted and the user must reset it manually for each event.

Does anyone corrected this behaviour?
Does anyone can make a suggestions?

lsakizada
New Member

USA
90 Posts

Posted - 11 February 2006 :  10:07:21  Show Profile
Sorry to spam you guys but the solution for this is prety simple.
Here is the solution in case you will need it:

####(1)####
in cal_post.asp select the last record of this recurring event
and place it on top of the page:

if strRqMethod = "EditEvent" then
lastDate = ""
strSQL2 = "SELECT TOP 1 EVENT_DATE FROM " & strTablePrefix & "CAL_EVENTS WHERE TOPIC_ID = " & chkString(strRqForumID,"SQLString") & "ORDER BY EVENT_DATE DESC"
set rsCal2 = Server.CreateObject("ADODB.Recordset")
rsCal2.open StrSql2, My_conn
If not rsCal2.EOF then lastDate = rsCal2("EVENT_DATE")
rsCal2.close
set rsCal2 = nothing
end if


####(2)####
in cal_post.asp find this line(mine modified a little..):
Response.write "<td><input type=""text"" name=""Event_End"" value=""" & Event_Date & """ maxlength=""20"" size=""20"" style=""width: 160px""></td></tr>"

Replace it with this if statement:

if strRqMethod = "EditEvent" then
Response.write "<td><input type=""text"" name=""Event_End"" value=""" & strtodate(lastDate)& """ maxlength=""20"" size=""20"" style=""width: 160px""></td></tr>"
else
Response.write "<td><input type=""text"" name=""Event_End"" value=""" & Event_Date & """ maxlength=""20"" size=""20"" style=""width: 160px""></td></tr>"

end if


Thats it! once you post the modified event all will work as excpected.

Edited by - lsakizada on 11 February 2006 10:09:30
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.41 seconds. Powered By: Snitz Forums 2000 Version 3.4.07