Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: I can't set my avatar  (Read 866 times)

Magmacube_tr

  • Bay Watcher
  • Praise KeK! For He is The Key and The Gate!
    • View Profile
I can't set my avatar
« on: December 26, 2020, 05:04:57 am »

Why is my avatar always comes out broken? All of yours clearly do not. I insert the correct form of the link to the correct place, but it never properly shows. How did you do it?
Logged
I must submerge myself in MAGMAAAAAAAAA! daily for 17 cents, which I detest. With a new profile picture!

My gaem. JOIN NAOW!!!

My sigtext. Read if you dare!

Arx

  • Bay Watcher
  • Iron within, iron without.
    • View Profile
    • Art!
Re: I can't set my avatar
« Reply #1 on: December 26, 2020, 05:09:18 am »

Unfortunately B12 is a bit out of date at the moment and doesn't play nicely with HTTPS. In your avatar link, replace
Code: [Select]
https:// with
Code: [Select]
http:// and you'll be good to go.
Logged

I am on Discord as Arx#2415.
Hail to the mind of man! / Fire in the sky
I've been waiting for you / On this day we die.

Ziusudra

  • Bay Watcher
    • View Profile
Re: I can't set my avatar
« Reply #2 on: December 26, 2020, 01:22:21 pm »

Actually, there's two problems.

It's currently trying to use the address "http://https://avatars.alphacoders.com/avatars/view/195962". One problem is having both "http://" and "https://" - it should only have one of those. The other problem is that you need to use the address "https://avatarfiles.alphacoders.com/195/195962.jpg" so it links to the image and not the page for the image.

The https doesn't seem to matter, I can embed the image here using the https:
Spoiler (click to show/hide)
Logged
Ironblood didn't use an axe because he needed it. He used it to be kind. And right now he wasn't being kind.

Starver

  • Bay Watcher
    • View Profile
Re: I can't set my avatar
« Reply #3 on: December 26, 2020, 03:57:43 pm »

(I haven't yet tried to set my own avatar, so not emperically tested to the max, but...)

It is possible that the forum is taking the (valid) "https://..." and, because the 2016-vintage PHP (I presume) at the backend doesn't truly understand that it is prepending "http://" onto the otherwise proper URI. The profile field is prefilled as that (so it could also be Magmacube not deleting that when they pasted in). The (presumably) php might just be silly like that. If you save the utterly correct setting and revisit it and it's wrong, then you just can't https it, as it is.

The [img]-tag as submitted by the user goes through a subtly different system between poster and reader.  That's a regexp (or something very similar) that takes a presumed-correct URI and shoves it into a true HTML <img src="..." /> format (or similar) to serve to all the readers' browsers and works for any "Content-Type: image/jpeg" (or equivalent) returned data purely based on the browser but the forum backend has no server-side checks to make sure that it's not a container-page.  The avatar-accepting code[1] will likely be just as happy to let the user make this error. (The alternative is that the server does a pre-emptive web-spidering, which seems like a recipe for maliciously getting forums to suffer/take part in DDOS efforts with very little user effort.)


[1] Maybe an experiment needs to be done to see if a browser that accepts an <img src="whatever.svg" /> (without an onerror= fallback setting) can be used to display an avatar set to be a suitable whatever.svg, but a number of browsers will not. For this reason, I suspect there may be a basic sanity-check for either a restricted subset of extensions (with or without appended GET options) such as ".jpg, .jpeg, .gif", or apparently extensionless references (might cover an ".../image.jpg?width-400" example), but it'd depend a lot on the thoughts of the original backend-scripter on this matter. (Including if they give it as an option for the site maintainer to reconfigure.) And various implied standards have changed over the last handful of years in this area of markup usage and browser parsing/rendering, such that I'm not even sure I'm up to speed myself.
Logged

Ziusudra

  • Bay Watcher
    • View Profile
Re: I can't set my avatar
« Reply #4 on: December 26, 2020, 04:42:43 pm »

Well, I did try setting my own.

Without deleting the initial "http://" I get the same result as the OP.

After deleting the initial "http://" - it won't accept the https address - it switches the setting back to "No avatar".

Using the jpg address with only "http://" works.

(How do you manage to always use so many words?)
Logged
Ironblood didn't use an axe because he needed it. He used it to be kind. And right now he wasn't being kind.

Starver

  • Bay Watcher
    • View Profile
Re: I can't set my avatar
« Reply #5 on: December 26, 2020, 04:58:17 pm »

(Write much much more. Then edit it down to less than half the size.  :P )
Logged

Magmacube_tr

  • Bay Watcher
  • Praise KeK! For He is The Key and The Gate!
    • View Profile
Re: I can't set my avatar
« Reply #6 on: December 26, 2020, 05:05:41 pm »

I tried every combination. Welp, Toady fix your forum!
Logged
I must submerge myself in MAGMAAAAAAAAA! daily for 17 cents, which I detest. With a new profile picture!

My gaem. JOIN NAOW!!!

My sigtext. Read if you dare!

Ziusudra

  • Bay Watcher
    • View Profile
Re: I can't set my avatar
« Reply #7 on: December 26, 2020, 05:17:46 pm »

Well, I guess it's mine now.

(When I see it tomorrow I'm probably gonna be very confused.)
Logged
Ironblood didn't use an axe because he needed it. He used it to be kind. And right now he wasn't being kind.

Magmacube_tr

  • Bay Watcher
  • Praise KeK! For He is The Key and The Gate!
    • View Profile
Re: I can't set my avatar
« Reply #8 on: December 26, 2020, 06:27:11 pm »

Well, I guess it's mine now.

(When I see it tomorrow I'm probably gonna be very confused.)

How did you do that exactly? I simply can't do it.
Logged
I must submerge myself in MAGMAAAAAAAAA! daily for 17 cents, which I detest. With a new profile picture!

My gaem. JOIN NAOW!!!

My sigtext. Read if you dare!

Ziusudra

  • Bay Watcher
    • View Profile
Re: I can't set my avatar
« Reply #9 on: December 26, 2020, 06:35:36 pm »

I select the "Specify avatar by URL" option, then in the "Specify your own avatar by URL." box I leave the "http://" and add "avatarfiles.alphacoders.com/195/195962.jpg", and then hit enter.
Logged
Ironblood didn't use an axe because he needed it. He used it to be kind. And right now he wasn't being kind.

Ziusudra

  • Bay Watcher
    • View Profile
Re: I can't set my avatar
« Reply #10 on: December 26, 2020, 06:45:11 pm »

Like this:
Logged
Ironblood didn't use an axe because he needed it. He used it to be kind. And right now he wasn't being kind.

Magmacube_tr

  • Bay Watcher
  • Praise KeK! For He is The Key and The Gate!
    • View Profile
Re: I can't set my avatar
« Reply #11 on: December 26, 2020, 07:10:36 pm »

Finally, I am magma again! Thanks for the help.
Logged
I must submerge myself in MAGMAAAAAAAAA! daily for 17 cents, which I detest. With a new profile picture!

My gaem. JOIN NAOW!!!

My sigtext. Read if you dare!