Mysidia Adoptables Support Forum  

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

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #6  
Old 04-22-2015, 09:35 AM
kristhasirah's Avatar
kristhasirah kristhasirah is offline
Member
 
Join Date: Jan 2010
Location: In middle of the nothingness
Posts: 196
Gender: Female
Credits: 38,133
kristhasirah
Default

Found the problem for the missing null in the data base,
in class_stockadopt in the $mysidia->db->insert the imageurl had only "" instead of NULL

and for the always geting an alt image in the adoptshop, i had to replace
PHP Code:
protected function getaltstatus($level) {
      
// This method determines if we will use alternate images...
      
$altstatus "no";
      
$run "no";
       
      
// Let's see if the level we are on is the level that requires alternates
      
if($this->alternates == "enabled" and $level == $this->altoutlevel$run "yes";
      if(
$run == "yes") {
         
$randnum rand(1$row->altchance);
         if(
$randnum == 1$altstatus "yes"// If we pull a 1 as the random number, we use the alternate images :)
      
}
      return 
$altstatus;
  } 
for:
PHP Code:
protected function getaltstatus($level) {
      
// This method determines if we will use alternate images...
      
$altstatus "no";
      
$run "no";
       
      if(
$this->alternates == "enabled" and $this->altoutlevel == 0){
            
$rand mt_rand(1$this->altchance);
            if(
$rand == 1) return "yes";            
        }
      return 
"no";
  } 
which is only a copy paste of the code found in the class/class_adoptable.php

but is working and now i have random normal and alt adopts in the adoptsshop.

posting this in case someone else has the same problem as me

note: probably i had that problem because im using a lower number in the alt area (2)... but still i dont think is supposed to give me 20 alts of 20 adopted pets in the shop ._O
__________________
Reply With Quote
 


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
Shops voni Questions and Supports 3 04-22-2015 02:01 PM
Help !! Shops not appearing é.è kitty08 Feedback and Suggestions 3 12-31-2014 11:15 AM
Help with shops. Nieth Questions and Supports 5 11-26-2013 05:15 AM
Forum Shops? AlexC Feedback and Suggestions 6 05-09-2012 03:28 PM
Again Shops RoconzaArt Questions and Supports 10 01-17-2011 04:32 PM


All times are GMT -5. The time now is 10:33 PM.

Currently Active Users: 2744 (0 members and 2744 guests)
Threads: 4,081, Posts: 32,032, 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 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636