#1
|
||||
|
||||
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~ |
#2
|
||||
|
||||
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. |
#3
|
||||
|
||||
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:
__________________
The calzones... betrayed me?
|
#4
|
||||
|
||||
@HoF and @pachoofoosh : Pachoofoosh's way worked! Thank you! ^_^
(Sorry for the late reply, I have had exams recently >.<) ~Parayna |
#5
|
||||
|
||||
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 ^_^ |
#6
|
||||
|
||||
Bumping :)
|
#7
|
||||
|
||||
Ah i've got that too. :'o
Hmm maybe this will work?: PHP Code:
__________________
The calzones... betrayed me?
|
#8
|
||||
|
||||
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:
|
#9
|
||||
|
||||
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?)
__________________
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; 12-07-2014 at 02:43 PM. |
#10
|
||||
|
||||
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!! ^_^ Last edited by parayna; 12-07-2014 at 02:49 PM. |
|
|
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 |
What's New? |
What's Hot? |
What's Popular? |