Forum Replies Created
-
In reply to: Group cover photos not uploading
Do you see error messages on screen?
How comfortable are you with PHP?
In reply to: Shortcode to create Edit Profile PageCan you try this?
I’ve removed the
$usercheck which was unnecessary in this case. I also didn’t add a priority or the number of args passed (but again those are unnecessary so I’ve removed them).add_action( 'swpm_login', function() { bp_core_redirect( bp_loggedin_user_domain() ); } );In reply to: Shortcode to create Edit Profile PageSo on successful login it looks as though Simple Membership’s
swpm_loginhook runs. With the Simple Membership plugin activated, try adding this to your theme’s functions.php file:add_action( 'swpm_login', function( $user, $pass, $remember ) { if ( ! $user || is_wp_error( $user ) ) { return; } bp_core_redirect( bp_loggedin_user_domain() ); } );Please note I haven’t tested.
In reply to: Undefined index.Hi ma3ry
I know the path points to a BuddyPress file, but this notice is likely caused by a plugin you have activated. It basically means an array key
ris being used, but therkey doesn’t actually exist in the array (for whatever reason).Try deactivating your plugins 1 by 1 to see which might be causing the notice.
In reply to: Shortcode to create Edit Profile PageSimple Membership may use a different action hook on login. I’m guessing the redirect plugin uses the standard hook provided by BuddyPress. Do you have a link to Simple Membership?
In reply to: buddypress members search errorsThis might not fix the problem but have you tried BP Profile Search?
In reply to: Filtering Title in BuddyPressI did a bit of digging for you. The filter you need to use is
bp_title_parts. Your hooked function will be passed an array of the BuddyPress title parts.In reply to: Filtering Title in BuddyPressFor some reason I was looking at
document_title_separatorwhich is why I thought your function was passed a string. You are right,$titleis an array. Sorry about that 🙂In reply to: $bp global object deprecatedYou can still use
global $bp;at the beginning of your functions to access the global’s data. But yes,buddypress()is a far better way. You should be able to update the Codex yourself? If that’s not the case, let me know 🙂In reply to: Filtering Title in BuddyPressAlso,
$titleshould be a string, not an array. So doing stuff like this$title['title']won’t work.In reply to: Filtering Title in BuddyPressso I guess BuddyPress is bypassing or overriding this filter
If that were the case, you can increase the priority:
add_filter('document_title_parts', 'custom_groups_title', 20);But I don’t think that’s the problem in this case. Maybe check if
bp_is_group()andbp_current_action()are working as you expect them to be.var_dump( $some_value );will be useful here.In reply to: Shortcode to create Edit Profile PageThe edit form is in edit.php. You will need to add that to the page but I don’t think it will be as easy as copying and pasting because the default form processing may depend on the current URL.
That’s great to hear 🙂
I just bumped the value to 5mb. Feel free to change the
5120000value to anything that suits you.Can you try adding this to your theme’s functions.php:
add_filter( 'bp_core_avatar_original_max_filesize', function() { return 5120000; // 5mb } );Can you try ruling out your set up?
Disable all plugins (aside from BuddyPress) and activate Twenty Fifteen. Then try uploading a profile pic. If that test works then we can safely say your server is working as it should be.
That’s a strange one. 11kb is tiny. Can you try another image? Perhaps make a copy of the profile image you used here on this forum.
In reply to: Only images in activity streamYou’d need to remove the post update form and perhaps provide a image upload button instead. How comfortable are you with PHP?
Hi @ma3ry
Can you post the error message you’re getting?
In reply to: button does not appear, “Send Update”Can you post some information about your install?
- Active theme
- Plugins activated
- BuddyPress version
- WordPress version
Thanks!
In reply to: @mentions tagging people in post on wordpress siteThis is related to @-mentions in bbPress. I suggest you ask this same question over at the bbPress support forum:
That’s an interesting idea. I haven’t seen a plugin that does that. I guess you could try searching the Plugin Directory but I don’t think there will be one. 🙁
In reply to: FAQ Plugin for BuddyPressTry searching the Plugin Directory to see what’s available. I haven’t seen one myself. Sorry I can’t be more help 🙁
In reply to: Storing/Syncing with WP User meta@ala7lam if you go to Settings > BuddyPress you should see a check box next to Extended Profiles. If you uncheck that, the xProfile component becomes disabled. Then you can add your own custom solution (using WordPress usermeta if you wish).
In reply to: How to auto populate location in user profileYou could add the field to the “Base” group and then it’ll display on the registration form.