Mysidia Adoptables Support Forum  

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

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 10-25-2014, 10:39 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 682,429
Hall of Famer is on a distinguished road
Default

Umm does this happen to every user on your site, or only a few of them? I can tell that adopt spotlight may be broken if you hard delete an adoptable that is assigned on adopt spotlight, since in this case the adoptable ID will no longer exist.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #2  
Old 11-02-2014, 05:58 PM
pachoofoosh's Avatar
pachoofoosh pachoofoosh is offline
Artist
 
Join Date: Dec 2012
Location: New York
Posts: 98
Gender: Unknown/Other
Credits: 22,576
pachoofoosh is on a distinguished road
Default

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;      
  } 
__________________
The calzones... betrayed me?
Reply With Quote
Reply


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
Spotlight Adopt in Sidebar Abronsyth Questions and Supports 2 11-18-2015 01:23 PM
Broken Theme Zoroark Questions and Supports 1 10-15-2012 09:55 PM
Pet Spotlight / BBCodes - Problem Kimba Questions and Supports 7 11-27-2011 11:20 AM
Problem with the Pet Spotlight and the forum codes Isura Questions and Supports 0 09-30-2011 12:43 PM
Broken Login konzair Questions and Supports 8 01-26-2011 09:43 AM


All times are GMT -5. The time now is 02:36 PM.

Currently Active Users: 1020 (0 members and 1020 guests)
Threads: 4,081, Posts: 32,043, 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