• Resolved Adscase

    (@adscase)


    Hello, I am attempting connect active directory images to the plug-in Ultimate Member.
    I have set everything up to the settings that you have mentioned in previous forum responses. The issue is incorporating <?php echo $user->adt_user_photo_url ?> into the existing ultimate member code. Below is what I have currently coded and unfortunately it is not importing the images.

    $avatar = '<img src="' . $user->adt_user_photo_url . '" class="gravatar avatar avatar-'.$size.' um-avatar" width="'.$size.'" height="'.$size.'" alt="" />';

    Ultimate Member avatar code looks like
    $avatar = um_user('profile_photo', $size);

    Any help on this would be great, thank

    https://wordpress.org/plugins/active-directory-thumbnails/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Omar Mir

    (@mirwindsor-omar)

    Are you certain the images have been imported? Can I also get more of the code so I can see how its working?

    Thread Starter Adscase

    (@adscase)

    Hello

    Sorry for the super late replay. Had to plug in some extra code for the user and integrate it with ultimate member’s code.

    um_fetch_user( $user_id );

    //See if the user has an AD photo
    $user = get_userdata($user_id);
    if( $user->adt_user_photo_url != “”) {
    $avatar = ‘<img src=”‘ . $user->adt_user_photo_url . ‘” class=”gravatar avatar avatar-‘.$size.’ um-avatar” width=”‘.$size.'” height=”‘.$size.'” alt=”” />’;
    } else {
    $avatar = um_user(‘profile_photo’, $size);
    }

    Thanks and sorry i missed the email notifying me that you had responded.

    Plugin Author Omar Mir

    (@mirwindsor-omar)

    Sorry are you certain the images were imported? Check the uploads directory to ensure there are images there and the database to see if there are URLs there.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Connecting to Ultimate Member’ is closed to new replies.