Mysidia Adoptables Support Forum  

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

Thread Tools Display Modes
Old 07-09-2017, 11:59 AM
LUC1G07CH1's Avatar
LUC1G07CH1 LUC1G07CH1 is offline
I'm a Unicorn
Join Date: Mar 2016
Location: Too distant for telling, but it's HUEBR
Posts: 102
Gender: Female
Credits: 2,675
LUC1G07CH1 is on a distinguished road
Default How you change the default trade status?

So when people adopt pets their trade status is always "for trade". And i think they doesn't want that.
I know that we can change on "manage". But how when you adopt a pet, the default status will be "not for trade"?

Luci has here!
Reply With Quote
Old 07-10-2017, 02:46 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is online now
Administrator, Lead Coder
Join Date: Dec 2008
Location: Somerville
Posts: 4,385
Gender: Male
Credits: 118,244
Hall of Famer is on a distinguished road

Assuming you are running a fresh Mysidia installation, open adopt.php file in your root directory and you should find this near line 34-35:

            $mysidia->db->insert("owned_adoptables", array("aid" => NULL, "type" => $adopt->getType(), "name" => $name, "owner" => $mysidia->user->username, "currentlevel" => 0, "totalclicks" => 0, "code" => $code, 
                                                           "imageurl" => NULL, "usealternates" => $alts, "tradestatus" => 'fortrade', "isfrozen" => 'no', "gender" => $gender, "offsprings" => 0, "lastbred" => 0));
Change it to:

            $mysidia->db->insert("owned_adoptables", array("aid" => NULL, "type" => $adopt->getType(), "name" => $name, "owner" => $mysidia->user->username, "currentlevel" => 0, "totalclicks" => 0, "code" => $code, 
                                                           "imageurl" => NULL, "usealternates" => $alts, "tradestatus" => 'notfortrade', "isfrozen" => 'no', "gender" => $gender, "offsprings" => 0, "lastbred" => 0));
This way the default status becomes not for trade.

Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote

Thread Tools
Display Modes

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

All times are GMT -5. The time now is 05:51 PM.

Currently Active Users: 199 (1 members and 198 guests)
Threads: 3,917, Posts: 31,169, Members: 15,467
Welcome to our newest members, Eyesauce.

What's New?

What's Hot?

What's Popular?

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