Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 25 replies - 1 through 25 (of 58 total)

  • thinlizzie
    Participant

    @thinlizzie

    I forgot the comma above, should be a comma after ‘full’ , like so …

    
    
    return bp_core_fetch_avatar( array(
      'type' 	 => 'full',
      'item_id'	 => $user->ID,
      'width'	 => 80,
      'height'	 => 80,
      ) );
    }
    
    

    thinlizzie
    Participant

    @thinlizzie

    Also re. Avatar size, first try adding ‘type = full’ into the array, should allow you to specify larger sizes, as below …

    
    return bp_core_fetch_avatar( array(
      'type' 	 => 'full'
      'item_id'	 => $user->ID,
      'width'	 => 80,
      'height'	 => 80,
      ) );
    }
    
    

    thinlizzie
    Participant

    @thinlizzie

    Re. avatar size, not sure, you can try putting a span around your shortcode, give it a class and with CSS try to force the avatar size.

    Or you can add a class into the fetch_avatar array and try that way.

    See: https://www.buddyboss.com/resources/reference/functions/bp_core_fetch_avatar/


    thinlizzie
    Participant

    @thinlizzie

    Assuming you have a Buddypress profile field for your users bio (in this case called ‘Description’), this will work.

    
    function show_description ($atts) {
    
    $user = get_user_by( 'login' , $atts['username'] );
    	
    $args = array(
         'field'   => 'Description',
         'user_id' => $user->ID
    );
    
    return bp_get_profile_field_data( $args );
    
    }
    
    add_shortcode( 'showdescription' , 'show_description' );
    

    thinlizzie
    Participant

    @thinlizzie

    And if that works for you I will look at the profile info shortcode later.


    thinlizzie
    Participant

    @thinlizzie

    Try this for your avatar display.

    Your shortcode syntax would look like …

    [showavatar username=”johnsmith”]

    You can change width & height to your preference.

    
    function show_avatar ($atts) {
    
    $user = get_user_by( 'login' , $atts['username'] );
    	
    return bp_core_fetch_avatar( array(
      'item_id'	 => $user->ID,
      'width'	 => 50,
      'height'	 => 50,
      ) );
    }
    
    add_shortcode( 'showavatar' , 'show_avatar' );
    
    

    thinlizzie
    Participant

    @thinlizzie

    Hi

    Where are you getting the username from?
    If this is to be displayed to visitors, then clearly it’s not the logged-in user.
    Should it show different info in different contexts, or it’s the same thing every time ie. show the info for @johnsmith ???


    thinlizzie
    Participant

    @thinlizzie

    They should get an email sent to the new email address, they click the link in the email to confirm and then the change is done.


    thinlizzie
    Participant

    @thinlizzie

    Okay, I don’t know how to do it exactly as you want.
    The “me” method would be functionally the same.
    Any reason you require the actual username to be present?


    thinlizzie
    Participant

    @thinlizzie

    @kokiri

    You can usually replace the username with “/me/” in a profile link to make it dynamically link to the current logged in user.
    So if that is what you want then in your example you would replace /kokiri/ with /me/

    Your link would then be …

    https://example.com/me/settings/general

    If that doesn’t work, you might try …

    https://example.com/members/me/settings/general


    thinlizzie
    Participant

    @thinlizzie

    I seem to remember if you force Buddypress to use wp_mail to send its emails, then those will indeed be logged by the WP Mail Logging plugin.

    Try it out.

    
    add_filter( 'bp_email_use_wp_mail', '__return_true' );
    

    thinlizzie
    Participant

    @thinlizzie

    Great!


    thinlizzie
    Participant

    @thinlizzie

    @pellepedersen

    Looks like your issues probably stem from BP changing the way new accounts are registered, which I think was introduced in BP 14 (but not sure, look into that).

    So best to go back to an earlier version.

    I use BP 10.6.4 with BP Registration Options to provide admin with moderation options for newly registered accounts (ie. they need to be “approved”)

    So if that’s what you were doing earlier, then I’d recommend that setup.

    – You can manually delete and install an older version of BP, but I would recommend you use the WP Rollback plugin, much safer.
    – so, install WP Rollback plugin
    – do not delete anything
    – rollback Buddypress to v. 10.6.4
    – all should be ok

    IMPORTANT : you should definitely do a full site backup before you do any rollback. Just in case. I’ve done it multiple times, no issues.


    thinlizzie
    Participant

    @thinlizzie

    “All input and advice are welcome.”

    Ok, simply dial back your version of BP to an earlier one. Then your BP Registration Options will work as before and you can do things as you always did.

    I still use BP 10.6 plus an older version of Registration Options. All’s good.

    Why are people so mad keen to update to the latest version of WP and BP when it often breaks their previously perfect working setup?


    thinlizzie
    Participant

    @thinlizzie

    @mike80222 would the Redirection plugin do this for you?


    thinlizzie
    Participant

    @thinlizzie

    @vapvarun , thanks for the info.

    I always wondered where the bp avatars were saved.
    They clearly are not in the Media gallery.
    Anyway, not important.

    So, as things stand, it seems impossible to improve the quality of previously uploaded profile pictures because the original hi-res image gets discarded after upload, leaving behind only the lo-res avatar?

    I suppose I shall simply wait to see if any changes get implemented.

    Thanks guys for considering this matter.

    And thanks to @whyknott for his work so far.


    thinlizzie
    Participant

    @thinlizzie

    Thanks, will test in my staging environment.

    Just to confirm, this is the correct sequence:

    – add your code snippet
    – activate Regenerate Thumbnails plugin
    – test on a few sample Media images
    – test on all (staging) images

    Correct?


    thinlizzie
    Participant

    @thinlizzie

    @why not advertising,

    That’s great!
    My users always complain about the avatar pixelation.
    Hope this fixes it.

    Question: Will this fix the quality of already uploaded profile pics?
    Or only for new uploads?
    I hope it’s the former or else I can’t use it. My site has 20000 members.


    thinlizzie
    Participant

    @thinlizzie

    No.


    thinlizzie
    Participant

    @thinlizzie

    Do you want it all as one big clickable link?
    So it displays like this, over three lines…. ???

    Name, Age
    City
    Country


    thinlizzie
    Participant

    @thinlizzie

    Where’s your approval functionality coming from ? … WordPress, Buddypress, or a plugin?


    thinlizzie
    Participant

    @thinlizzie

    Same issue cropped up for me three years ago …
    I chose to simply hide the RSS feed button…

    Add CSS to Customiser …

    
    .feed { display: none !important; }
    

    thinlizzie
    Participant

    @thinlizzie

    Password change is available on the same page.


    thinlizzie
    Participant

    @thinlizzie

    This should be available by default on the Settings page of the user profile.

    User can edit the displayed email address, click Save Changes.


    thinlizzie
    Participant

    @thinlizzie

    Sorry, then I can’t suggest anything. Custom code is likely required.
    Buddydev might help.

Viewing 25 replies - 1 through 25 (of 58 total)
Skip to toolbar