View Single Post
  #2  
Old 06-30-2017, 09:15 PM
Abronsyth's Avatar
Abronsyth Abronsyth is offline
A Headache Embodied
 
Join Date: Aug 2011
Location: NY
Posts: 1,011
Gender: Male
Credits: 113,450
Abronsyth is on a distinguished road
Default

That's curious, I compared it to mine/from my site and though they are being generated in the same format, mine is working.

So comparing my levelup.php to yours, I do see distinct differences in the siggy function. Majorly in that you have this chunk here...which does not exist at all in mine:
PHP Code:
elseif(function_exists('imagepng') and $usegd == "yes" and $imagemime == "image/png"){ 
            
$usingimage "yes"//Turn the template system off 
            
$type $this->adopt->getType(); 
            list(
$width$height$type$attr) = getimagesize($image); // The size of the original adoptable image 

            // Lets create the new target image, with a size big enough for the text for the adoptable 
            
$newheight $height 72
            
$newwidth = ($newwidth 250)?250:$width
            
$img_temp imagecreatetruecolor($newwidth$newheight);  
            
$alphablending true;   
          
            
// Lets create the image and save its transparency   
            
$img_old = @imagecreatefrompng($image);   
            
imagealphablending($img_oldtrue);   
            
imagesavealpha($img_oldtrue); 
    
            
// Lets copy the old image into the new image with   
            
ImageCopyResampled($img_temp$img_old0000$width$height$width$height);     
            
$textheight $width 2
            
$image $img_temp
            
$bgi imagecreatetruecolor($newwidth$newheight); 
            
$color imagecolorallocate($bgi515151); 
          
            
// Build text for siggy 
            
$str1 "Name: ".$this->adopt->getName(); 
            
$str2 "Owner: ".$this->adopt->getOwner(); 
            
$str3 "Click Here to Feed Me!"
            
$str4 "More Adopts at:"
            
$str5 "www.".constant("DOMAIN"); 

            
// Renger Image 
            
imagestring ($image120$textheight,  $str1$color); 
            
imagestring ($image120$textheight 13,  $str2$color); 
            
imagestring ($image120$textheight 26,  $str3$color); 
            
imagestring ($image120$textheight 42,  $str4$color); 
            
imagestring ($image120$textheight 55,  $str5$color); 
            
$background imagecolorallocate($image000);   
            
ImageColorTransparent($image$background);   
  
            
// At the very last, let's clean up temporary files 
            
header("Content-Type: image/PNG"); 
            
ImageGif ($image); 
            
imagedestroy($image); 
            
imagedestroy($img_temp); 
            
imagedestroy($img_old); 
            
imagedestroy($bgi); 

        } 
Aside from that everything else is the same...so maybe something to do with that?
__________________
My Mods Site (1.3.4, 2020 Mods)
Reply With Quote