YAFLogo

khuya
  • khuya
  • 53% (Neutral)
  • YAF Forumling Topic Starter
8 years ago
Hi, I am having issue with getting avatar to display from URL. In my profile - Modify avatar, I set the url and click update, but the avatar doesn't display, if i copy the url and navigate to it, I can see the image, for example:

http://media.steampowered.com/steamcommunity/public/images/avatars/21/21c62133e1767f9edde591679d0e85160e076cf9.jpg 

Any idea on what needs to be done?

Sponsor

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
8 years ago
Originally Posted by: khuya 

Hi, I am having issue with getting avatar to display from URL. In my profile - Modify avatar, I set the url and click update, but the avatar doesn't display, if i copy the url and navigate to it, I can see the image, for example:

http://media.steampowered.com/steamcommunity/public/images/avatars/21/21c62133e1767f9edde591679d0e85160e076cf9.jpg 

Any idea on what needs to be done?

Which YAF version?

Does this happening with all urls or only with urls from steampowered.com? Some Websites prevend hotlinking of images to prevend server traffic.

khuya
  • khuya
  • 53% (Neutral)
  • YAF Forumling Topic Starter
8 years ago
I am using 2.1.2. The forum is in a folder forum in existing MVC project. I tried to link from other domains, but still not working.

This is the Url I am trying to link.

http://www.coxblue.com/wp-content/uploads/2014/02/imgur.jpg 

this is what's being show in Chrome:

/forum/resource.ashx?url=http%3a%2f%2fwww.coxblue.com%2fwp-content%2fuploads%2f2014%2f02%2fimgur.jpg&width=50&height=80

khuya
  • khuya
  • 53% (Neutral)
  • YAF Forumling Topic Starter
8 years ago
I might be missing something here but I can't seem to find forum/resource.ashx file in the yaf 2.1.2 package
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
8 years ago
Originally Posted by: khuya 

I might be missing something here but I can't seem to find forum/resource.ashx file in the yaf 2.1.2 package

That file is not a real file it is a http handler. You might need to check your web.config if the httphandler entries exist

<httpHandlers>
			<add verb="GET" path="Resource.ashx" type="YAF.YafResourceHandler, YAF" />
		</httpHandlers>
khuya
  • khuya
  • 53% (Neutral)
  • YAF Forumling Topic Starter
8 years ago
It is there in web.config in two places:

Any where else i can check?

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
8 years ago
Do you have url rewriting enabled in yaf? If yes then it could be an issue of the urlrewriter.config. Try to disable url rewriting in that case.
khuya
  • khuya
  • 53% (Neutral)
  • YAF Forumling Topic Starter
8 years ago
It is not enabled

Just notice this in the console debugger:

http://lalala.com/Error.aspx?aspxerrorpath=/forum/resource.ashx  500 (Internal Server Error)

Failed to load resource: the server responded with a status of 500 (Internal Server Error)