• Resolved graffx

    (@graffx)


    Hi, i will try to explain with my poor english.

    I bought the townhub theme wich is very great!

    In my theme, members can upload pictures of profiles, it works great!

    But since i installed ultimate members, pictures of the plugin take the control on members picture’ s profile.

    I explain:
    1 – i upload my profile picture
    2 – i install ultimate members, the picture of profile is the one choosen in ultimate members now, not the one i uploaded.
    3 – if i deactivate ultimate member, profiles find back all uploaded pictures by members.

    I tryed deactivated gravatar but it change nothing, normal so.

    I think it must be same codes for this part (header and profile picture) for ultimate members and my theme.

    I dont want uninstall ultimate members, i love it, but how can i delete code in the plugin for all pictures profiles which could generate conflict pleasde?

    I hope i was understood :s

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @graffx

    You can use the following code snippet to disable the UM profile photos:

    add_action("init", "um_080621_one_user_avatar_compatibility");
    function um_080621_one_user_avatar_compatibility(){
        remove_filter( 'get_avatar', 'um_get_avatar', 99999, 5 );
        remove_filter( 'get_avatar_url', 'um_filter_get_avatar_url', 20, 3 );
        remove_filter( 'avatar_defaults', 'um_avatar_defaults', 99999 );
    }

    You can add the code to your theme/child-theme’s functions.php file or use the Code Snippet plugin to run the code.

    Regards,

    Thread Starter graffx

    (@graffx)

    1 Millions of thanks, that saved my day, it works great.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘conflict with townhub theme’ is closed to new replies.