View Full Version : I hate asking more questions, but...
Beaux
05-11-2011, 12:35 AM
1.) How would I go about changing the gender from being random to them being able to choose it? I'd like a drop-down option if possible.
2.) How can I get rid of the 'Breeding' link? I've searched every template and basic layout script I could think of but can't find it.
3.) How would I change the alternate image from being random to them being able to choose it?
4.) How can I change the impounding option back to simple deletion? I'll be looking for how to do this as I await an answer.
This is for my Pokemon trading site, which isn't quite an adoptable site- people will be able to put Pokemon they may have up for trade in their owned games with a price and whatnot listed, so they'll need to be able to choose color and gender.
fadillzzz
05-11-2011, 02:27 AM
1.) Requires modification
2.) Delete the row from the database. It's in the prefix_links table
3.) Definitely needs a mod, not sure how hard it is
4.) Open your myadopts.php
find
$query = "UPDATE {$prefix}owned_adoptables SET owner='SYSTEM' WHERE aid='{$id}'";
change it to
$query = "DELETE FROM {$prefix}owned_adoptables WHERE aid='{$id}'";
Beaux
05-11-2011, 04:36 AM
Thanks! :D
Hall of Famer
05-11-2011, 08:27 PM
Well actually you can delete the breeding navlink from admin control panel. Also to answer your first question, this can be done easily be modifying adopt.php and doadopt.php slightly. There is a line that generates random gender in doadopt.php, delete it and add a dropdown gender selection script to adopt.php. This can be done with PHP forms, use $_Post in doadopt.php at the beginning of script to get the selected gender from adopt.php. This way you make gender selectable rather than random.
Beaux
05-12-2011, 03:38 PM
Well actually you can delete the breeding navlink from admin control panel. Also to answer your first question, this can be done easily be modifying adopt.php and doadopt.php slightly. There is a line that generates random gender in doadopt.php, delete it and add a dropdown gender selection script to adopt.php. This can be done with PHP forms, use $_Post in doadopt.php at the beginning of script to get the selected gender from adopt.php. This way you make gender selectable rather than random.
Thank you! I've done all of that except now I can't figure out exactly where to place the $_POST or how it should be worded.
I've used $gender = $_POST["gender"]; and the same thing with GET instead of post, in a few different sections, including right underneath
$id = $_GET["id"];
$promocode = $_GET["promocode"];
$name = $_GET["name"];
I've also changed the form action to 'post' instead of 'get', but nothing is working.
Where should I put it?
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.