Welcome, Guest. Please Login or Register.
May 25, 2025, 08:49:32 PM
Home Help Search Log in Register
News: SMF is the next generation in forum software, almost completely re-written from the ground up, make sure you don't fall for cheap imitations that suffer from feature bloat!

YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Gender Mod « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Gender Mod  (Read 581 times)
opus
Jr. Member
**
Posts: 59


I'm an opus!

ICQ - 16116986 WWW
Gender Mod
« on: May 03, 2002, 03:34:35 AM »
Reply with quote

I don't know if anyone else would have a use for this but I could use it   ;)   Add a third sex in the list something like "other"

Take a look at www.carriefairfield.com and I think you will understand why I would have a use for this.  I am the system admin for the site.
« Last Edit: May 04, 2002, 04:03:30 AM by opus » Logged

If I were two people I would still be busy.
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:Sex Mod
« Reply #1 on: May 03, 2002, 03:35:30 AM »
Reply with quote

Do I really want to follow that link?  ;)
Logged

opus
Jr. Member
**
Posts: 59


I'm an opus!

ICQ - 16116986 WWW
Re:Sex Mod
« Reply #2 on: May 03, 2002, 03:42:00 AM »
Reply with quote

Quote from: David on May 03, 2002, 03:35:30 AMDo I really want to follow that link?  ;)


It is harmless!  I promise!   ;D
Logged

If I were two people I would still be busy.
David
Destroyer Dave
Global Moderator
YaBB God
*****
Posts: 5761


I'm not a llama!

WWW
Re:Sex Mod
« Reply #3 on: May 03, 2002, 07:29:52 AM »
Reply with quote

You should be able to do it.  Take a look at Profile.php and you will find a few parts where the gender information is set when modifying the profile.  I guess you would have to add your "other" option into that file as well as Display.php so it will be viewed properally in the threads.
Logged

opus
Jr. Member
**
Posts: 59


I'm an opus!

ICQ - 16116986 WWW
Re:Sex Mod
« Reply #4 on: May 03, 2002, 06:18:21 PM »
Reply with quote

That did it I have an other field now and it saved without issue.  But now how do I get Other.gif to show up whan a person selects that as thier gender.  I have identifed the code in Load.php  I am just not sure what change to make.


Load.php:  (the part I don't know what to do with

   /* if showing the gender image, and if the gender is specified */
   if( $showgenderimage && $userprofile[$user]['gender'] != "") {
      $userprofile[$user]['gender'] = (stristr($userprofile[$user]['gender'],"Female") ? 'Female' : 'Male');
      $userprofile[$user]['gender'] = "$txt[231]: <img src=\"$imagesdir/".$userprofile[$user]['gender'].".gif\" border=0 alt=\"".$userprofile[$user]['gender']."\"><br>";
   }
   else
   {
      $userprofile[$user]['gender'] = '';
   }


Profile.php

$GenderMale,$GenderFemale,$GenderOther,$allowpics,$facesdir,$userpic_limits,$facesurl,$allow_hide_email,$boarddir,$userpic_width,$userpic_height;
-------------------------------------------------

   if (isset($memsettings['gender'])) {
      if ($memsettings['gender'] == 'Male')
         $GenderMale = ' selected';
      else if ($memsettings['gender'] == 'Female')
         $GenderFemale = ' selected';
      else if ($memsettings['gender'] == 'Other')
         $GenderOther = ' selected';

--------------------------------------------------

   <select name="gender" size="1">
    <option value=""></option>
    <option value="Male"$GenderMale>$txt[238]</option>
    <option value="Female"$GenderFemale>$txt[239]</option>
    <option value="Other"$GenderOther>$txt[sex1]</option>
   </select>




I have defined $txt[sex1]  to be other in english.lng file.

Thanks for any help you can provide
Logged

If I were two people I would still be busy.
Deszaras
Noobie
*
Posts: 34


I'm a llama!

Re:Sex Mod
« Reply #5 on: May 03, 2002, 09:03:58 PM »
Reply with quote

I've been wanting this same mod. I want to make the third one the "Prince" symbol.
Logged
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Mod Ideas and Creation  |  Gender Mod « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.767 seconds with 21 queries.