Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Addons and Modifications > Mys v1.3.x Mods

Notices

Reply
 
Thread Tools Display Modes
  #11  
Old 04-16-2015, 11:49 AM
Missy Master's Avatar
Missy Master Missy Master is offline
Pet-Sim.Online
 
Join Date: Jan 2010
Posts: 475
Gender: Unknown/Other
Credits: 44,523
Missy Master is an unknown quantity at this point
Default

Oh I see :)

I saw on Caterpiller Cave you were offering backgrounds but I didn't realize that wasn't a finished Mod. The site really does look amazing by the way!!

And yes most of the pets on my sites do have unique images in imageurl. I think I might just give up on this background idea, it;s starting to get really upsetting because I am frustrated and now I'm getting others frustrated with me because I don't understand the coding. :(

Thanks for your help, I appreciate it.
Reply With Quote
  #12  
Old 04-17-2015, 10:30 AM
Hwona's Avatar
Hwona Hwona is offline
Member
 
Join Date: Mar 2013
Posts: 620
Gender: Female
Credits: 48,167
Hwona is on a distinguished road
Default Re

No, it's fine. Actually, for my site I'm planning on a different use for backgrounds, so I don't need the background images in siggies, but I can see what I can do...
__________________
Reply With Quote
  #13  
Old 04-17-2015, 10:39 AM
Missy Master's Avatar
Missy Master Missy Master is offline
Pet-Sim.Online
 
Join Date: Jan 2010
Posts: 475
Gender: Unknown/Other
Credits: 44,523
Missy Master is an unknown quantity at this point
Default

Yeah for me I wont be using it for siggies either, just want for the profiles really.

We've got something thanks to Kyttias that works for 1.3.4 now!! :)

I will try to get it into a Mod form over the weekend if Kyt is okay with that, its basically not my coding at all so I don't want to just take it and do that ..
Reply With Quote
  #14  
Old 12-02-2016, 09:28 PM
Corsair's Avatar
Corsair Corsair is offline
Member
 
Join Date: Jan 2012
Posts: 128
Gender: Female
Credits: 11,231
Corsair is on a distinguished road
Default

Does anyone happen know how to get this to work?

I keep getting a
Quote:
The item function is invalid
message

PHP Code:
function items_recipe($item$adopt){
  
$note "The item {$item->itemname} is a recipe item, which cannot be used on any adoptable and can only be useful if you are performing alchemy.";
  return 
$note;
}

function 
items_gender($item$adopt){
  
$mysidia Registry::get("mysidia");
  
$delitem $item->remove();
  
$gender $adopt->gender;
      switch(
$gender){
                case 
"m":                   
                  
$newgender "f";
                  
$newgender_full "girl";
                    break;
                default: 
                  
$newgender "m";
                  
$newgender_full "boy";
            } 
 
  
$mysidia->db->update("owned_adoptables", array("gender" => $newgender), "aid ='{$adopt->aid}' and owner='{$item->owner}'");
  
$note "Success! The <b>{$item->itemname}</b> has worked its magic. {$adopt->name} is now a {$newgender_full}.";
  return 
$note;
            }  

  function 
items_background($item$adopt){
  
$mysidia Registry::get("mysidia");
  
// Update the lastbred info.
  
$background $item->backgroundimage;
  
$mysidia->db->update("owned_adoptables", array("background" => $background), "aid ='{$adopt->aid}' and owner='{$item->owner}'");    
  
$note "Your adoptable now has a new background!<br>";
  
//Update item quantity...
  
$delitem $item->remove();   
  return 
$note;

Reply With Quote
  #15  
Old 12-03-2016, 02:22 AM
Hwona's Avatar
Hwona Hwona is offline
Member
 
Join Date: Mar 2013
Posts: 620
Gender: Female
Credits: 48,167
Hwona is on a distinguished road
Default

Did you update class-privateitem.php?

You need to a case and break for the background item function.
__________________
Reply With Quote
  #16  
Old 12-03-2016, 10:20 AM
Corsair's Avatar
Corsair Corsair is offline
Member
 
Join Date: Jan 2012
Posts: 128
Gender: Female
Credits: 11,231
Corsair is on a distinguished road
Default

I got it working but now I'm getting a database error

Database error 1054 - Unknown column 'background' in 'field list'




Last edited by Corsair; 12-03-2016 at 10:30 AM.
Reply With Quote
  #17  
Old 12-03-2016, 02:53 PM
lotus's Avatar
lotus lotus is offline
Member
 
Join Date: Oct 2016
Posts: 7
Gender: Female
Credits: 1,043
lotus is on a distinguished road
Default

Did you add a background column to the owned_adoptables db? Try setting it to "Blank" as default for pets who don't have one.

edit: You have a background1 column in the items db instead of the owned_adoptables.

Last edited by lotus; 12-03-2016 at 03:00 PM.
Reply With Quote
  #18  
Old 12-03-2016, 04:00 PM
Corsair's Avatar
Corsair Corsair is offline
Member
 
Join Date: Jan 2012
Posts: 128
Gender: Female
Credits: 11,231
Corsair is on a distinguished road
Default

Edit: I got it to work.

Last edited by Corsair; 12-03-2016 at 09:55 PM.
Reply With Quote
  #19  
Old 01-17-2017, 02:54 AM
Silver_Brick Silver_Brick is offline
Designer || Coder
 
Join Date: Oct 2016
Location: In Earth
Posts: 205
Gender: Male
Credits: 26,134
Silver_Brick is on a distinguished road
Default

perfect mod

Last edited by Silver_Brick; 01-19-2017 at 04:26 AM.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
The disappearing background O.o SilverDragonTears Questions and Supports 7 03-31-2012 10:22 PM
Theme background help PokePets Questions and Supports 2 11-04-2011 02:29 PM
how to change background of siggy? vexel Questions and Supports 7 09-29-2010 10:54 AM
Transparent Background Problem [Answered] gjac1 Questions and Supports 4 12-10-2009 04:35 AM


All times are GMT -5. The time now is 04:01 PM.

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