Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Addons and Modifications > Mys v1.1.x Mods

Notices

Reply
 
Thread Tools Display Modes
  #31  
Old 11-29-2009, 03:18 PM
SieghartZeke SieghartZeke is offline
Member
 
Join Date: Oct 2009
Posts: 149
Credits: 10,366
SieghartZeke
Default 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......
Reply With Quote
  #32  
Old 11-30-2009, 12:11 AM
Arianna's Avatar
Arianna Arianna is offline
Dev Staff
 
Join Date: Sep 2009
Posts: 334
Gender: Female
Credits: 21,779
Arianna will become famous soon enough
Default 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.
Reply With Quote
  #33  
Old 11-30-2009, 10:07 AM
SieghartZeke SieghartZeke is offline
Member
 
Join Date: Oct 2009
Posts: 149
Credits: 10,366
SieghartZeke
Default RE: Giving pets a Gender

Uhm...i try......
Reply With Quote
  #34  
Old 12-16-2009, 04:51 PM
torakitty torakitty is offline
Member
 
Join Date: Feb 2009
Posts: 2
Credits: 317
torakitty
Default 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?
Reply With Quote
  #35  
Old 12-16-2009, 11:47 PM
Arianna's Avatar
Arianna Arianna is offline
Dev Staff
 
Join Date: Sep 2009
Posts: 334
Gender: Female
Credits: 21,779
Arianna will become famous soon enough
Default 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?
Reply With Quote
  #36  
Old 12-17-2009, 09:50 PM
torakitty torakitty is offline
Member
 
Join Date: Feb 2009
Posts: 2
Credits: 317
torakitty
Default RE: Giving pets a Gender

I got it. Thanks for the help, Arianna. :D
Reply With Quote
  #37  
Old 12-19-2009, 01:18 AM
Arianna's Avatar
Arianna Arianna is offline
Dev Staff
 
Join Date: Sep 2009
Posts: 334
Gender: Female
Credits: 21,779
Arianna will become famous soon enough
Default RE: Giving pets a Gender

Yay! ;)
Reply With Quote
  #38  
Old 12-19-2009, 11:03 AM
SieghartZeke SieghartZeke is offline
Member
 
Join Date: Oct 2009
Posts: 149
Credits: 10,366
SieghartZeke
Default 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!
Reply With Quote
  #39  
Old 12-20-2009, 08:44 AM
Arianna's Avatar
Arianna Arianna is offline
Dev Staff
 
Join Date: Sep 2009
Posts: 334
Gender: Female
Credits: 21,779
Arianna will become famous soon enough
Default 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?
Reply With Quote
  #40  
Old 12-24-2009, 04:31 PM
SieghartZeke SieghartZeke is offline
Member
 
Join Date: Oct 2009
Posts: 149
Credits: 10,366
SieghartZeke
Default 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?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mys v1.3.4 Know Gender of New Pets Before Naming Kyttias Mys v1.3.x Mods 4 08-04-2018 01:13 AM
Mys v1.3.x Giftbox Mod (Randomly appearing, currency giving~) Kyttias Mys v1.3.x Mods 14 06-23-2017 07:08 AM
Show Gender while Naming Pet & Name Promo Code Pets Kyttias Questions and Supports 5 07-11-2014 02:12 PM
Gender superdude44 Questions and Supports 5 07-11-2013 01:17 AM
Gender? [answered] Arianna Questions and Supports 4 11-19-2009 06:33 AM


All times are GMT -5. The time now is 06:17 PM.

Currently Active Users: 834 (0 members and 834 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636