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 - 5:43 pm

Still the same, Andy...

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

Oh stupid me, Sorry. the line of code SHOUL:D be:

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

AND in addition right at the TOP, after the line that reads:

if (empty($userid)) return;

You need to also add a new line:

global $spThisUser;

Sorry about that. Trying to juggle too many things at the same time,

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

It seems nothing changed...

I need to ask my members whether they can upload avatars or not.

I will keep you updated.

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

Oh dear. I am not doing very well am I. OK - I tested this version out and it definitely works!

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

Needed an extra pair of brackets

andy-signature.png
YELLOW
SWORDFISH
Avatar
Stefano Prete
Melbourne, Australia
Member
Free Members
sp_UserOfflineSmall Offline
May 17, 2016 - 4:54 am

OK, I changed the code, now let's see if they can upload avatars...

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 17, 2016 - 5:23 am

They? See if WHO can upload them?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Stefano Prete
Melbourne, Australia
Member
Free Members
sp_UserOfflineSmall Offline
May 17, 2016 - 7:48 am

The members. They shouldn't be able to. Am I right?

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

Yep, they told me they cannot upload anything.

On my side (admin), everything works perfectly!

Thank you Andy!

Just a small last question: what's going to happen when I upgrade SP?

Should I save that file and use that one?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
May 17, 2016 - 9:59 am

nothing to do... when we release next version, yours will be overwritten but we will have same change in ours so will continue as is..

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