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
 DOB errors out when required
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

BroIgnatius
New Member

56 Posts

Posted - 30 April 2007 :  16:24:29  Show Profile
I have the update to the latest Snitz and added the Require Member Profile Mod. It is working but....

When I require the Date of Birth I get an error message that the Date of birth as not been filled out, when in fact it has.

I uploaded the Register.asp file that came with the Require Member Profile Mod download and made the required manual edits.

JJenson
Advanced Member

USA
2121 Posts

Posted - 30 April 2007 :  18:04:45  Show Profile  Visit JJenson's Homepage
Do you have a link so I can take a look?
Go to Top of Page

BroIgnatius
New Member

56 Posts

Posted - 01 May 2007 :  00:30:13  Show Profile
quote:
Originally posted by JJenson

Do you have a link so I can take a look?



Sure, I copied the register.asp as register.txt at:

http://www.saint-mike.org/csgsar/bbs/register.txt

Thanks
Go to Top of Page

JJenson
Advanced Member

USA
2121 Posts

Posted - 01 May 2007 :  10:26:53  Show Profile  Visit JJenson's Homepage
I think you put your Sex Requirement in the wrong place it should be put into this line.


 if strSex = "1" then
            strSql = strsql & ", '" & ChkString(Request.Form("Sex"),"SQLString") & "'"


You have that part this part that needs to me in the above line on line 500 currently at first glance


 If strSex = "1" and trim(Request.Form("sex") = "Female") Then	
		Err_Msg = Err_Msg & "<li>We are sorry, but this BBS is for men only! For a woman's BBS <a href='../bbs2/default.asp'>click here</a></li>"
	end If


Give that a try I am at work and looking over really quick before starting if nto I will take a closer look tonight. That line is the only line out of place from the original and I think it is breaking the birthday code.

Good Luck
Go to Top of Page

BroIgnatius
New Member

56 Posts

Posted - 02 May 2007 :  03:26:30  Show Profile
When I place the line testing for "female" on the line 688ff, either between the strsql and the ELSE, or after the endif

if strSex = "1" then
 strSql = strsql & ", '" & 
      ChkString(Request.For("Sex"),"SQLString") & "'"
else
 strSql = strSql & ", ''"
end if


...either way the error on the birthdate (when set to require) still occurs and the test on "female" is ignored.

I took out the test on "female" completely and the error on the Birthdate still happened. It does not like the Birthday to be required.

The test on female works where I had it on line 500 but not on the other line 688ff spot.


Edited by - BroIgnatius on 02 May 2007 03:30:57
Go to Top of Page

JJenson
Advanced Member

USA
2121 Posts

Posted - 02 May 2007 :  09:48:10  Show Profile  Visit JJenson's Homepage
What database are you using? Also to make sure you ran the mod setup script correct? Do all the other fields work correctly when you turn them on?
Go to Top of Page

BroIgnatius
New Member

56 Posts

Posted - 02 May 2007 :  12:20:18  Show Profile
Hi turn everything on and set required for all fields.

When I tried to register membership I noticed this in the Picture section of the profile (the brackets represent the input field:

I reinstalled the original inc,profile.asp from the MOD download but this problem was still there.

* Picture URL:[ <tr> <td align=] *
Picture URL: [http:// ]

<tr> <td align= was in the input field followed by a * outside of the input field, and then the Picture URL: [http:// ] on the next line.

I tried looking at the PICTURE URL code but this area has multiple nested if/then statements and my eyes were crossing.

Also, on another matter, the the MOD sets the Hobbies, Lastest News, Quote, and Bio as input fields, instead of textarea fields. I successfully change that problem, but I cannot find the glitch with the PICTURE URL.

I presume this glitch on the PICTURE URL may be causing the problem with the Required function on the fields.


Go to Top of Page

BroIgnatius
New Member

56 Posts

Posted - 05 May 2007 :  11:57:39  Show Profile
I found the problem with the Picture field.

In inc.profile.asp, approx line 231 there was a missing closing carat and missin closing font tag and missing closing TD tag

The line was:
Response.Write " <tr>" & vbNewLine & _

and should read:
Response.Write """></font></td> <tr>" & vbNewLine & _

Correcting this glitch, however, has not solved the problem with the birthdate. It is still producing an error prompting to enter the birthdate even though the birthdate has been entered.
Go to Top of Page

BroIgnatius
New Member

56 Posts

Posted - 05 May 2007 :  12:23:52  Show Profile
quote:
[i]Correcting this glitch, however, has not solved the problem with the birthdate. It is still producing an error prompting to enter the birthdate even though the birthdate has been entered.


I give up. When the Birthdate field is Required, it ALWAYS errors out saying the birthdate has not been entered when, in fact, it has been entered. Turning off the Birtdate and turning the AGE Field and requiring it works.

The test on whether the gender is female works when it is placed on line 500, but not when placed elsewhere.

So, everything works as long as I use the AGE field intead of the DOB field.

The DOB field, when required is still a glitch however.

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