Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Mys v1.3.x Mods (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=42)
-   -   Mys v1.3.3 Background Mod (http://www.mysidiaadoptables.com/forum/showthread.php?t=4816)

Missy Master 04-16-2015 11:49 AM

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.

Hwona 04-17-2015 10:30 AM

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

Missy Master 04-17-2015 10:39 AM

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

Corsair 12-02-2016 09:28 PM

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;



Hwona 12-03-2016 02:22 AM

Did you update class-privateitem.php?

You need to a case and break for the background item function.

Corsair 12-03-2016 10:20 AM

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

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

http://i137.photobucket.com/albums/q...1.png~original

http://i137.photobucket.com/albums/q...4.png~original

lotus 12-03-2016 02:53 PM

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.

Corsair 12-03-2016 04:00 PM

Edit: I got it to work.

Silver_Brick 01-17-2017 02:54 AM

perfect mod


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

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.