Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Avatars disappeared!
Avatar
Stefano Prete
Melbourne, Australia
Member
Free Members
sp_UserOfflineSmall Offline
May 16, 2016 - 7:31 am

Hi guys,

I have NO IDEA about what happened, but all the avatars (personal pictures) of myself and all my members had have suddenly disappeared!

The default images are shown.

I don't now how to fix it!

Avatar
Stefano Prete
Melbourne, Australia
Member
Free Members
sp_UserOfflineSmall Offline
May 16, 2016 - 7:58 am

Sorry boys...

I don't know what happened, but LOADED AVATAR (or something...) was at the bottom.

Moved it to the top, the avatars are back.

Sorry...

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 16, 2016 - 8:05 am

Weird... keep an eye out for those mischievous gremlins 🙂

andy-signature.png
YELLOW
SWORDFISH
Avatar
Stefano Prete
Melbourne, Australia
Member
Free Members
sp_UserOfflineSmall Offline
May 16, 2016 - 8:06 am

Actually, it still doesn't work...

I saved the page and the LOADED AVATARS disappeared, so did the pictures!

In admin-->forum-->profiles-->avatars I can only see "SP Default Avatar" and "Gravatars"...

Avatar
Stefano Prete
Melbourne, Australia
Member
Free Members
sp_UserOfflineSmall Offline
May 16, 2016 - 8:09 am

OK!

If I switch off the possibility to load avatars, the LOADED AVATARS disappears.

It comes back only if I allow to load avatars, which I don't want...

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 16, 2016 - 8:45 am

It disappears because if you remove the ability to upload avatars it is no longer a viable option. This actually corrects an anomaly that has been in the system for quite a while. Other options will also disappear from the list if they become redundant.

You - I recall - wanted the ability to upload avatars for your users but not let them do it. I think what you should be doing is having the option to upload them (in the profiles > Avatar panel) turned ON. And the permission for users to upload avatars turned off (in whatever permission sets you are using). If that doesn't work for you then I will treat it as a bug that needs fixing.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Stefano Prete
Melbourne, Australia
Member
Free Members
sp_UserOfflineSmall Offline
May 16, 2016 - 8:51 am

You recall perfectly, Andy!

I set it up as you suggested, but now I cannot upload the avatars myself which is what I need...

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 16, 2016 - 4:14 pm

OK - I can work up a fix for that. If you need it would you be happy making a small code change?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Stefano Prete
Melbourne, Australia
Member
Free Members
sp_UserOfflineSmall Offline
May 16, 2016 - 5:30 pm

Absolutely! surprised

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 16, 2016 - 5:35 pm

OK - the file is /simple-press/forum/profile/forms/sp-form-avatar.php

Try and locate this line of code:

case 2: # avatar uploading

It is at line number 130 - about half way through the file.

We need to replace the line of code beneath that (i.e., line 131). Use the following:

if (($spAvatars['sfavataruploads'] && sp_get_auth('upload_avatars', '', $userid)) || $spProfileUser->admin) {

Use the Raw Code button to copy the code so you can paste it into the file. That should fix it....

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626