Announcement

Collapse
No announcement yet.

default avatar question

Collapse
X
Collapse
First Prev Next Last
 
  • Filter
  • Time
  • Show
Clear All
new posts

    default avatar question

    Iā€™m using VB5. 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.
    Tags: None

    #2
    That looks like a remnant of old vB versions. In vB5, there's no built-in way to choose from a list of pre-selected set of avatars. This is what I have here:

    Click image for larger version

Name:	image.png
Views:	158
Size:	24.2 KB
ID:	9830


    I have a custom mod I created for one of my customers but I haven't released it publicly.

    Click image for larger version

Name:	image.png
Views:	142
Size:	163.9 KB
ID:	9831
    Helpful? Donate. Thanks!
    Buy me a coffeePayPal QR Code
    Fast VPS Host for vBulletin:
    A2 Hosting & IONOS

    Comment


      #3
      Yeah, for some reason this shows for me. I don't have any mods on my forum.
      Attached Files

      Comment


        #4
        That looks like a third-party mod. Check the Products & Hooks section in AdminCP.
        Helpful? Donate. Thanks!
        Buy me a coffeePayPal QR Code
        Fast VPS Host for vBulletin:
        A2 Hosting & IONOS

        Comment


        • glennrocksvb
          glennrocksvb commented
          Editing a comment
          Or check the Edit Avatar template. I don't know the template name off the top of my head

        #5
        I haven't installed any products and hooks. This could be from a earlier version of VB. You use to be able to use a default avatar. I'm just trying to figure out how to get rid of the option.

        Comment


          #6
          I looked at the widget_profile_sidebar template and I see the code for the default avatars. So this was intended to keep and re-use the default avatars used in vB4.
          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 default avatar set is populated dynamically via AJAX.

          Check if this issue also happens in the vB5 Default Style. If so, then there is a bug and should be reported to vBulletin.
          Helpful? Donate. Thanks!
          Buy me a coffeePayPal QR Code
          Fast VPS Host for vBulletin:
          A2 Hosting & IONOS

          Comment


            #7
            Wayne Luke from vbulletin told me this "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."

            It's not a big deal I guess. My default avatar template code is:

            <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>

            Comment


              #8
              That is a vB5 template and is intended to display the default avatars set from older vB versions. So what you are seeing on your site is a built-in vB5 feature and not a third-party mod. If it's not working, then it is a bug.
              Helpful? Donate. Thanks!
              Buy me a coffeePayPal QR Code
              Fast VPS Host for vBulletin:
              A2 Hosting & IONOS

              Comment


                #9
                Yeah they claim it's some kind of carry over from a previous version and not enough people care about having the bug or feature taken care of. Do you think it's an easy fix? Not really a big deal, but it is kind of annoying.

                Comment


                  #10
                  Can't tell until I see the issue in action.
                  Helpful? Donate. Thanks!
                  Buy me a coffeePayPal QR Code
                  Fast VPS Host for vBulletin:
                  A2 Hosting & IONOS

                  Comment


                    #11
                    Stumbled across this thread today. I thought it would be fun getting getting that to work again.

                    Unfortunately there are 2 Problems. 1st the queryid is no longer the correct one .. there is a ticket open on vbulletin that addresses that issue (since 2013 ) i added a patch, maybe that speeds things up -> https://tracker.vbulletin.com/vbulle...sues/VBV-10946

                    2nd, the old js method for saving default avatars is overridden by a new switch case statement in the profile.js file. So you still need somebody to fix that for you :-)

                    Comment

                    Users Viewing This Page

                    Collapse

                    There is 1 user viewing this forum topic.

                    • Guest Guest

                    Latest Posts

                    Collapse

                    Working...
                    X
                    Searching...Please wait.
                    An unexpected error was returned: 'Your submission could not be processed because you have logged in since the previous page was loaded.

                    Please push the back button and reload the previous window.'
                    An unexpected error was returned: 'Your submission could not be processed because the token has expired.

                    Please push the back button and reload the previous window.'
                    An internal error has occurred and the module cannot be displayed.
                    There are no results that meet this criteria.
                    Search Result for "|||"