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)
 Use Age & DOB together
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

hawkdrean
New Member

73 Posts

Posted - 13 March 2005 :  13:41:48  Show Profile  Visit hawkdrean's Homepage
I like to know if I can make Age a required item and also use DOB too.

cripto9t
Average Member

USA
881 Posts

Posted - 13 March 2005 :  18:48:30  Show Profile
To show DOB and age make these changes

In "admin_config_members" fnd this code (close to the top of file)
if Request.Form("strAge") = "1" and Request.Form("strAgeDOB") = "1" then 
		Err_Msg = Err_Msg & "<li>Age and Birth Date cannot both be On at the same time</li>"
	end if

Comment it out like this
'if Request.Form("strAge") = "1" and Request.Form("strAgeDOB") = "1" then 
		'Err_Msg = Err_Msg & "<li>Age and Birth Date cannot both be On at the same time</li>"
	'end if

In "pop_profile.asp" find this code around line 572
if (strAgeDOB = "1" and Trim(strDOB) <> "") then
			strDOB = DOBToDate(strDOB)
				Response.Write	"                    <tr>" & vbNewLine & _
						"                      <td bgColor=""" & strPopUpTableColor & """ align=""right"" nowrap valign=""top""><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Age: </font></b></td>" & vbNewLine & _
						"                      <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & DisplayUsersAge(strDOB) & "</font></td>" & vbNewLine & _
						"                    </tr>" & vbNewLine
			end if

Replace it with this
if (strAgeDOB = "1" and Trim(strDOB) <> "") then
			'strDOB = DOBToDate(strDOB)
                        strDOB = chkDate(strDOB,"",false)
				Response.Write	"                    <tr>" & vbNewLine & _
						"                      <td bgColor=""" & strPopUpTableColor & """ align=""right"" nowrap valign=""top""><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>DOB: </font></b></td>" & vbNewLine & _
						"                      <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & strDOB & "</font></td>" & vbNewLine & _
						"                    </tr>" & vbNewLine
			end if


There are a few post in these forums that show how to make a members field required. I'll see if I can find one for you.

    _-/Cripto9t\-_
Go to Top of Page

hawkdrean
New Member

73 Posts

Posted - 13 March 2005 :  19:23:16  Show Profile  Visit hawkdrean's Homepage
Thank you very much it is what I needed
Go to Top of Page

hawkdrean
New Member

73 Posts

Posted - 17 March 2005 :  19:36:54  Show Profile  Visit hawkdrean's Homepage
How do I chane the code to make Age a required item with this( * ) went someone register they need to put in there age in. I don't want it as a option

Edited by - hawkdrean on 17 March 2005 19:38:12
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 18 March 2005 :  06:53:04  Show Profile
quote:
Originally posted by hawkdrean

How do I chane the code to make Age a required item with this( * ) went someone register they need to put in there age in. I don't want it as a option


Forum search is located at the top of the page.
Search for required fields, check exact phrase and archives. Lots of posts on this subject.

    _-/Cripto9t\-_
Go to Top of Page

hawkdrean
New Member

73 Posts

Posted - 18 March 2005 :  21:13:22  Show Profile  Visit hawkdrean's Homepage
Thanks all
Go to Top of Page

andretti
New Member

70 Posts

Posted - 31 March 2005 :  10:11:57  Show Profile  Visit andretti's Homepage  Send andretti an AOL message  Send andretti a Yahoo! Message
odd thing... I am using this code and it works fine. However everyone's birthday comes back with the year 1992 and a random month and day. This even happened after i went to my profile and changed my birthdate.

I dunno if this was the case before I added this code or not but only noticed it recently. Any thoughts??
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 02 April 2005 :  08:43:46  Show Profile
The same thing happened to me twice. The instructions are clear I just don't need them .

You need to fill out month and year and hit the "GO" button. Then you choose a day.


    _-/Cripto9t\-_
Go to Top of Page

andretti
New Member

70 Posts

Posted - 02 April 2005 :  08:53:18  Show Profile  Visit andretti's Homepage  Send andretti an AOL message  Send andretti a Yahoo! Message
quote:
Originally posted by cripto9t

The same thing happened to me twice. The instructions are clear I just don't need them .

You need to fill out month and year and hit the "GO" button. Then you choose a day.





Ugh - I hate missing the simple things in life.... You are quite right the instructions are clearly there but you have to read and I did not an looks like a lot of my users do not either.

Thanks
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.2 seconds. Powered By: Snitz Forums 2000 Version 3.4.07