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
 Gender MOD Icon Problem
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

richfed
Average Member

United States
999 Posts

Posted - 05 September 2004 :  15:16:57  Show Profile  Visit richfed's Homepage
Regarding this:

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


From this thread: http://forum.snitz.com/forum/topic.asp?ARCHIVE=true&TOPIC_ID=47908

I get it to work fine if I display text rather than gender icons as that thread initially instructs. Making the changes above, I get the female icon regardless.

I have checked & rechecked my icon names. Look good to me. Anybody know the problem?

Rich
[size=1]A Complete Idiot's Guide to MOD Implementation || On the Trail of the Last of the Mohicans[/size=1]

richfed
Average Member

United States
999 Posts

Posted - 23 September 2004 :  19:42:29  Show Profile  Visit richfed's Homepage
Has anyone got this MOD to work with the icons? Any suggestions ... ?

Thanks!
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 23 September 2004 :  19:48:30  Show Profile
I think this line is your problem :


if trim(Reply_MemberSex) <> "male" then


Means the field must match that EXACT case (lowercase m lowercase a etc....) for them to to classed as Male. Everything else is female
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 24 September 2004 :  05:53:46  Show Profile  Visit richfed's Homepage
So then, to ignore case, what do I do? Or will simply making it a capital "M" work?
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 24 September 2004 :  06:30:43  Show Profile
Yep, M should work if that's how you're storing it.

You could also make both sides of the condition the same case, but M is the shortcut.
Go to Top of Page

richfed
Average Member

United States
999 Posts

Posted - 25 September 2004 :  10:21:20  Show Profile  Visit richfed's Homepage
That did it! Thanks, Laser ...

Rich
[size=1]A Complete Idiot's Guide to MOD Implementation || On the Trail of the Last of the Mohicans[/size=1]
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 25 September 2004 :  23:36:30  Show Profile
No probs, better than have everyone a female .... not that there's anything wrong with being female but some members may take offence.
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.25 seconds. Powered By: Snitz Forums 2000 Version 3.4.07