Announcement

Collapse
No announcement yet.

Display Edit Avatar Popup By Default if User has no avatar yet (vBcloud)

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

  • glennrocksvb
    commented on 's reply
    Thanks for confirming v1.2 works.

  • Mitch
    commented on 's reply
    Glenn that worked .... You're a friggin Genius

  • glennrocksvb
    replied
    Released v1.2. Please see updated first post. You need to uninstall the old version before installing the new one. See updated instructions in the readme file.

    Leave a comment:


  • glennrocksvb
    replied
    The mod checks if the avatar on Profile page is using the default avatar by checking if the <img> src contains the word "default_avatar" but it seems you changed your default avatar to your site logo. The original default avatar <img> src is default_avatar_large.png

    I will update the mod to be more flexible by checking something else. I found another way without looking at the src.

    Leave a comment:


  • Mitch
    replied
    Ok I put this into the template box. I think originally the wrong code was in there.

    Code:
    <!-- Edit Avatar by vBMods.rocks START -->
    <li class="h-hide">
    <script>
    window.addEventListener("load",function(){setTimeo ut(function(){var t=$(".profileContainer .profile-photo"),e=$(".js-edit-profile");e.length&&/default_avatar/i.test(t.attr("src"))&&e.trigger("click")},1e3)},! 1);
    </script>
    </li>
    <!-- Edit Avatar by vBMods.rocks END -->
    So all that went away. But it still does not force an avatar. This is what’s shown on a new user
    Attached Files

    Leave a comment:


  • Mitch
    replied
    Glenn, why is this happening?

    Leave a comment:


  • glennrocksvb
    replied
    Released v1.1. Please see updated first post for more details.

    Leave a comment:


  • glennrocksvb
    commented on 's reply
    Thanks for the heads up. I'll take a look.

  • Hero
    replied
    Originally posted by glennrocksvb View Post
    Done.
    Since 5.6.6 this function is inactive again.

    Leave a comment:


  • glennrocksvb
    replied
    Done.

    Leave a comment:


  • glennrocksvb
    replied
    Thanks for the heads up Hero. I will update this mod.

    Leave a comment:


  • Hero
    replied
    This extension/code does not work anymore in actual vB 5.5.4. Even not in HTML-Module, because #editProfilePicture has changed to .edit-profile. Change that in your addon code and everything is fine.

    Leave a comment:


  • Barkyj
    replied
    Thank you

    Leave a comment:


  • nijohn
    replied
    Thanks a lot. It works perfectly.

    Leave a comment:


  • Mitch
    replied
    Thanks Glenn for doing the cloud version. The mod works great

    A donation was sent!

    Leave a 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 "|||"