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
 Adding more Gender type
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

hawkdrean
New Member

73 Posts

Posted - 29 March 2005 :  05:20:53  Show Profile  Visit hawkdrean's Homepage
I'm not such if this is the right place to post this. But how would I go about adding more Gender type?

Ghostnetworks
New Member

95 Posts

Posted - 29 March 2005 :  07:26:17  Show Profile  Visit Ghostnetworks's Homepage
Male female and something else?
For Humans, and most other species on Earth, 2 is usually enough.

It's too much trouble to fiddle with the code just to add a type, so you can just leave a little note by the gender selection "If none of these genders fits you, select which gender you're feeling like today. You can always change it later in your profile" ;)

Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 29 March 2005 :  07:27:07  Show Profile
More genders? Have a look in inc_profile.asp, the dropdown is written by the following, beginning on line 361:
if strSex = "1" then
	Response.Write	"                    <tr>" & vbNewLine & _
			"                      <td bgColor=""" & strPopUpTableColor & """ align=""right"" valign=""middle"" nowrap><b><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>Gender: </font></b></td>" & vbNewLine & _
			"                      <td bgColor=""" & strPopUpTableColor & """><font face=""" & strDefaultFontFace & """ size=""" & strDefaultFontSize & """>" & vbNewLine & _
			"                      <select name=""Sex"" size=""1"">" & vbNewLine & _
			"                           <option value="""""
	if strMode <> "Register" then
		if rs("M_SEX") = "" then Response.Write(" selected")
	else
		Response.Write(" selected")
	end if
	Response.Write	">Not specified </option>" & vbNewLine & _
			"                           <option value=""Male"""
	if strMode <> "Register" then
		if rs("M_SEX") = "Male" then Response.Write(" selected")
	end if
	Response.Write	">Male </option>" & vbNewLine & _
			"                           <option value=""Female"""
	if strMode <> "Register" then
		if rs("M_SEX") = "Female" then Response.Write(" selected")
	end if
	Response.Write	">Female </option>" & vbNewLine & _
			"                      </select></font></td>" & vbNewLine & _
			"                    </tr>" & vbNewLine
end if

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

hawkdrean
New Member

73 Posts

Posted - 29 March 2005 :  14:54:38  Show Profile  Visit hawkdrean's Homepage
In my inc_profile.asp look like this

if strSex = "1" then
Response.Write " <tr>" & vbNewLine & _
" <td class=incprofile align=""right"" valign=""middle"" nowrap><font size=""" & strDefaultFontSize & """><font color=""red"">*</font> " & fLang(strLangInc_Profile00430) & " </font></td>" & vbNewLine & _
" <td class=incprofile><font size=""" & strDefaultFontSize & """>" & vbNewLine & _
" <select name=""Sex"" size=""1"">" & vbNewLine & _
" <option value="""""
if strMode <> "Register" then
if rs("M_SEX") = "" then Response.Write(" selected")
else
Response.Write(" selected")
end if
Response.Write ">" & fLang(strLangInc_Profile00440) & " </option>" & vbNewLine & _
" <option value=""Male"""
if strMode <> "Register" then
if rs("M_SEX") = "Male" then Response.Write(" selected")
end if
Response.Write ">" & fLang(strLangInc_Profile00450) & " </option>" & vbNewLine & _
" <option value=""Female"""
if strMode <> "Register" then
if rs("M_SEX") = "Female" then Response.Write(" selected")
end if
Response.Write ">" & fLang(strLangInc_Profile00460) & " </option>" & vbNewLine & _
" </select></font></td>" & vbNewLine & _
" </tr>" & vbNewLine
end if


What line would I need to change?
Go to Top of Page

Ghostnetworks
New Member

95 Posts

Posted - 29 March 2005 :  20:41:10  Show Profile  Visit Ghostnetworks's Homepage
I don't see fLang() in my inc_profile.asp.
What version are you using?

Do you have a language mod installed?

Go to Top of Page

hawkdrean
New Member

73 Posts

Posted - 30 March 2005 :  00:39:56  Show Profile  Visit hawkdrean's Homepage
I'm using Image Forums 2001
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 30 March 2005 :  05:34:05  Show Profile  Visit HuwR's Homepage
Then please ask for help there not here
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.41 seconds. Powered By: Snitz Forums 2000 Version 3.4.07