Open topic.asp and go to line 108:
strMemberTablePrefix & "MEMBERS.M_TITLE, " & _
Add this right below that line:
strMemberTablePrefix & "MEMBERS.M_SEX, " & _
Go to line 213:
strMemberTablePrefix & "MEMBERS.M_TITLE, " & _
Add this right below that line:
strMemberTablePrefix & "MEMBERS.M_SEX, " & _
Go to lines 378 to 383:
<a href="pop_profile.asp?mode=display&id=<% =rsReplies("R_AUTHOR") %>">
<% else %>
<a href="JavaScript:openWindow3('pop_profile.asp?mode=display&id=<% =rsReplies("R_AUTHOR") %>')">
<% end if %>
<font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><b><% =ChkString(rsReplies("M_NAME"),"display") %></a>
</b></font>
Add this block of code right below that:
<% if rsReplies("M_SEX") <> " " then
if rsReplies("M_SEX") <> "Female" then
Response.Write "<img src=""icon_male.gif"" height=""something"" width=""something"" border=""0"" alt=""Male""><br>"
else
Response.Write "<img src=""icon_female.gif"" height=""something"" width=""something"" border=""0"" alt=""Female""><br>"
end if
end if
Now go to lines 525 to 531:
<% if strUseExtendedProfile then %>
<a href="pop_profile.asp?mode=display&id=<% =rsTopic("MEMBER_ID") %>">
<% else %>
<a href="JavaScript:openWindow3('pop_profile.asp?mode=display&id=<% =rsTopic("MEMBER_ID") %>')">
<% end if %>
<font color="<% =strForumFontColor %>" face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><b><% =ChkString(rsTopic("M_NAME"),"display") %></a>
</b></font>
Place this code right below it:
<% if rsTopic("M_SEX") <> " " then
if rsTopic("M_SEX") <> "Female" then
Response.Write "<img src=""icon_male.gif"" height=""something"" width=""something"" border=""0"" alt=""Male""><br>"
else
Response.Write "<img src=""icon_female.gif"" height=""something"" width=""something"" border=""0"" alt=""Female""><br>"
end if
end if
That should be all there is to it. Just make sure you edit the image tags correctly so they'll point to the image and use the correct height and width.
Let me know if you need any help
Codes are okay now. Best way to get it working is to click the reply with quote icon for this post and copy the codes from the editor.
That way the spaces & tabs will stay put. Note! you will have to remove four instances of [red] and [/red].
<edit> Thanks OneWay for testing it and pointing me to the missing quotes </edit>
http://www.frutzle.com
Snitz Exchange | Do's and Dont's
Edited by - FrutZle on 28 March 2002 08:36:18