Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 05-11-2011, 12:35 AM
Beaux Beaux is offline
Member
 
Join Date: Apr 2011
Posts: 13
Gender: Female
Credits: 1,854
Beaux is on a distinguished road
Default I hate asking more questions, but...

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.
Reply With Quote
  #2  
Old 05-11-2011, 02:27 AM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 33,368
fadillzzz is an unknown quantity at this point
Default

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
PHP Code:
$query "UPDATE {$prefix}owned_adoptables SET owner='SYSTEM' WHERE aid='{$id}'"
change it to
PHP Code:
$query "DELETE FROM {$prefix}owned_adoptables WHERE aid='{$id}'"
Reply With Quote
  #3  
Old 05-11-2011, 04:36 AM
Beaux Beaux is offline
Member
 
Join Date: Apr 2011
Posts: 13
Gender: Female
Credits: 1,854
Beaux is on a distinguished road
Default

Thanks! :D
Reply With Quote
  #4  
Old 05-11-2011, 08:27 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 393,022
Hall of Famer is on a distinguished road
Default

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.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #5  
Old 05-12-2011, 03:38 PM
Beaux Beaux is offline
Member
 
Join Date: Apr 2011
Posts: 13
Gender: Female
Credits: 1,854
Beaux is on a distinguished road
Default

Quote:
Originally Posted by Hall of Famer View Post
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?
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
More Questions ^^'' Brookreed Questions and Supports 4 08-08-2013 05:06 PM
Just some Questions i have. rickasawr Questions and Supports 3 04-30-2011 11:04 PM
Some Questions? :) blondbananamix Questions and Supports 10 04-25-2011 01:47 PM
two questions RoconzaArt Questions and Supports 10 02-24-2011 09:15 AM
Some questions PokePets Questions and Supports 7 07-15-2010 03:04 PM


All times are GMT -5. The time now is 03:04 AM.

Currently Active Users: 683 (0 members and 683 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