Forum Replies Created
-
In reply to: How to change profile header image
Hi Paul
You can try this code to set one background image for all users.
Please change the image URL to point at your image.function set_default_cover_image( $settings = array() ) { $settings['default_cover'] = 'your-image-url.jpg'; return $settings; } add_filter( 'bp_before_members_cover_image_settings_parse_args', 'set_default_cover_image', 10, 1 );In reply to: getting back a dismissed sitewide noticeThough that might annoy your regular users who also had dismissed it, when they see it reappear.
In reply to: getting back a dismissed sitewide noticeSounds like you could simply delete it for everyone in the WP admin, then create a new one, same text.
In reply to: How to get a page to display the /members slug?You can add items to the main site menu …
WP Admin -> Appearance -> Menus
In reply to: How to get a page to display the /members slug?Is that not prominent enough?
In reply to: How to get a page to display the /members slug?Put your link in the main site menu.
Call the link “All Members” or whatever.
Point that link at the /members page.In reply to: After WordPress 6.7 release, buddypress failsI 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.
In reply to: How to get a page to display the /members slug?That page should exist already, anyway.
In reply to: How to get a page to display the /members slug?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.
In reply to: How do i get a link to edit profile?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?In reply to: How do i get a link to edit profile?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 …
In reply to: How to log Emails that generated by buddy-pressI 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' );In reply to: Registration problems – no mail to administratorGreat!
In reply to: Registration problems – no mail to administratorLooks 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.
In reply to: Registration problems – no mail to administrator“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?
In reply to: disable rss@mike80222 would the Redirection plugin do this for you?
In reply to: Blurry Avatar and Cover Images@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.