I broke the adoptspotlight on my site by deleting adoptables directly from the database (was resetting everything); after I reset the auto_increment values it got mean and decided not to work. QvQ
This fixed the problem for me and got the adoptSpotlight working, it might work on your site? ^^
in
class_userprofile.php, find the following function (should be around line 55):
PHP Code:
public function getFavpet(){
if(is_numeric($this->favpet)){
$this->favpet = ($this->favpet == 0)?new Comment("None Selected"):new Link("levelup/click/{$this->favpet}", new Image("levelup/siggy/{$this->favpet}"), TRUE);
}
return $this->favpet;
}
Replace it with this:
PHP Code:
public function getFavpet(){
if(is_numeric($this->favpet)){
$adopty = new OwnedAdoptable($this->favpet);
$favimg = $adopty->getImage();
$this->favpet = ($this->favpet == 0)?new Comment("None Selected"):new Link("levelup/click/{$this->favpet}", new Image($favimg), TRUE);
}
return $this->favpet;
}