• Resolved Ariel

    (@arielhr1987)


    Hi guys

    I am the author of the plugin Leira Letter Avatar. My plugin adds a new option to the default wordpress settings page in “Settings” > “Discussion” > “Avatar” > “Default Avatar” to allow the user to select the option to show a custom letter avatar.
    However, while checking how well my plugin integrates with yours I found that WP User Avatar does not shows the option my plugin adds.

    I check the code and I found the problem.

    In your file /wp-user-avatar/includes/class-wp-user-avatar-admin.php method “wpua_add_default_avatar” line 240 right after the “$avatar_defaults” array instantiation you should make a call to the filter “avatar_defaults”, just to ensure all default avatars are correctly set.
    If you check wp core file “/wp-admin/options-discussion.php” line 274.you will notice that right after $avatar_defaults there is a call to the “avatar_defaults” filter.

    The code should look like this in order to fix the problem:

    // Set avatar defaults
        $avatar_defaults = array(
          'mystery' => __('Mystery Man','wp-user-avatar'),
          'blank' => __('Blank','wp-user-avatar'),
          'gravatar_default' => __('Gravatar Logo','wp-user-avatar'),
          'identicon' => __('Identicon (Generated)','wp-user-avatar'),
          'wavatar' => __('Wavatar (Generated)','wp-user-avatar'),
          'monsterid' => __('MonsterID (Generated)','wp-user-avatar'),
          'retro' => __('Retro (Generated)','wp-user-avatar')
        );
        $avatar_defaults = apply_filters( 'avatar_defaults', $avatar_defaults );

    You can find more documentation about it in the wp core file “/wp-admin/options-discussion.php” line 274

    Kind regards

Viewing 6 replies - 1 through 6 (of 6 total)
  • +1 for this. Both very nice plugins, would be great if they play nice together.

    I would also like to see these two plugins integrating well with one another.

    Plugin Author Collins Agbonghama

    (@collizo4sky)

    This will be fixed in the upcoming update.

    Thanks @arielhr1987

    Hari

    (@haribonda)

    +2 for this. Both very nice plugins, would be great if they play nice together.

    Plugin Author Collins Agbonghama

    (@collizo4sky)

    This has been fixed in the latest version.

    Both should play nicely together now.

    Hari

    (@haribonda)

    thanks, my i ask you a quick question.

    i have tried using both plugins together with wpDiscuzz

    i have set wp discussion settings as “WP User Avatar”

    and letter plugin is enable.

    its not displaying Facebook profile picture which is already saved with wp profile.

    ————-
    i will explain what i am trying to achieve.

    user will login using wp discuzz social login and his profile pic will be saved with wp profile. if he dont have any profile pic will “letter avatar” plugin shows letter?

    when i use “WP User Avatar” its not considering fb profile pic showing default pic
    when i use only letter avatar its not considering fb profile pic


    how can make it to work like : if fb profile pic saved using wpdiscuzz consider it if not use letter svg from letter plugin .

    will this “WP User Avatar” helps in my scenario ?

    if iam doing something wrong please suggest correct settings.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Default avatar option is missing’ is closed to new replies.