AvatarURL field on mp_Users table being overwritten when new user is created.

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
6/7/2012 6:42:52 AM
Gravatar
Total Posts 28
~Leslie

AvatarURL field on mp_Users table being overwritten when new user is created.

mojoPortal Version 2.3.8.1 MSSQL/Windows NT 6.1.7601 SP1

The avatar on the User Profile page (Web/ProfileView.aspx) is showing an empty image for records that haven't been updated with an avatar.  Looking into this issue, I saw that the AvatarURL field in the SQL table mp_Users has a default setting of ('blank.gif') however, it wasn't being populated.  The field was blank.  I began stepping through code and found that SiteUser.cs runs Create() and then the Update() when a new user is registered.  Create() adds the required registration data and the default value is entered in the avatarURL field, but when Update() executes, it overwrites the AvatarURL value from blank.gif to " ".  I need to correct this issue so an empty image doesn't show on the profile page without forking the code.  Can you help?

Thanks!

 

6/11/2012 7:48:04 AM
Gravatar
Total Posts 18439

Re: AvatarURL field on mp_Users table being overwritten when new user is created.

Hi,

I have fixed this for the next release so that if it is blank it will use a default blank image that can be specified in user.config to allow using a custom image:

<add key="DefaultBlankAvatarPath" value="~/Data/SiteImages/1x1.gif" />

shown above with the default value, but one can override it in user.config to point to a custom image.

Thanks,

Joe

6/11/2012 7:56:25 AM
Gravatar
Total Posts 28
~Leslie

Re: AvatarURL field on mp_Users table being overwritten when new user is created.

Thanks Joe!  We appreciate your help.

You must sign in to post in the forums. This thread is closed to new posts.