external Avatar not showing

Started by Védé, June 18, 2017, 11:22:22 PM

Previous topic - Next topic

Védé

Hello, I've seem to run into a problem with my message board. I've tried to find a solution but in the end I couldnt so I'm posting here. My forum doesnt display avatars coming from external links, at all. When you try to link an avatar to your profile using an external link, it just behave as usual, only it doesnt display it at all. I've tried to upload an avatar directly to the forum and it work just fine, but for some reason it just doesnt let me upload one with an external link. I thought it was the template at first, but even with the basic template, it doesnt work. It's not a problem of permission either as neither me nor the other administrators can do it.

I'll include in the post a link to my forum as well as a test account. I've created a test forum if you need to post.

http://asobu-asso.org/forum/index.php [nofollow]
login : testaccount
password : test

If you need any more information I'll be glad to provide you with everything you need.

Thank you !

Sir Osis of Liver

Look in Admin -> Attachments and Avatars -> Avatar Settings -> Membergroups allowed to select an external URL
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Sir Osis of Liver

Works for me on your test account.

Actually, it's working quite odd.  Seems to be uploading the linked avatar to /attachments, so it's not showing a link but an attachment.  It also reverts to 'Pas d'avatar' after the link is selected, it should remain at 'Spécifier un avatar par son URL'.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Kindred

Sir osis, that is how it works the admin leaves the avatars set to use the attachments directory instead of properly configuring it to use its own directory
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Sir Osis of Liver

On my test install, image properties shows the link.  On this forum it shows the link as -

https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.thekrashsite.com%2Fpics%2Fbud.gif&hash=1b11d44b623e8afc70fa18f74a430651

OP is unable to link avatars, it worked for me using his test account, but it's shown as an attachment, not a link.  No idea why it doesn't work for him.  He's running 2.0.11.


Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Gluz

There is a setting to download the image set by URL instead of using the URL directly as avatar, and as the image is downloaded to the forum as if were uploaded by the user, it's treated as an attachment if the admin doesn't setup a different directory for avatars, and that in combination with the security checks for uploaded images sometimes doesn't work properly.

Védé

Thanks everyone for replying.

Quote from: Sir Osis of Liver on June 18, 2017, 11:35:32 PM
Look in Admin -> Attachments and Avatars -> Avatar Settings -> Membergroups allowed to select an external URL .

It was one of the first things I tried, but It changed nothing. Plus being the administrator it keeps saying that I have all of the permissions.

Quote from: Sir Osis of Liver on June 18, 2017, 11:46:46 PM
Works for me on your test account.

Actually, it's working quite odd.  Seems to be uploading the linked avatar to /attachments, so it's not showing a link but an attachment.  It also reverts to 'Pas d'avatar' after the link is selected, it should remain at 'Spécifier un avatar par son URL'.

I have no Idea how you did it. Is there anyway from keeping it from reverting to "No avatar?"

Quote from: Gluz on June 19, 2017, 01:09:00 AM
There is a setting to download the image set by URL instead of using the URL directly as avatar, and as the image is downloaded to the forum as if were uploaded by the user, it's treated as an attachment if the admin doesn't setup a different directory for avatars, and that in combination with the security checks for uploaded images sometimes doesn't work properly.

Alright I realised that the directory for external avatars and avatars uploaded on the server was the same. Not attachements though (They end up in /attachements while the avatars end up in /avatars). I tried changing directory for external avatars but It still doesnt work.

What should I do?

Sir Osis of Liver

The avatar option reverts to no avatar, but the avatar remained on the test account.  Are you running any mods?
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

@rjen

There is something wrong with the current settings on your avatar directory: It is not even possible to get an avatar working from the server

Selecting it (from a list of broken images) results in this (incorrect) link in the profile:
http://asobu-asso.org/Musicians/Eminem.jpg

This leads me to believe that the avatar directory is not set correctly to start with.

Your avatars are in folder: http://asobu-asso.org/forum/avatars/

So first check your avatar folder setting and change it to: http://asobu-asso.org/forum/avatars/
Make sure to enter the correct directory as well, it may be something like: /home/domains/asobu-asso.org/public_html/forum/avatars

(use repair_settings.php if needed)

Once you have the default avatar setting working again, check if the external avatars work ...

Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

@rjen

Just realized something.

Have you been trying to link to https files???

You cannot use https avatars in SMF (yet).
Just tried it with your test account: linking to http files as external avatars works fine, https does not.

This is the same on my forum by the way!
Running SMF 2.1 with latest TinyPortal at www.fjr-club.nl

Védé

Quote from: Sir Osis of Liver on June 19, 2017, 10:46:06 PM
The avatar option reverts to no avatar, but the avatar remained on the test account.  Are you running any mods?

Only this mod https://custom.simplemachines.org/mods/index.php?mod=3983 currently. The board is completely vanilla

Quote from: @rjen on June 20, 2017, 04:59:26 AM
There is something wrong with the current settings on your avatar directory: It is not even possible to get an avatar working from the server

Selecting it (from a list of broken images) results in this (incorrect) link in the profile:
http://asobu-asso.org/Musicians/Eminem.jpg [nofollow]

This leads me to believe that the avatar directory is not set correctly to start with.

Your avatars are in folder: http://asobu-asso.org/forum/avatars/ [nofollow]

So first check your avatar folder setting and change it to: http://asobu-asso.org/forum/avatars/ [nofollow]
Make sure to enter the correct directory as well, it may be something like: /home/domains/asobu-asso.org/public_html/forum/avatars

(use repair_settings.php if needed)

Once you have the default avatar setting working again, check if the external avatars work ...

It's done thanks ! Though in the future I'm not going to allow my members to pick from a galery, only external URLs !

Quote from: @rjen on June 20, 2017, 05:38:01 AM
Just realized something.

Have you been trying to link to https files???

You cannot use https avatars in SMF (yet).
Just tried it with your test account: linking to http files as external avatars works fine, https does not.

This is the same on my forum by the way!

Ah !Turns out this was the problem all along, links in http are working just fine !Guess I'm going to make an addendum to explain to our members how that work. It's kind of annoying though, any word on why it's like that or when it will be fixed?

Kindred

works just fine for me, using https avatars....
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: