Log in

View Full Version : Adoptable Questions


Abronsyth
10-22-2011, 10:03 AM
Hey guys, I'm wondering what the best way to make more than one adopt pages is?

Also, since I plan on adding a simple Explore feature to my site, what is the direct link to adopting a pet, instead of selecting the pet, naming, and buying, how would I make it so a user clicks a spot and immediately adopts the pet?

Last thing, is there a way to let users choose the gender of their pet? So, say when they select the species they want, then they down to name it, it also has;
Choose Pet Gender:
O Male
O Female

Well, any help is much appreciated!
Iris

SilverDragonTears
10-22-2011, 03:41 PM
What do you mean by "more than one adopt page"?
The direct url is "<a href='doadopt.php?id=".$aid."'>"
There probably is a way to do that, it would just take some extra coding.

Abronsyth
10-22-2011, 03:51 PM
I mean, instead of just adopt.php allowing users to adopt pets, make it so say, there are more 'pet shops' to purchase different pets in. It wouldn't be too hard to actually make the page, but I think that what would be hard is setting which pet to be adoptable from what store.

And thanks for the url! I didn't know it ;)

SilverDragonTears
10-22-2011, 03:55 PM
Actually it would be easy... like on my site I have the adopts page and then a shop. You just need to put in something like WHERE type = 'whatever type you want on that page'


You could make a new field in the adoptables table and call it adoptclass and then use that in the WHERE adoptclass = 'class'