|
|
Rank: Member
Joined: 1/18/2008 Posts: 12
|
I'm having a problem where users can select an avatar without a problem but when looking at a users profile or post the avatar shows as the broken image link red X.
I am using 1.9.1.6 (NET v2.0)
I saw a few posts about this but the solution was to edit my web.config. But when I opened up the web.config it was already configured as recommended:
<pages enableEventValidation="false" validateRequest="false" smartNavigation="false"/>
Looking at the source code it seems to have the correct path, but still not showing:
<img id="forum__ctl0_AvatarEditControl_AvatarImg" src="/forums/resource.ashx?url=https%3a%2f%2fcommunity.vazing.com%2fforums%2fimages%2favatars%2fnew%2fdinosaur-dino8.gif&width=50&height=80" border="0" />
Any ideas?
|
|
|
Rank: Member
Joined: 1/18/2008 Posts: 12
|
|
|
|
 Rank: YAF Head Dude

Joined: 10/10/2004 Posts: 2,950 Location: Honolulu, HI
|
Might be because of your use of the HTTPS (secure) url. Not entirely sure. "When you are grateful, fear disappears and abundance appears”." 
|
|
|
Rank: Member
Joined: 1/18/2008 Posts: 12
|
The site is using a secure URL but this doesn't explain the fact they can choose their Avatar with out a problem. They all show correctly on the page. But when users post you get the red X image.
|
|
|
 Rank: YAF Head Dude

Joined: 10/10/2004 Posts: 2,950 Location: Honolulu, HI
|
It's a bug related to resource.ashx and HTTPS (secure) urls. "When you are grateful, fear disappears and abundance appears”." 
|
|
|
Rank: Member

Joined: 6/5/2008 Posts: 21 Location: Warsaw, PL
|
|
|
|
 Rank: YAF Head Dude

Joined: 10/10/2004 Posts: 2,950 Location: Honolulu, HI
|
Actually, looking at it that's a remote avatar. Verify that your forum would have access to that url. You may just want to disable "Remote" avatars since they are troublesome. "When you are grateful, fear disappears and abundance appears”." 
|
|
|
Rank: Member
Joined: 1/18/2008 Posts: 12
|
I do have remote avatars shut off. Why is it using that url? src="/forums/resource.ashx?url=https%3a%2f%2fcommunity.vazing.com%2fforums%2fimages%2favatars%2fnew%2falien-3dwireframe.gif&width=50&height=80" It is a local file that is chooser by the user. Here s the url it's using on the choose an avatar page: src="/forums/images/avatars/new/alien-3dwireframe.gif" I did change this in avatar.axcs.cs, but I don't think this is the cause of the issue. Quote:private string CurrentDir { get { if ( ViewState ["CurrentDir"] != null ) return ( string ) ViewState ["CurrentDir"]; else return "new"; } I didn't want to have my users deal with directories.
|
|
|
 Rank: YAF Head Dude

Joined: 10/10/2004 Posts: 2,950 Location: Honolulu, HI
|
I see... nevermind about the "remote" thing. Remember that the server is accessing that URL from itself. So for some reason, that domain/url is not working properly from the server. Not sure what you can do here... "When you are grateful, fear disappears and abundance appears”." 
|
|
|
Rank: Member
Joined: 1/18/2008 Posts: 12
|
I think you are right when I punch in the URL from my computer it works but from the server I get a page can't be displayed. Maybe it has something to do with an IIS setting or DNS. Looks like I have a fun weekend off playing around with both to try and get this to work.
|
|
|
| Users browsing this topic |
|
Guest
|
YAFPro Theme Created by Jaben Cargman (Tiny Gecko)Powered by YAF 1.9.3 RC2 |
YAF © 2003-2008, Yet Another Forum.NETThis page was generated in 0.082 seconds.