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/Code)
 MOD for requiring first and last name
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

kickstand
Starting Member

USA
2 Posts

Posted - 15 June 2005 :  15:05:38  Show Profile  Visit kickstand's Homepage
Here's a mod to require that the first and last name (surname) be included in the registration request. It only makes sure the names are not blank and add's the red "*" to the form. Two files must be changed:

Register.asp line 256 (after the line with the "end if" after a line that contains "<li>You may not use any of these"):

'####### Verify that a first and last name are included.
if trim(Request.Form("FirstName")) = "" then
Err_Msg = Err_Msg & "<li>You must include a First Name.</li>"
end if
if trim(Request.Form("LastName")) = "" then
Err_Msg = Err_Msg & "<li>You must include a Surname.</li>"
end if

inc_profile.asp line 299 and 305:
Add the text: <font color=""" & strHiLiteFontColor & """>*</font> 
Before "Firstname:" (on line 299), and "Surname:" (on line 305)

Thanks...
-kickstand (Fort Worth Bicycling Assoc. Webmaster)

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 16 June 2005 :  10:19:00  Show Profile
What about when they edit their profiles or you modify them?


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.”

Edited by - Shaggy on 16 June 2005 12:03:38
Go to Top of Page

dabugster
Junior Member

USA
168 Posts

Posted - 16 June 2005 :  12:02:45  Show Profile  Visit dabugster's Homepage  Send dabugster an AOL message  Send dabugster a Yahoo! Message
I have the same thing on my forum, except it is DOB, gender and country that are required.
on or about line 1198 of my pop_profile.asp page is where i added the changes.
Look for the lines:

if trim(Request.Form("Name")) = "" then 
			Err_Msg = Err_Msg & "<li>You must choose a UserName</li>"
		end if


and add the first name last name code that you added to register.asp page, after this code.
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.15 seconds. Powered By: Snitz Forums 2000 Version 3.4.07