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
 Modifying pop_datepicker
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

StephenD
Senior Member

Australia
1044 Posts

Posted - 09 July 2005 :  18:10:35  Show Profile  Send StephenD a Yahoo! Message
I'd like to use the pop_datepicker option on another field in inc_profile and pop_profile. I've linked the files ok to the new field (M_RECNAME) and the popup date calendar comes up ok ... but I'd like to change the code so that it doesn't enforce the 18yrs and over calculation after you select the date and the default date shown when the calendar opens up is not 18 years ago to the date but todays date.

Also, I want the data in that field to display as a date format sans time. I've been playing around with this code in pop_profile:
			if strRecName = "1" and Trim(rs("M_RECNAME")) <> "" then 
Response.Write	"                    <tr>" & vbNewLine & _
				"                      <td bgColor=""" & strPopUpTableColor & """ align=""right"" nowrap><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Date ME Position Enrolled: </font></b></td>" & vbNewLine & _
				"                      <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & CDate(FormatDateTime(chkDate(strRecName, " ", true))) & "</font></td>" & vbNewLine & _
				"                    </tr>" & vbNewLine
			end if			

But I keep getting various checkstring errors. Some help guys please.

Edited by - StephenD on 09 July 2005 18:12:03

StephenD
Senior Member

Australia
1044 Posts

Posted - 09 July 2005 :  22:41:39  Show Profile  Send StephenD a Yahoo! Message
OK, I got the date display sorted by using this: & ChkDate(rs("M_RECNAME"),"",false) &

Just need to find where it is doing that 18+ calculation. I can't see it in pop_datepicker?
Go to Top of Page

StephenD
Senior Member

Australia
1044 Posts

Posted - 10 July 2005 :  07:27:48  Show Profile  Send StephenD a Yahoo! Message
Figured it out... line 200 in pop_datepicker.asp. Changed dDate = DateAdd("yyyy",-13, strForumTimeAdjust) to dDate = DateAdd("yyyy",0, strForumTimeAdjust)
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.31 seconds. Powered By: Snitz Forums 2000 Version 3.4.07