Viewing 12 replies - 1 through 12 (of 12 total)
  • Do you see the shortcode [avatar_upload] printed out or do you see nothing?

    Thread Starter jimario

    (@jimario)

    I don’t see anything. just blankness.

    Could you create a test account for me to view this?

    Thread Starter jimario

    (@jimario)

    https://goldensurrogacy.com/login

    user: suri

    pass: 1

    when you’re logged in, click the Edit My Profile link. That will take you to the profile editor. Then on the profile editor, click the avatar image at the top left of the screen. that will take you to the front end uploader page.

    Do you have “Allow Contributors & Subscribers to upload avatars” checked in your Avatar settings?

    Thread Starter jimario

    (@jimario)

    No. The user that you logged in on is a special role that has been given certain capabilities that include uploading and editing the profile pic. Even when I log in as Admin, the uploader is still absent from the page.

    Could you check “Allow Contributors & Subscribers to upload avatars” and see if something happens?

    I really have no idea why the shortcode would work for you in 3.9 and then not in 3.9.1.

    Thread Starter jimario

    (@jimario)

    I checked “Allow Contributors & Subscribers to upload avatars” and i’m still getting a blank. I actually jumped from 3.81 to 3.91

    Does the [avatar] shortcode work? I just want to check.

    Thread Starter jimario

    (@jimario)

    Okay, it looks like if I use my theme’s advanced visual editor to add the shortcode, then it works. This may be an issue with my WordPress or my theme because any content that I enter into the default editor won’t show up when viewing the page. This used to work until I upgraded to WP v.3.91.

    Anyway, To further complicate things, your shortcode works for Admins, meaning that the uploader is viewable by admins. I also enabled “Allow Editors & Subscribers” in the WPUA settings which is something I didn’t have to do before. But now my special user roles I created can once again see the uploader. But this creates a new problem. I only want the uploader to show up on a front end page that I created I dont’ want it showing up on the user’s profile editing page (user-edit.php). I’m having a tough time trying to use CSS to display:none but can’t seem to get it to blank the uploader out. Any help?

    Adding this code to your theme’s functions.php file should remove the avatar section:

    function my_avatar_filter() {
      // Remove from show_user_profile hook
      remove_action('show_user_profile', array('wp_user_avatar', 'wpua_action_show_user_profile'));
      remove_action('show_user_profile', array('wp_user_avatar', 'wpua_media_upload_scripts'));
    
      // Remove from edit_user_profile hook
      remove_action('edit_user_profile', array('wp_user_avatar', 'wpua_action_show_user_profile'));
      remove_action('edit_user_profile', array('wp_user_avatar', 'wpua_media_upload_scripts'));
    }
    
    // Loads only on administration pages
    if(is_admin()) {
      add_action('init','my_avatar_filter');
    }
    Thread Starter jimario

    (@jimario)

    That worked like a charm. Thank you so much! Excellent plugin, the best Avatar plugin and I’ve tried the other ones.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘upgraded to WP 3.91 uploader now missing’ is closed to new replies.