Forum Replies Created
-
Though that might annoy your regular users who also had dismissed it, when they see it reappear.
Sounds like you could simply delete it for everyone in the WP admin, then create a new one, same text.
You can add items to the main site menu …
WP Admin -> Appearance -> Menus
Is that not prominent enough?
Put your link in the main site menu.
Call the link “All Members” or whatever.
Point that link at the /members page.I just wanted to thank @dreampixel for the support they are giving here on the site. It’s very refreshing. Usually no help whatsoever is offered by any of the people behind Buddypress. None.
That page should exist already, anyway.
Create a yourdomaindotcom/members page and add a link to that page on the main site menu …
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, ) ); }
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, ) ); }
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/
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' );
And if that works for you I will look at the profile info shortcode later.
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' );
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 ???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.
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?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 …
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' );
Great!
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 okIMPORTANT : you should definitely do a full site backup before you do any rollback. Just in case. I’ve done it multiple times, no issues.
“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?
@mike80222 would the Redirection plugin do this for you?
@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.
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) imagesCorrect?