HITMAN 17 Posted March 20, 2009 Posted March 20, 2009 How Do i make this so it shows you gender as a icon if ($f = $u['donatordays']) { $t = sprintf("%u Donator Day%s Left", $f, $f == 1 ? "" : "s"); $i[] = sprintf(" ", $t, $t); } Quote
Karlos Posted March 20, 2009 Posted March 20, 2009 Re: Icons Help echo sprintf("Gender: %s ", ($ir['gender'] == 'Male') ? '' : ''); Quote
HITMAN 17 Posted March 20, 2009 Author Posted March 20, 2009 Re: Icons Help well im a male and its showing only female even if i change my gender Quote
Karlos Posted March 20, 2009 Posted March 20, 2009 Re: Icons Help I've tested it and it works fine. Quote
Lithium Posted March 20, 2009 Posted March 20, 2009 Re: Icons Help H1TM4N 15: check for case sensitive Male or male, Female or female Quote
HITMAN 17 Posted March 21, 2009 Author Posted March 21, 2009 Re: Icons Help its correct lithum but still does not work Quote
Magictallguy Posted March 21, 2009 Posted March 21, 2009 Re: Icons Help Don't you lot recognise the code he posted? It's part of Nyna's Icon mod - free too.. if ($f = u['gender']) { $t = sprintf("%s", $f == 'Male' ? 'Male; : 'Female'); $i[] = sprintf("[img=/%s.gif] ", $f, $t, $t); } Then simply create 2 images. Call them Male.gif and Female.gif - save of the work a lot there ;) Quote
shady9980 Posted March 21, 2009 Posted March 21, 2009 Re: Icons Help gave me error.. tried in different places on the header, even behind the nick.. still error.. Quote
shady9980 Posted March 21, 2009 Posted March 21, 2009 Re: Icons Help Don't you lot recognise the code he posted? It's part of Nyna's Icon mod - free too.. if ($f = u['gender']) { $t = sprintf("%s", $f == 'Male' ? 'Male; : 'Female'); $i[] = sprintf("[img=/%s.gif] ", $f, $t, $t); } Then simply create 2 images. Call them Male.gif and Female.gif - save of the work a lot there ;) gives same error.. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.