Adopt Spotlight Broken?
Hey, the adopt spotlight on my site seems to be broken? The names appear in the list when you are choosing from your profile but for some reason the image appears broken (with that broken image icon). Does anyone know why? ^_^
Thanks~ |
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.
|
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:
PHP Code:
|
@HoF and @pachoofoosh : Pachoofoosh's way worked! Thank you! ^_^
(Sorry for the late reply, I have had exams recently >.<) ~Parayna |
Hi, I am not sure if it is to do with this piece of code but for some reason when I go onto someone's profile and they DON'T have a favourite pet selected it says, 'Adoptable ID 0 does not exist or does not belong to the owner specified... '
For once I actually know what it means (I think... XD) as when I go to the admin CP on my host site, under the fav pet in the users_profile thing it has a 0 for the default. And for some reason it thinks it is a valid ID. Does anyone know how to fix this? Thanks ^_^ |
Bumping :)
|
Ah i've got that too. :'o
Hmm maybe this will work?: PHP Code:
|
Hmm, I tried that but now all that's coming up is a white page.. but only for people who have no favourite pet selected.. D:
|
When checking for a value to be equal, isn't it two == and not just one =? That might be a start. So the last bit elseif($this->favpet = 0), try it with two ==. (Does it need to be an else if? Why not just else?)
|
I'll try that! Thanks! ^_^
EDIT: I got rid of the 'if' and it made all users have a white page.. maybe that's why it is needed? I dunno XD EDIT2: Yay! I fixed it! It was fixed when I did this: PHP Code:
Thank you!! ^_^ |
All times are GMT -5. The time now is 04:05 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.