View Single Post
  #33  
Old 03-21-2016, 12:16 AM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 127,164
Kyttias is on a distinguished road
Default

Change line 85 to this:
PHP Code:
        if ($profile->getFavpetID() == "0"){ 
And change line 96 to this:
PHP Code:
$this->FavPetSB->add(new Comment("<a href='/myadopts/manage/{$profile->getFavpetID()}'><img src='{$favpet->getImage()}'></a>")); 
Using {$profile->getFavpetID()} instead of {$favpet} should help!! Sorry about this. Those two things should fix the errors, but--


Also! Two other things. I'd also change line 95 to:
PHP Code:
            $this->FavPetSB->add(new Comment("{$message}")); 
Because we're actually adding the div elsewhere now, oops.

And at 271, we should close the message like this now:
PHP Code:
            if ($message == "") { $message ""; } else { $message .= "</div>"; }
                
        
/**** END: CREATE RANDOM MESSAGES ****/ 
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.

Last edited by Kyttias; 03-21-2016 at 12:20 AM.
Reply With Quote