profile picture and the banner picture

This topic contains 14 replies, has 3 voices, and was last updated by  Patrik 4 months ago.

  • Author
    Posts
  • #7916

    alphawebdesign
    Lifetime Member
    Post count: 23

    Hello,

    how can I query the profile picture and the banner picture from UserWp and display them in GD Detail?

    Thanks

    #7918

    Alex Rollin
    Moderator
    Post count: 27815

    Use the shortcode builder to create a shortcode that has the options you want.

    For the avatar/profil photo, look for uwp_user_avatar ->

    [uwp_user_avatar tag="p" size="50"]

    We don’t have one for just the banner but you can get the header with

    [uwp_profile_header allow_change="1"]
    #7919

    alphawebdesign
    Lifetime Member
    Post count: 23
    This reply has been marked as private.
    #7921

    Alex Rollin
    Moderator
    Post count: 27815

    Yes, we do not have a similar feature for banners, but, I will take up your idea as a feature request and the developers will consider adding it.

    #7932

    Patrik
    Moderator
    Post count: 1971

    Hi,

    Have you tried the following shortcode?

    [uwp_profile_header allow_change="1" user_id="post_author"]

    Regards,
    Patrik

    #7934

    alphawebdesign
    Lifetime Member
    Post count: 23

    Hello Patrik,

    thank you for your help. With your shortcode you get the desired result. Currently it still shows the possibility to change your banner picture or profile picture.

    Regards Eric

    #7935

    Patrik
    Moderator
    Post count: 1971

    Hi,

    You need to disable the allow change parameter. Try this code:

    [uwp_profile_header allow_change="0" user_id="post_author"]

    Regards,
    Patrik

    #7936

    alphawebdesign
    Lifetime Member
    Post count: 23

    I’ve already tried that. I had already deleted this part. Didn’t work either. But thanks.

    #7941

    Patrik
    Moderator
    Post count: 1971
    This reply has been marked as private.
    #7945

    alphawebdesign
    Lifetime Member
    Post count: 23
    This reply has been marked as private.
    #7946

    Patrik
    Moderator
    Post count: 1971

    Hi,

    The map container needs width: 100%; As it has currently “h-col-lg-auto” class which gives width: auto; Also, I can’t find where is the profile header shortcode output so that I can fix it. If you can provide link to the issue then it will be easy for me to look into it.

    Regards,
    Patrik

    #7947

    alphawebdesign
    Lifetime Member
    Post count: 23
    This reply has been marked as private.
    #7948

    Patrik
    Moderator
    Post count: 1971

    Hi,

    I see you are using the author box which will display the author profile image and author name. In profile header, If you want to remove the ability to change the banner image and profile image then you can hide the change icon using CSS easily. You can hide anything displaying via profile header using CSS. Also, you can change the things by overriding the template for profile header. If it doesn’t help then I can help you.

    Regards,
    Patrik

    #7953

    alphawebdesign
    Lifetime Member
    Post count: 23
    This reply has been marked as private.
    #7957

    Patrik
    Moderator
    Post count: 1971

    Ok, If you want to know the functions to get banner image and profile image then following are the functions you can try:

    $banner = uwp_get_usermeta( $user_id, 'banner_thumb', '' );
    $avatar = uwp_get_usermeta( $user_id, 'avatar_thumb', '' );

    This will give you the thumb path and you will need to add the upload directory URL before the path and then you can display the image in tag.

    Regards,
    Patrik

Viewing 15 posts - 1 through 15 (of 15 total)

The topic ‘profile picture and the banner picture’ is closed to new replies, this may be for inactivity, please open a new topic if you have a similar question.