Support Call: 414
Subject Forum avatar display on rs.org user profiles
Status Closed
Assigned To Unassigned
Logged By ADM David "Heavy" Pasiechnyk
Logged On Nov 05, 2010
Call Text Something I noticed just recently is that from changing over the forum code, user avatars are stored and displyed slightly differently, causing the avatar view in the rs.org profiles to be broken. I've fixed this partially, using the same .php call that the forums use to display the avatar, but it isn't a direct call to the image like before. It works, but I'm sure it adds a small bit of load time to the profile page.
Action History
Nov 05, 2010 oh, it might have something to do with a random .htaccess file in the forums. I can't remember where it was, but there was one that prevented the images from loading. I'll see if I was smart and left the info in the old change log. (VA Joshua Hawkins)
Nov 06, 2010 No no, it's just a change in the name of the stored image with comparison to the value of 'user_avatar' in the forums db no longer coinciding like they used to. And since I don't have access to those tables, I didn't spend much time making a decent fix. I suppose I could have just set it up to obtain the file extension and then add it to the new file naming format, but it'd be nice to know if it actually stores the actual filename in the table somewhere, as opposed to this odd php coding thing... or whatever it is. It just looks like a lot more code to display an image than it should be to me, :P (VA David "Heavy" Pasiechnyk)
Nov 06, 2010 I've had a look through this and can't find where they store the avatars - forums/images/avatars is not it anymore. There's still data in the "user_avatar" column, but using grep I couldn't find where those files were stored using those filenames.

On the other hand my avatar doesn't work on the forums right now - the only ones I can find working are the "link" kind, not the uploaded kind. Wonder where mine went. (ADM Licah Fox)
Nov 06, 2010 'forums/images/avatars/upload' is the new folder apparently. I double checked earlier today by uploading diff images as my avatar. (VA David "Heavy" Pasiechnyk)
Nov 06, 2010 mines a link, and it works fine. weird. Goto the user control panel on the forums, and then check your avatar, see if it's there, if it is, resave the settings and then look on your RS profile, it should be there. Unless the code I had used to read the forum tables is borked as well. The phpbb update mucked a lot up. :( (VA Joshua Hawkins)
Nov 06, 2010 From the looks of it, when the phpbb update was made all of the uploaded avatars got deleted or something, plus with the new file naming for uploaded pictures things wouldn't have co-incided anyway. The reason for linked images working is because all that was saved in the tables was the external link, so there's no major issues if code changes for that. (VA David "Heavy" Pasiechnyk)
Dec 23, 2010 Only issue here was for uploaded images to the forums, but since that has been disabled due to security, this call doesn't need to be worried about anymore. (VA David "Heavy" Pasiechnyk)