Author |
Topic  |
|
BroIgnatius
New Member

56 Posts |
Posted - 30 April 2007 : 16:24:29
|
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
|
Do you have a link so I can take a look? |
 |
|
BroIgnatius
New Member

56 Posts |
|
JJenson
Advanced Member
    
USA
2121 Posts |
Posted - 01 May 2007 : 10:26:53
|
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  |
 |
|
BroIgnatius
New Member

56 Posts |
Posted - 02 May 2007 : 03:26:30
|
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 |
 |
|
JJenson
Advanced Member
    
USA
2121 Posts |
Posted - 02 May 2007 : 09:48:10
|
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? |
 |
|
BroIgnatius
New Member

56 Posts |
Posted - 02 May 2007 : 12:20:18
|
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.
|
 |
|
BroIgnatius
New Member

56 Posts |
Posted - 05 May 2007 : 11:57:39
|
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.
|
 |
|
BroIgnatius
New Member

56 Posts |
Posted - 05 May 2007 : 12:23:52
|
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.
|
 |
|
|
Topic  |
|