Forum Replies Created
-
In reply to: Strange links in Buddypress profiles
Make sure you have no white space at the start of bp-custom.php.
This might cause the “headers already sent” error:
<?php Your code..This is the same file with whitespace removed:
<?php Your code..In reply to: “Profile” shown in navibar 3 timesThe first link will take you to the profile edit screen. I’m not sure why you see the 2nd? I see “Personal”, “Mentions” and “Favourites”. The 3rd option takes you to your profile settings page.
How do I remove buddyPress completely from my wordpress and restore everything as pre-installation of BuddyPress?
You can just deactivate the plugin and remove the “Register” and “Activate” pages you created at Dashboard > Pages.
In reply to: Buddypress and Calypso?@ronia BuddyPress uses the admin area too ๐
In reply to: Strange links in Buddypress profilesHi @koreancandy
Looking at the Name and Location profile fields, they’re also linked? To remove these links, check out the bp-custom.php article.
In reply to: php fatal error $message->send()If I have no recipients I get a php error.
Are you sure the problem is you have no recipients?
Once
messages_control()returns, the following code is executed immediately:if ( empty( $this->recipients ) ) return false;This will ensure the message isn’t sent if you have no recipients.
In reply to: Buddypress and Calypso?It’s likely that nobody has even thought about this yet because Calypso is so new. Check out these instructions if you want to install it: https://github.com/Automattic/wp-calypso/blob/master/docs/install.md
Also, there are various projects in progress for BuddyPress. Here’s one example:
In reply to: Buddypress and Calypso?It’s likely that nobody has even thought about this yet because Calypso is so new. Check out these instructions if you want to install it: https://github.com/Automattic/wp-calypso/blob/master/docs/install.md
Also, there are various projects in progress for BuddyPress. Here’s one example:
In reply to: Adding a new component to BuddyPressThese requirements are very custom so I doubt there will be a plugin available. My advice is to take a look through the core project code to familiarise yourself with how BuddyPress works. There’s also a BuddyPress Skeleton Component you can use (check out the comments) to learn how to create a new component should you need one.
In reply to: want to add more fields to “Post Update” formYou should look at bp-templates/bp-legacy/buddypress/activity/post-form.php, making changes if necessary using the BuddyPress Template Hierarchy article as a guide.
In reply to: bp_get_member_user_id() returns falseThe likely reason why
bp_get_member_user_id()is returningNULLis you are using it outside the members loop. See the Playing with the userโs ID in different contexts article for info on how to get the member’s ID in the various contexts that exist within BP.In reply to: groups_member_before_save messages not showwing upThe
groups_member_before_savehook doesn’t really give you the opportunity to exit execution gracefully if your member doesn’t validate. Is there another hook that you can use?I suppose you could force execution to stop by adding a redirect after
bp_core_add_message()but that feels slightly hackish:bp_core_add_message( $message, 'error' ); bp_core_redirect( bp_get_groups_directory_permalink() );After a particular member has reached the 1 private group limit, you’d probably want to stop the member:
- requesting to join a new private group
- from being invited to join a private group
- from creating a new private group
You mention the member can belong to multiple public groups so your checks should be specific for private groups (also note there is a hidden group type).
With reference to what hook to use, you’d probably need to use 3 different hooks depending on the actions mentioned above. Take a look through bp-groups/bp-groups-functions.php to start with to see what’s available.
In reply to: Disable messages in Activity StreamI have no idea if this plugin still functions because it was last updated ~4 years ago, but check out BuddyPress Block Activity Stream Types.
In reply to: How to update avatar user meta?in the API results I have a url of the avatar
Does the result give you the user ID as well?
In reply to: How to update avatar user meta?How are you uploading the image?
In reply to: How to update avatar user meta?Yeah the
BP_Attachmentclass is awesome!the only problem is that it depends on a $_FILES variable
I’m wondering why that’s a problem?
In reply to: Change BuddyPress Activity Stream OrderCheck out the Using bp_parse_args() to filter BuddyPress template loops article. Specifically, you’d want to make use of
date_query, which should be an array of date query clauses.In reply to: How to update avatar user meta?In your above code you’ve used
author_avatarto update so you’d just use that again to retrieve.In reply to: How to update avatar user meta?You can use
get_user_meta()for that.In reply to: A Nicer Way To Edit Group SlugsGreat to hear that @tonydjukic
Just to point out, I seem to have got @johnjamesjacoby’s username wrong in my comment above. He seems to be @jjj everywhere else, just not on this forum ๐
In reply to: Set Birthday value buddypressall i want to know is how the avatar are set in the user meta
Is this related to the datebox stuff, or separate?
In reply to: Set Birthday value buddypressIn that case, I think your code should be working. The problem is most probably elsewhere.
In reply to: Set Birthday value buddypressHave you checked in the db to make sure the profile data has been set? The issue could be how you’re displaying it at the front-end.
In reply to: No index buddypress pagesThe Template Tag Reference will help you here. You can do things like the following inside your function to determine the type of page that is being accessed:
if ( bp_is_groups() ) { // This is the groups page. } if ( is_buddypress() ) { // This is a BuddyPress screen. }