The easiest way for that is to use the language file.
Customizing Labels, Messages, and URLs
I want to add user profile fields such as:
References: (Where the user can choose from a drop down list of existing buddypress members)
Places Worked: (Where the user chooses from drop down a list of existing locations in the database)
Is this possible?
Thanks for the link, but I’m not a WordPress or Buddypress coder, so it’s all a bit beyond me to be honest…
This can be done with bp_parse_args(). See the Using bp_parse_args() to filter BuddyPress template loops article for a tutorial.
OK, I’ve gone through the buddypress plugin folder and found all instances of the words ‘Create an Account’ and there is only one file in which added edits will appear on the site and it’s this file:
/wp-content/plugins/buddypress/bp-members/bp-members-screens.php
How can I add this file to my buddy child theme so that I can make the text changes I require so that I’m not edited core plugin files?
However this doesn’t help with wanting to edit the ‘Registering for this site is easy….’ bit of text. So Can anyone help with a complete solution here?
Thanks
@danbp: Thank you for the suggestion. I forgot that. I did try and I get exactly the same behaviour so we can rule out any theme related issue. It really seems to be a Buddypress problem with several plugins.
Any other suggestions to see where the problem might be ?
Thanks.
I just followed the suggestions in this post to remove Admin from the activity stream and the members list. However it’s not a complete solution.
https://buddypress.org/support/topic/hide-admin-from-members-and-activity/
Admin gets removed from the main page members list and activity stream, but I use a ‘members’ widget in my sidebar and the admin still shows up in that.
How do I remove the admin from the sidebar widget as well?
I would like to change the text on the Registration page. Namely:
“Create an Account”
and
“Registering for this site is easy. Just fill in the fields below, and we’ll get a new account set up for you in no time.”
I’ve got buddypress installed and I’m running a theme called ‘Buddy’ through a child theme called buddy-child.
I’ve looked through the buddypress folder and found this file containing the text I want to change.
buddypress/bp-themes/bp-default/registration/register.php
What is the best way to make the changes to this file without altering the default plugin file so my changes don’t get overwritten if I update?
As it’s a plugin file and not a theme file I’m not sure what to do? Can I copy it into my child theme?
Please advise.
Thanks
Evie
Then create a template overload of this file:
buddypress\bp-templates\bp-legacy\buddypress\members\register.php
In that file, prevent the display of certain fields by checking them by using
bp_get_the_profile_field_id() or bp_get_the_profile_field_input_name()
in the loop: while ( bp_profile_fields() ) : bp_the_profile_field();
thanks for your input, @danbp.
There is, of course, a reason why i want it as requested 🙂
On my registration form, i only want to show one field to not bother new users with unnecessary fields. this one field is in my base group.
All other fields are arranged in another group.
From my point of view, it doesn’t make sense to show two tabs on the profile-edit page, but it does make sense to show as less fields as possible on the registration page. I think UX comes first today. Customers pay our rent, so we should avoid putting spokes in there wheel. I also think buddypress is doing a pretty bad job here regarding UX (Of course this behavior gives structure, but we pay with UX for it). Since we live in 2015 it shouldn’t be a matter of “hacking” to reduce the amount of inputs and clicks for such “trivial” actions (from a users perspective) like editing a profile.
Is that reason enough? 🙂
I am using WP 4.3.1, BP 2.3.3 and Sweet date theme, here. Any plugin I want to use besides the ones mentioned before makes my activity stream in the WP dashboard disappear. I am also using bbPress 2.5.8, rtMedia 3.8.19, akismet 3.1.3, contact form 7 v4.3. All the plugins deactivated makes my activity stream appear again, any of the other plugins activated makes it disappear again. I first thought that it was a bbpress issue only, but after systematic troubleshooting it rather seems to be a Buddypress related issue. Any help is greatly appreciated.
See here:
Filters & Constants Reference
About bp_get_displayed_user_nav_ As you see, there is a a final undescore
This is a dynamic function name which need to be completed, depending the place you want it to be modified.
bp_get_displayed_user_nav_<css_id>.
bp_get_displayed_user_nav_<css_id>
See a working example here, to understand how to use it
https://buddypress.org/support/topic/how-to-remove-sub-nav-only-for-displayed-user/#post-234852
Hi @danbp,
My question may sound obvious so my apologies in advance if that’s the case.
The issue: I was trying to hide a specific xprofile field group and used the code you provided here https://buddypress.org/support/topic/conditional-exclusion-of-a-xprofile-fields-group-from-editing/ adding it to bpcustom.php.
It worked as a charm, and the group is currently visible only to logged-in users (both in profile view and profile edit). However I no longer need the group to be publicly hidden, but removing the function and the respective add_filter from bpcustom.php does not seem to work: the group stays visible to logged-in users only.
Unfortunately I have no idea about how to address this issue, the best clue I could figure out is I might have to remove the filter registered by your bit of code (and yet that’s but a guess as my php knowledge is pretty amateurish). I would really appreciate if you could help me figuring out what’s happened, considering that my only change to your code was using my own group ID number.
Thanks in advance for you attention.
The Theme My Login plugin is useful in handling redirection. Taken from the plugin’s feature list:
Redirect users upon log in and log out based upon their role
I’ve done this myself using the plugin and can confirm it works quite well with BuddyPress installed.
Hi,
you need to track down the issue,perhaps a JS conflict in backend. Or have you the same problem on front end too ?
Follow instructions from here:
Troubleshooting
After updating my buddypress when I try to edit profile picture it shows a blank Pop-Up screen. How to resolve it?
Screen shot
Untitled_1.jpg
Here’s a backtrace:
[22-Sep-2015 02:59:19 UTC] bp_blogs_sync_delete_from_activity_comment::Started with $activity_id=14062
[22-Sep-2015 02:59:19 UTC] bp_blogs_sync_delete_from_activity_comment::Done - about to return false
[22-Sep-2015 02:59:19 UTC] bp_blogs_sync_delete_from_activity_comment::backtrace=Array
(
[0] => Array
(
[function] => bp_blogs_sync_delete_from_activity_comment
[args] => Array
(
[0] => 1
[1] => 14043
[2] => 14062
)
)
[1] => Array
(
[file] => /wp-includes/plugin.php
[line] => 213
[function] => call_user_func_array
[args] => Array
(
[0] => bp_blogs_sync_delete_from_activity_comment
[1] => Array
(
[0] => 1
[1] => 14043
[2] => 14062
)
)
)
[2] => Array
(
[file] => /wp-content/plugins/buddypress/bp-activity/bp-activity-functions.php
[line] => 2468
[function] => apply_filters
[args] => Array
(
[0] => bp_activity_delete_comment_pre
[1] => 1
[2] => 14043
[3] => 14062
)
)
[3] => Array
(
[file] => /wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress-functions.php
[line] => 1115
[function] => bp_activity_delete_comment
[args] => Array
(
[0] => 14043
[1] => 14062
)
)
[4] => Array
(
[function] => bp_legacy_theme_delete_activity_comment
[args] => Array
(
[0] =>
)
)
[5] => Array
(
[file] => /wp-includes/plugin.php
[line] => 508
[function] => call_user_func_array
[args] => Array
(
[0] => bp_legacy_theme_delete_activity_comment
[1] => Array
(
[0] =>
)
)
)
[6] => Array
(
[file] => /wp-admin/admin-ajax.php
[line] => 91
[function] => do_action
[args] => Array
(
[0] => wp_ajax_delete_activity_comment
)
)
)
[22-Sep-2015 02:59:19 UTC] bp_activity_delete_comment::Quit after apply_filters
Since version 2.0.0, when users delete a comment on a new post in the Activity page, they get the error “There was a problem when deleting. Please try again.”, but the comment is actually deleted and is gone when you refresh the page.
I’ve tracked the issue down to
\wp-content\plugins\buddypress\bp-blogs\bp-blogs-activity.php::bp_blogs_sync_delete_from_activity_comment()
which appears to return false whether it deletes the comment or not.
Hi. I have created a buddypress website and its nearlly at the point where i am happy to make it live. I have a few question though before i do. Once the site goes live and people hopefully start using it. I was thinking of creating a sub domain so i can still work on the site and improve and test new updates etc
How do i work on a copy of the site and then over write the live version without losing all the pictures comments and whatever else my members have added meanwhile.
Thanks in advance
Brian
To check you’re on the right “page” in BuddyPress, use the appropriate function
Groups: bp_is_groups_component
Activity: bp_is_activity_component
Member: bp_is_members_component
To the best of my knowledge, @-mentions in BuddyPress require the activity component to be active.
BuddyPress use 3 pages by default: members, groups and activity and a small bunch of templates depending the context.
These 3 pages are not used as ordinary WP pages, and exist for internal usage with WordPress, as slug placeholder only. These pages must stay empty and independant of any template or model.
The best way to add featured images, is to hook into an existing function/filter or action. There’s no need for a static page.
For more complex addition, you can use plugin.php template file which exist in /single/ directory of members and groups component template.
See get_posts and get_the_post_thumbnail on WP Codex
Post type of featured image is attachement
Read also about BuddyPress:
Post Types Activities
Template Overload from a Plugin
or a working example similar to what you try to do (if i understand you correctly).
https://buddypress.org/support/topic/my-contributions-tab-with-subtabs/#post-244609
I am new to buddypress and I am not understanding how to create or import users(in the backend), assign users to certain groups and have restrictions on groups (certain groups can olnly veiw/download certain pages ect.)
Hi !
I’m just wondering if there is anyway to get the ID of the page assigned to a Buddypress component.
What I mean is that when we assign a page to the Members component I can’t find anyway to get its ID :
As get_the_ID() is not working because it’s not the classic loop from WP. And I don’t find any ID stuff in members/index.php
I also checked this function bp_is_members_directory() which works great but no ID involved.
Moreover, the BP_MEMBERS_SLUG isn’t updated when we we update the page slug :/ So we can compare it to the current page’s slug.
I’m in a deadend, the main idea behind is to get the featured image working on these pages (activity, members, groups).
Any idea ?
Thank you 🙂
Best regards,
2F