Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Mys v1.1.x Mods (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=20)
-   -   Giving pets a Gender (http://www.mysidiaadoptables.com/forum/showthread.php?t=1148)

SieghartZeke 11-29-2009 03:18 PM

RE: Giving pets a Gender
 
i run this in the sql,but dont work!
what i need to do?
change the code?
INSERT INTO adopts_owned_adoptables
VALUES gender
and sorry when you dont understand what im saying,but im italian and for me is so hard make english word......

Arianna 11-30-2009 12:11 AM

RE: Giving pets a Gender
 
Don't worry - is there any way that you can manually insert it, via phpmyadmin or the like? 'Cause if you just insert "gender" there's no way of having an int variable and stuff like that.

SieghartZeke 11-30-2009 10:07 AM

RE: Giving pets a Gender
 
Uhm...i try......

torakitty 12-16-2009 04:51 PM

RE: Giving pets a Gender
 
SieghartZeke, I don't know if your problem has been solved yet or not, but if not you can try running the following code in sql:

Code:

ALTER TABLE `adopts_owned_adoptables` ADD `gender` varchar(40) NULL;
That should add the gender field to the owned adoptables table.

I also had a question about the gender script. I'm using it on my test site and it works great. I have it so it randomly generates a pet's gender, but I'm wondering if there is a way to have some pets only be one gender, such as female, and not be male at all while still having other adoptables get random genders?

Arianna 12-16-2009 11:47 PM

RE: Giving pets a Gender
 
It's nice that you asked. I was having a problem, as some pets had 'gender' alts. Basically, it meant that it was the alt image, it was female, if not, it was male. Just add a field called 'malefemale', and then it checks. If it's value is 'onlyfemale', automatically set 'gender' to 'Female'. If it is 'onlymale', set 'gender' to 'Male'. If it is blank, set 'gender' using the random code. Do you get it?

torakitty 12-17-2009 09:50 PM

RE: Giving pets a Gender
 
I got it. Thanks for the help, Arianna. :D

Arianna 12-19-2009 01:18 AM

RE: Giving pets a Gender
 
Yay! ;)

SieghartZeke 12-19-2009 11:03 AM

RE: Giving pets a Gender
 
No...i have added in the table,but i don't show the pet when i go to adop(after i give a name) And i dont view his Id!

Arianna 12-20-2009 08:44 AM

RE: Giving pets a Gender
 
I... really don't get what you're saying. :( Could you give me a screenshot of the database in phpmyadmin and a screenshot of adopting, please?

SieghartZeke 12-24-2009 04:31 PM

RE: Giving pets a Gender
 
Quote:

Originally Posted by tommyk1210
instead of your random number to select gender code, try this:

PHP Code:

<form id="form1" name="form1" method="post" action="">
  <
p>
    <
label>
    
Male:</label>
    <
label>
      <
input type="radio" name="Genderselect" value="male" id="Genderselect_0" />
    </
label>
    <
br />
    <
label>
    
Female:</label>
    <
label>
      <
input type="radio" name="Genderselect" value="female" id="Genderselect_1" />
    </
label>
    <
br />
  </
p>
</
form>

$gender $_GET[genderselect]; 


When i have puted this code in my page,i have get a error!
Why?


All times are GMT -5. The time now is 05:03 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.