Mysidia Adoptables Support Forum  

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

Reply
 
Thread Tools Display Modes
  #1  
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,477
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
  #2  
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,378
Gender: Male
Credits: 115,344
Hall of Famer is on a distinguished road
Default

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:

Code:
            $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:

Code:
            $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
Reply

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 02:34 PM.

Currently Active Users: 163 (1 members and 162 guests)
Threads: 3,894, Posts: 31,000, Members: 15,448
Welcome to our newest members, laurenannedaniel.
BER





What's New?

What's Hot?

What's Popular?


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