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/O Code)
 gender mod for version 3.4
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 2

pokemon
Junior Member

151 Posts

Posted - 25 September 2003 :  12:24:35  Show Profile
where can i download a gender mod? thanks

Edited by - pokemon on 26 September 2003 11:59:27

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 25 September 2003 :  13:04:19  Show Profile
There was a Gender Mod for v3.3.x written by MortiOli; you might try searching the Mod forums to see if it's been updated (I think it was). If not, I can send you the original Mod (should have it backed up somewhere) or post the code I'm currently using on my site.


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

weeweeslap
Senior Member

USA
1077 Posts

Posted - 25 September 2003 :  13:05:17  Show Profile  Visit weeweeslap's Homepage  Send weeweeslap an AOL message  Send weeweeslap a Yahoo! Message
http://www.crashhosting.nl:81/filelibrary.asp
Can download it there, says it's compatble with all versions.

coaster crazy
Go to Top of Page

pokemon
Junior Member

151 Posts

Posted - 25 September 2003 :  16:08:23  Show Profile
can you post the code here ...i'm trying to download but nothing happen. Thanks
Go to Top of Page

Faizan
Average Member

United Kingdom
592 Posts

Posted - 25 September 2003 :  17:57:32  Show Profile  Visit Faizan's Homepage  Send Faizan an AOL message  Send Faizan an ICQ Message  Send Faizan a Yahoo! Message
It works for me! Try this direct link: http://www.crashhosting.nl:81/getfile.asp?thisID=15



»Snitz Graphics
Go to Top of Page

pokemon
Junior Member

151 Posts

Posted - 26 September 2003 :  10:44:41  Show Profile
for some reason i got an error page can't display
Go to Top of Page

pokemon
Junior Member

151 Posts

Posted - 26 September 2003 :  10:47:38  Show Profile
well maybe my firewall blocked, thanks
Go to Top of Page

pokemon
Junior Member

151 Posts

Posted - 26 September 2003 :  11:41:32  Show Profile
well i download MortiOli gender mod, but it not work compatible with v3.4.03 Can someone help me with a gender mod for version 3.4.03. Thanks
Go to Top of Page

pokemon
Junior Member

151 Posts

Posted - 29 September 2003 :  16:18:22  Show Profile
can someone please help me with the gender mod for v3.4.03 Thanks
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 30 September 2003 :  10:00:34  Show Profile
I haven't tested but I think it will work
This just adds the word "male or female " no icons

In topic.asp

Step 1.

