Announcement

Collapse
No announcement yet.

Users can't use default avatars

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Frank Davis
    replied
    Originally posted by Glenn Vergara View Post
    The temporary solution while this bug is open is to hide the "Use a default avatar" radio button option via CSS.
    What code would we put into the css to hide that? And does that go into css addition?

    Leave a comment:


  • Glenn Vergara
    commented on 's reply
    You would only see the list of default avatars in that dialog if you have them from older vB version before upgrading to vB5.

  • Glenn Vergara
    replied
    The temporary solution while this bug is open is to hide the "Use a default avatar" radio button option via CSS.

    Leave a comment:


  • Glenn Vergara
    replied
    I looked at it and it looks like a vB5 bug. In the
    widget_profile_sidebar template, I see this code for reusing the default avatars available from old vB versions.

    Code:
    <vb:if condition="$userInfo['defaultAvatarCount'] > 0">
        <div class="profile-img-option-container h-clearfix">
            <label><input type="radio" name="profile-img-option" value="3" class="default-option" />{vb:phrase user_default_avatar}</label>
            <div class="upload-progress-bar h-hide"><img src="images/loader-box-light.gif" width="128" height="15" alt="{vb:phrase loading}..."></div>
        </div>
        <div id="defaultAvatars"></div>
    </vb:if>
    The defaultAvatars div is dynamically populated via AJAX with the content of the template named defaultavatars to display a list of default avatars available. Here is the code in that template:

    Code:
    <div class="default-avatar-container h-clearfix">
        <vb:each from="avatars" value="avatar">
            <div class="avatarHolder h-left">
                <img src="{vb:raw baseurl_corecdn}/{vb:raw avatar.avatarpath}" data-avatarid="{vb:raw avatar.avatarid}" class="defaultAvatarSet" />
                <div class="avatar-title">{vb:raw avatar.title}</div>
            </div>
        </vb:each>
    </div>
    So it looks like vB5 is trying to display the default avatar set (if available) and apparently selecting one from the list doesn't work per the OP. If that is really the case, then it's a vB5 bug.

    For more details, see the discussion of the same on my site:

    https://vbmods.rocks/forum/questions...vatar-question

    Leave a comment:


  • Wayne Luke
    replied
    vBulletin 5 doesn't have this option by default so I am not sure how it is being added to the dialog that allows users to upload an Avatar. He should use one of the default styles provided by us for best functionality. vBulletin 4.X and 3.X styles are not compatible with vBulletin 5. vBulletin 4 add-ons are not compatible with vBulletin 5.

    This is what the default Edit Avatar dialog should look like:
    Click image for larger version

Name:	Screenshot_24.png
Views:	29
Size:	173.1 KB
ID:	4388398

    Leave a comment:


  • Ryan McBain
    replied
    He doesn't know how to fix the problem, and says it might be a bug. What would I have to change to get rid of the option for users to pick from my selection of default avatars since they can't actually click and use them?

    Leave a comment:


  • Wayne Luke
    replied
    Yes. Previous versions of vBulletin allowed administrators to create libraries of avatars to select from. This was done back in vBulletin 2 when uploading images were problematic and expensive in terms of bandwidth. The functionality was maintained in vBulletin 3 and vBulletin 4. Today, it is neither problematic or expensive to upload avatars from the user's device, including mobile phones. So the functionality was dropped from vBulletin 5 and no longer exists. There is an open issue to add similar functionality but it hasn't received a lot of customer feedback and isn't considered to be a high priority. Most customers prefer that their users upload their own custom avatars.

    I think there is an addon available at https://vbmods.rocks. That is probably going to be the long-term solution at this point.

    Leave a comment:


  • Ryan McBain
    replied
    Previous version of vBulletin have. Also I have no mods on my forum.

    Leave a comment:


  • Wayne Luke
    replied
    vBulletin 5 doesn't support "Default Avatars" and never has. Are you using an Addon to add this? If so, you need to contact the Author of the addon for support with this functionality.

    Leave a comment:


  • Ryan McBain
    started a topic Users can't use default avatars

    Users can't use default avatars

    When a user tries to edit their avatar it works correctly for uploading, but If they select the option "Use a default avatar" the default avatars
    show up and the user is allowed to click on the one they want, but when they click continue to save the choice it wont do anything.


    Copying and paste the image URL of the default avatar works. Is there a way to make it so they just need to click on one of the default avatars and just click continue?

    I can't even do it for them in the admincp page. The default avatars show up, but it will only let me upload one for them, not select from the list of default avatars.

Related Topics

Collapse

Working...
X