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: General / Classic ASP versions(v3.4.XX)
 Requiring elements in Profile
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

BroIgnatius
New Member

56 Posts

Posted - 04 April 2007 :  19:53:13  Show Profile
Hi:

When a person registers I want to make the question of Gender and AgeDOB required, else an error message appears prompting the person to include that information.

In addition, I want to create an error message for the Gender if the answer is Female (the particular BBS is for men only).

I have tried various codes based upon the coding for error messages for name and email, but nothing is working.

How do I code this.

AnonJr
Moderator

United States
5768 Posts

Posted - 04 April 2007 :  21:38:59  Show Profile  Visit AnonJr's Homepage
To your first bit, I think someone wrote a MOD not too far back to allow you to select which fields are required... if memory serves, it was JJenson (or something close to that, its the end of the day and I'm enjoying a tasty beverage at the moment).

To your second question, what exactly did you try to add, and where? You will probably get more help the more specific you are... just please enclose your code in the [scrollcode] tag...
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 05 April 2007 :  04:08:02  Show Profile
quote:
Originally posted by BroIgnatius
the particular BBS is for men only
Be very, very careful doing this; unless you provide very good reasons for restricting access to your forum on a gender basis, you could find yourself in a legal quagmire.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 05 April 2007 :  08:42:09  Show Profile  Visit AnonJr's Homepage
This is the MOD I was thinking of earlier: Require Member Profile 1.0 - and it was by JJenson.

Good point Shaggy. Its probably also worth noting that its trivial to lie about any information you enter (DOB, Gender, anything) and in fact is often done to try and keep some degree of anonymity....
Go to Top of Page

pdrg
Support Moderator

United Kingdom
2897 Posts

Posted - 05 April 2007 :  08:51:41  Show Profile  Send pdrg a Yahoo! Message
quote:
Originally posted by Shaggy

quote:
Originally posted by BroIgnatius
the particular BBS is for men only
Be very, very careful doing this; unless you provide very good reasons for restricting access to your forum on a gender basis, you could find yourself in a legal quagmire.




[PC]
Although this will vary juristiction by juristiction I guess. In 'The West' it would certainly be poor form, but some countries and cultures may hold different views. [/PC]
Go to Top of Page

PPSSWeb
Junior Member

312 Posts

Posted - 05 April 2007 :  08:58:03  Show Profile
Requiring values is fairly simple. The changes will need to be made in Register.asp. Follow the example for error messages such as for homepage. The values you will want to catch are Request.Form("Sex") and Request.Form("AgeDOB") or Request.Form("Age").

You could use something like:
If strAge = "1" and trim(Request.Form("Age") = "" Then	
     Err_Msg = Err_Msg & "<li>You must enter your age!</li>"
End If

You will want to insert these around the other error messages like after the checks for Request.Form("Email") depending on importance to registration. Be sure to cover all cases for your errors and output the messages in the same manner.

Edited by - PPSSWeb on 05 April 2007 09:02:11
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 05 April 2007 :  09:08:37  Show Profile
If you're using v3.4.06, you can already mandate the age or date of birth; all you need to do is enter a minimum age in the members section of your administrative options. Also, note that the changes PPSS suggested will need to be made to profile.asp as well.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

PPSSWeb
Junior Member

312 Posts

Posted - 05 April 2007 :  10:03:11  Show Profile
quote:
Originally posted by Shaggy

the changes PPSS suggested will need to be made to profile.asp as well.





Good catch, thanks.
Go to Top of Page

BroIgnatius
New Member

56 Posts

Posted - 25 April 2007 :  12:00:04  Show Profile
quote:
Originally posted by Shaggy

[quote]Be very, very careful doing this; unless you provide very good reasons for restricting access to your forum on a gender basis, you could find yourself in a legal quagmire.


Just a note about legalities (at least in the United States):

Computer BBS, mail lists, chatrooms, websites, etc. are all private endeavors in which visitors are allowed access at the pleasure of the owners and whatever rules they wish to apply. If a visitor does not like the rules they do not have to join the BBS. There is no such thing as First Amendment rights on a BBS except as the owner decides to grant, nor is it any violation of law for a BBS owner to apply any restriction that he chooses. The laws concerning discrimination on the basis of race, gender, religion, etc. do not apply here. Thus, one can have a black-only BBS, a Chinese-only BBS, a white-only BBS, a male-only BBS, a female-only BBS, etc. if they choose.

Membership in a BBS is governed by Contract Law, as it were. We agree to a contract (eligibility for membership, rules of conduct, etc. that the owner asserts and the prospective member must agree to. That is what the registration policy statement is with the AGREE button -- a contract.

Bottomline: BBS owners can set any rules, eligibility requirements, or restrictions they wish.

Don't worry, be happy!

Edited by - BroIgnatius on 25 April 2007 12:09:33
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.27 seconds. Powered By: Snitz Forums 2000 Version 3.4.07