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
  #21  
Old 04-27-2009, 05:38 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 10,833
BMR777 is on a distinguished road
Default RE: Only 2?

Basically you would make a new database table for the alternate images that contains the adoptable type, level and level image location, plus give each alternate level a defining name, such as alternate1, alternate2 etc.

Then you need to modify the getcurrentimage() function in functions.php to read from the new table if the adoptable is using alternate images. So, in functions.php for getcurrentimage() replace the part after "If alternate images are enabled and an alternate image exists, use it" with...

PHP Code:
    if($usealternates == "yes" and $alternateimage != ""){

        
// Using an alternate image, read from the alternate images table you 
                // made based on adoptable type and type of alternate image.

        
}
        else{

        
// Set the image equal to the primary image for the level
                
$image $primaryimage


        } 
Then you would have to alter doadopt.php and levelup.php where they determine alternate images and change it so it picks a specific alternate image set, which you could store in the usealternates field for a given adoptable in owned_adoptables.

It's not something that can be done in 5 minutes, but it is doable.
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


All times are GMT -5. The time now is 04:19 AM.

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