Show Gender while Naming Pet & Name Promo Code Pets

Forum
Last Post
Threads / Messages

Kyttias

Super Moderator
Super Mod
Joined
Jan 26, 2014
Messages
849
Points
18
Mysidian Dollar
58,199
Two things:

- Is it possible to let users know what gender their pet is going to be before/as they are naming it when it is new?

- Is it possible to give users the option to name pets obtained from promo codes as they get them? (Currently they just get the name of the species as their name by default and users are never asked to name them.)

I know it is always possible for a user to visit the adoptable and rename/name their pets, but... for the sake of their convenience?

+ How would I go about showing the species description on an individual pet's page (their stats page)? (Or, basically, getting it to where it's attached to a variable accessible in 'adopt'. {$this->adopt->info} or something to that effect?)
 
Last edited:
Umm, I don't know with v.1.3.4, but with v.1.3.3, I think it's possible, for the naming, to put something like: this->adoptGender(); or something like that on the promocode page.
As for displaying the species description? Is that an existing function in the ownedadoptables class? If not, maybe try getting an adoptable's species and then going to the adoptables table in the database and select the description that matches the species.
 
By using $this->adopt->info you are pulling from the owned_adoptables table- It'd be best to put the info in the adoptables table and do a fetch on the row that the species(both are type) is at to pull the info to save resources and having to tag each adopt with the same info, unless you are varying it for every adoptable someone has(i.e. custom descriptions).
 
Hum, yeah. I'll have to do a database pull based on species name.

I'm definitely/mostly curious about getting the gender to display while a user is first naming their pet, though. It definitely helps in the naming process to know what gender an adoptable is going to be, afterall.

(Meanwhile, the alternate image use implies a 50-50 ratio could be created to make male and female adoptables with different pictures, yet, doesn't look like it's actively bothering to connect an image with a specific gender. There isn't even a way to make it so a species only can be a single gender.)
 
Its definitely possible, but you will need to edit the adopt.php file a little bit since the original script generates adoptable's gender after you name your pet. You can always rename your pet at anytime through myadopts.php though.
 
Darn, I was afraid to hear that, but thought it might be the case. Could you put changing that into consideration for a future version of Mysidia?
 

Similar threads

Users who are viewing this thread

  • Forum Contains New Posts
  • Forum Contains No New Posts

Forum statistics

Threads
4,280
Messages
33,132
Members
1,603
Latest member
Monako
BETA

Latest Threads

Top