find this code (around line 96) add the parts in red (don't forget the comma!!!)

'## Forum_SQL - Get original topic and check for the Category, Forum or Topic Status and existence
strSql = "SELECT M.M_NAME, M.M_RECEIVE_EMAIL, M.M_AIM, M.M_ICQ, M.M_MSN, M.M_YAHOO" & _
	", M.M_TITLE, M.M_HOMEPAGE, M.MEMBER_ID, M.M_LEVEL, M.M_POSTS, M.M_COUNTRY, M.M_SEX" & _
	", T.T_DATE, T.T_SUBJECT, T.T_AUTHOR, T.TOPIC_ID, T.T_STATUS, T.T_LAST_EDIT" & _
	", T.T_LAST_EDITBY, T.T_LAST_POST, T.T_SIG, T.T_REPLIES" & _
	", C.CAT_STATUS, C.CAT_ID, C.CAT_NAME, C.CAT_SUBSCRIPTION, C.CAT_MODERATION" & _
	", F.F_STATUS, F.FORUM_ID, F.F_SUBSCRIPTION, F.F_SUBJECT, F.F_MODERATION, T.T_MESSAGE"
if CanShowSignature = 1 then
	strSql = strSql & ", M.M_SIG"
end if
strSql = strSql & " FROM " & strActivePrefix & "TOPICS T, " & strTablePrefix & "FORUM F, " & _ 
	strTablePrefix & "CATEGORY C, " & strMemberTablePrefix & "MEMBERS M " & _
	" WHERE T.TOPIC_ID = " & Topic_ID & _
	" AND F.FORUM_ID = T.FORUM_ID " & _
	" AND C.CAT_ID = T.CAT_ID " & _
	" AND M.MEMBER_ID = T.T_AUTHOR "

set rsTopic = Server.CreateObject("ADODB.Recordset")
rsTopic.open strSql, my_Conn, adOpenForwardOnly, adLockReadOnly, adCmdText

if rsTopic.EOF then
	recTopicCount = ""
else
	recTopicCount = 1
	Member_Name = rsTopic("M_NAME")
	Member_ReceiveMail = rsTopic("M_RECEIVE_EMAIL")
	Member_AIM = rsTopic("M_AIM")
	Member_ICQ = rsTopic("M_ICQ")
	Member_MSN = rsTopic("M_MSN")
	Member_YAHOO = rsTopic("M_YAHOO")
	Member_Title = rsTopic("M_TITLE")
	Member_Homepage = rsTopic("M_HOMEPAGE")
	TMember_ID = rsTopic("MEMBER_ID")
	Member_Level = rsTopic("M_LEVEL")
	Member_Posts = rsTopic("M_POSTS")
	Member_Country = rsTopic("M_COUNTRY")
   Member_Sex = rsTopic("M_Sex")
	Topic_Date = rsTopic("T_DATE")
	Topic_Subject = rsTopic("T_SUBJECT")
	Topic_Author = rsTopic("T_AUTHOR")
	TopicID = rsTopic("TOPIC_ID")
	Topic_Status = rsTopic("T_STATUS")
	Topic_LastEdit = rsTopic("T_LAST_EDIT")
	Topic_LastEditby = rsTopic("T_LAST_EDITBY")
	Topic_LastPost = rsTopic("T_LAST_POST")
	Topic_Sig = rsTopic("T_SIG")
	Topic_Replies = rsTopic("T_REPLIES")
	Cat_Status = rsTopic("CAT_STATUS")
	Cat_ID = rsTopic("CAT_ID")
	Cat_Name = rsTopic("CAT_NAME")
	Cat_Subscription = rsTopic("CAT_SUBSCRIPTION")
	Cat_Moderation = rsTopic("CAT_MODERATION")
	Forum_Status = rsTopic("F_STATUS")
	Forum_ID = rsTopic("FORUM_ID")
	Forum_Subject = rsTopic("F_SUBJECT")
	Forum_Subscription = rsTopic("F_SUBSCRIPTION")
	Forum_Moderation = rsTopic("F_MODERATION")
	Topic_Message = rsTopic("T_MESSAGE")
	if CanShowSignature = 1 then
		Topic_MemberSig = trim(rsTopic("M_SIG"))
	end if
end if

rsTopic.close
set rsTopic = nothing


Step 2.

Find this code (around line 309) add part in red (again don't forget the comma!)


'## Forum_SQL
	strSql = "SELECT M.M_NAME, M.M_RECEIVE_EMAIL, M.M_AIM, M.M_ICQ, M.M_MSN, M.M_YAHOO"
	strSql = strSql & ", M.M_TITLE, M.MEMBER_ID, M.M_HOMEPAGE, M.M_LEVEL, M.M_POSTS, M.M_COUNTRY, M.M_SEX"
	strSql = strSql & ", R.REPLY_ID, R.FORUM_ID, R.R_AUTHOR, R.TOPIC_ID, R.R_MESSAGE, R.R_LAST_EDIT"
	strSql = strSql & ", R.R_LAST_EDITBY, R.R_SIG, R.R_STATUS, R.R_DATE"
	if CanShowSignature = 1 then
		strSql = strSql & ", M.M_SIG"
	end if


Step 3.


Find this code (around line 511) add the parts in red (IMPORTANT! change all the numbers below rM_SEX so that they are in sequence!!!)


	if iReplyCount = "" then  '## No replies found in DB
		' Nothing
	else
		intI = 0 
	
		rM_NAME = 0
		rM_RECEIVE_EMAIL = 1
		rM_AIM = 2
		rM_ICQ = 3
		rM_MSN = 4
		rM_YAHOO = 5
		rM_TITLE = 6
		rMEMBER_ID = 7
		rM_HOMEPAGE = 8
		rM_LEVEL = 9
		rM_POSTS = 10
		rM_COUNTRY = 11
           rM_SEX = 12
		rREPLY_ID = 13
		rFORUM_ID = 14
		rR_AUTHOR = 15
		rTOPIC_ID = 16
		rR_MESSAGE = 17
		rR_LAST_EDIT = 18
		rR_LAST_EDITBY = 19
		rR_SIG = 20
		rR_STATUS = 21
		rR_DATE = 22
		if CanShowSignature = 1 then
			rM_SIG = 23
		end if
		
		for iForum = 0 to iReplyCount

			Reply_MemberName = arrReplyData(rM_NAME, iForum)
			Reply_MemberReceiveEmail = arrReplyData(rM_RECEIVE_EMAIL, iForum)
			Reply_MemberAIM = arrReplyData(rM_AIM, iForum)
			Reply_MemberICQ = arrReplyData(rM_ICQ, iForum)
			Reply_MemberMSN = arrReplyData(rM_MSN, iForum)
			Reply_MemberYAHOO = arrReplyData(rM_YAHOO, iForum)
			Reply_MemberTitle = arrReplyData(rM_TITLE, iForum)
			Reply_MemberID = arrReplyData(rMEMBER_ID, iForum)
			Reply_MemberHomepage = arrReplyData(rM_HOMEPAGE, iForum)
			Reply_MemberLevel = arrReplyData(rM_LEVEL, iForum)
			Reply_MemberPosts = arrReplyData(rM_POSTS, iForum)
			Reply_MemberCountry = arrReplyData(rM_COUNTRY, iForum)
                   Reply_memberSex = arrReplyData(rM_SEX, iForum)
			Reply_ReplyID = arrReplyData(rREPLY_ID, iForum)
			Reply_ForumID = arrReplyData(rFORUM_ID, iForum)
			Reply_Author = arrReplyData(rR_AUTHOR, iForum)
			Reply_TopicID = arrReplyData(rTOPIC_ID, iForum)
			Reply_Content = arrReplyData(rR_MESSAGE, iForum)
			Reply_LastEdit = arrReplyData(rR_LAST_EDIT, iForum)
			Reply_LastEditBy = arrReplyData(rR_LAST_EDITBY, iForum)
			Reply_Sig = arrReplyData(rR_SIG, iForum)
			Reply_Status = arrReplyData(rR_STATUS, iForum)
			Reply_Date = arrReplyData(rR_DATE, iForum)
			if CanShowSignature = 1 then
				Reply_MemberSig = trim(arrReplyData(rM_SIG, iForum))
			end if

			if intI = 0 then 
				CColor = strAltForumCellColor
			else
				CColor = strForumCellColor
			end if


Step 4.

Find this code (around line 592) add the part in red


if strCountry = "1" and trim(Reply_MemberCountry) <> "" then
				Response.Write	"                <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><small>" & Reply_MemberCountry & "</small></font><br />" & vbNewLine
			end if
if strSex = "1" and trim(Reply_MemberSex) <> "" then
				Response.Write	"                <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><small>" & Reply_MemberSex & "</small></font><br />" & vbNewLine
			end if
			Response.Write	"                <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><small>" & Reply_MemberPosts & " Posts</small></font></p></td>" & vbNewLine & _		
                                        "                <td bgcolor=""" & CColor & """ height=""100%"" width=""" & strTopicWidthRight & """"
			if lcase(strTopicNoWrapRight) = "1" then Response.Write(" nowrap")
			if (AdminAllowed = 1) and (maxpages > 1) then
				Response.Write	(" colspan=""3"" ")
			else
				Response.Write	(" colspan=""2"" ")
			end if

Step 5.


Find this code (around line 844) add the part in red


if strCountry = "1" and trim(Member_Country) <> "" then
		Response.Write	"                <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><small>" & Member_Country & "</small></font><br />" & vbNewLine
	end if
if strSex = "1" and trim(Member_Sex) <> "" then
		Response.Write	"                <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><small>" & Member_Sex & "</small></font><br />" & vbNewLine
	end if
	Response.Write	"                <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><small>" & Member_Posts & " Posts</small></font></p></td>" & vbNewLine & _
			"                <td bgcolor=""" & strForumFirstCellColor & """ width=""" & strTopicWidthRight & """"





    _-/Cripto9t\-_
Go to Top of Page

pokemon
Junior Member

151 Posts

Posted - 30 September 2003 :  16:53:24  Show Profile
how do i display an image for each sex?

can i change & Member_Sex & to "icon_male.gif"
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 01 October 2003 :  10:39:40  Show Profile
quote:
Originally posted by pokemon

how do i display an image for each sex?

can i change & Member_Sex & to "icon_male.gif"


in "inc_iconfiles.asp" add these two lines

Const strIconName = "IconName.gif|15|15"  '15|15 change these numbers to the height and width of your icons
Const strIconName = "IconName.gif|15|15"


in "topic.asp"


getCurrentIcon(strIconClosedTopic,"","align=""absmiddle""") &
change this 


if strSex = "1" and trim(Reply_MemberSex) <> "" then
				Response.Write	"                <font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """><small>" & Reply_MemberSex & "</small></font><br />" & vbNewLine
			end if

to this

if strSex = "1" and trim(Reply_MemberSex) <> "" then
        if trim(Reply_MemberSex) <> "male" then
				Response.Write	getCurrentIcon(strFemaleIconName,"","align=""absmiddle""") & "<br />" & vbNewLine
        else
                                Response.Write  getCurrentIcon(strMaleIconName,"","align=""absmiddle""") & "<br />" & vbNewLine
        end if
end if


    _-/Cripto9t\-_
Go to Top of Page

pokemon
Junior Member

151 Posts

Posted - 01 October 2003 :  17:40:05  Show Profile
it won't work at all. when i run the code and i always have a female icon display even i'm a male. Can you please check the code again, and tell me step by step to update in my topic.asp Thanks
Go to Top of Page

Faizan
Average Member

United Kingdom
592 Posts

Posted - 01 October 2003 :  18:42:27  Show Profile  Visit Faizan's Homepage  Send Faizan an AOL message  Send Faizan an ICQ Message  Send Faizan a Yahoo! Message
Well, you should check if your icons are named correctly or not.




»Snitz Graphics
Go to Top of Page

pokemon
Junior Member

151 Posts

Posted - 02 October 2003 :  09:06:26  Show Profile
Thanks it works now
Go to Top of Page

cripto9t
Average Member

USA
881 Posts

Posted - 02 October 2003 :  09:21:49  Show Profile
quote:
Originally posted by pokemon

Thanks it works now


cool

    _-/Cripto9t\-_
Go to Top of Page
Page: of 2 Previous Topic Topic Next Topic  
Next Page
 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.3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07