This is actually a significant problem for running BuddyPress with MemberPress, because MemberPress (and I’m guessing a lot of ecommerce plugins) require a First Name and Last Name for checkout. I don’t understand why BuddyPress doesn’t just update WP’s “Display name publicly as” field and leave alone the first/last fields. It seems very common in a social network for individuals to want to use a handle rather than their full name.
Maybe itโs an easy thing, but I am really confused. Please advise me.
Well, if it’s easy we’re both dummies cuz I find it extremely confusing myself.
Take the template for a single members profile page as an example.
/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/home.php
is to be copied and renamed to your theme, but first you have to rename it to index.php for some reason. like this..
/wp-content/themes/THEMEFOLDER/buddypress/members/single/index.php
Or this one which I forget is to either view the inbox or a message thread..
/wp-content/plugins/buddypress/bp-templates/bp-legacy/buddypress/members/single/messages/single/view.php
would change to..
/wp-content/themes/THEMEFOLDER/buddypress/members/single/index-action-view.php
Some template files are turned into ‘actions’, some are to be ‘components’, some files get renamed, some names stay the same but go in different folders than the bp-legacy structure, and so on.
Here’s a page that can sort of help make sense of it..
Template Hierarchy
further insights anyone??
When BuddyPress is activated, the WP Dashboard goes white, but functionality of the plugin comes back along with all the data. When BP is deactivated (removed via sftp, actually) the functionality is lost, but the Dashboard comes back to online mode.
Unless you are explictly using the bp-default theme as your Theme,
always use these templates bp-templates/bp-legacy/buddypress/
Re your current activity/index file in your child theme – use the index.php from the bp-legacy location and move any changes you want into that file.
@alonsotron all you will need to do is create blank pages with the same names and then in settings for buddypress associate the pages with register and activate action in the Pages tab of settings.
Hi all,
I am really confused with bp-templates and bp-themes directories.
I wanted to change my activities page, more specifically, to add a sentence above the activity posting form.
I tried editing bp-themes/bp-default/activity/index.php,
but I couldn’t get what I needed, no changes happened when I added a paragraph to it.
Later I found another file: bp-templates/bp-legacy/buddypress/activity/index.php,
and when I added my paragraph to it, I got what I needed.
In order to leave the BP files without changing, I copied them to my child theme directory: my-child-theme-directory/buddypress/activity/index.php.
I did this on a test BP install and there was no problem.
On my real website, I found an activity directory in my child theme’s buddypress folder, which contains an index.php file, when I checked, it is the index.php from bp-themes/bp-default/activity/.
So, how can I make this without replacing the index.php file?
Is it wrong to copy and edit files from bp-templates/bp-legacy/buddypress folder?
Maybe it’s an easy thing, but I am really confused. Please advise me.
Thanks,
Leo
@danielmariveles
Just tested on a fresh install (regular config & multisite one).
When a user registers from the front-end registration form on both configs, i can’t manage to reproduce your issue.
first_name/last_name user meta are created
display_name field in table wp_users
is created
value for the xProfile Name field is created in wp_bp_xprofile_data
table
Title of the page is looking like this FirstName LastName - Site Name
for profile’s page.
So everything works fine for me.
Are you sure it’s happening when a user registers ?
Have you tried without any other plugin activated than BuddyPress ?
You can open a ticket here using the same user / pw as this site.
Nice work @djpaul, looking forward to bp_send_email()
being available. Ref: 6592#29
Look at function bp_core_time_since
in buddypress\bp-core\bp-core-functions.php
That function contains several filter hooks that you can use to make changes.
The changes may only apply to content created going forward.
While this doesn’t help much, it’s an issue with bbPress, not BuddyPress.
We can’t support the Followers plugin here.
About the groups tag, I thought we fixed the no-count
issue recently. What version of BuddyPress are you using?
Try adding this to your theme/functions.php or bp-custom.php
add_filter('bp_get_send_public_message_button', '__return_false');
I have Buddypress installed on a client site. There are times when any of the BP pages are used and then they navigate to another page, the intended page will display the 404 page. I thought initially that this was due to certain incompatibilities with the theme so I changed the theme to one that is BP-ready but the problem still occurs.
The 404 is resolved by re-saving permalinks again.
I read on this thread https://buddypress.org/support/topic/add-group-redirects-to-404-error/ that BP doesn’t like that its pages (Groups, etc.) are sub-pages but this error was for adding groups.
Can someone please help shed a light on this?
buddypress used to have its own group based forums now what you do is when you create the group there is an option to also create a forum topic. you can also associate an already existing forum using the manage option on the group page as an admin.
there’s no need actually the user list is the same (wordpress’) and buddypress does not have any forum functionality other than compatibility with what bbpress provides.
It works up to 2.4 and maybe higher, but throws a slew of Notices.
@kalaiyarasi – the emails are generated in various files depending on which email it is.
You can filter most parts of the emails – on a per kind basis.
For example the friend request emails are generated in
\buddypress\bp-friends\bp-friends-notifications.php
See function friends_notification_new_request
for the filter hooks.
And yes, the current approach is difficult to work with.
A better approach is being built, hopefully for the BP 2.5 release:
https://buddypress.trac.wordpress.org/ticket/6592
Thanks very much guys!
Is it just my blind eyes or is hookr.io impossible to read? Font size is tiny, color is invisible. A fantastic resource though, bookmarked it, thanks again!
For anybody interested, I just wanted a ‘send private message’ button that I could place anywhere on the page.
The simple way seems to be to use this..
<?php bp_send_private_message_button(); ?>
On click it will open the send message page with the person you want to message already set.
bp_send_private_message_button
is a function that echos bp_get_send_message_button
bp_send_private_message_button
is located in /bp-messages/bp-messages-template.php
source http://hookr.io/plugins/buddypress/2.4.3/functions/bp_send_private_message_button/
if you’re wanting to change the text of the link you can add this to functions.php or bp-custom.php
function custom_change_send_private_message_text($args) {
$args[link_text] = 'send message';
return $args;
}
add_filter( 'bp_get_send_message_button_args', 'custom_change_send_private_message_text', 1, 1 );
..thats courtesy of shanebp..
https://buddypress.org/support/topic/private-message-button-label-change/
another version i was playing with if its of use to anyone..
function custom_change_send_private_message_text($args) {
$userName = bp_get_displayed_user_username();
$args[link_text] = 'send ' . $userName . ' a private message';
return $args;
}
add_filter( 'bp_get_send_message_button_args', 'custom_change_send_private_message_text', 1, 1 );
..you would have to figure out how to remove the hyphen from the username.
Hi,
as long as these members haven’t loggedin for the first time, their name is held in xx_signup table and are mentionned as “pending” on members admin page.
As you use subdomain, i suppose you are on a network install, in which case, your members admin can be found at your_site/wp-admin/network/users.php (wp-admin/users.php on a single install).
If not, ensure that BP is installed at the same level as your WordPress. This is mandatory.
BuddyPress does not work on installations where you give WordPress its own directory.
Anything is explained here:
Getting Started
It doesn’t handle the avatar.
It creates Friend, Public & Private messages buttons.
And provides a hook for you to add another call.
See function setup_actions()
in this file for where it is hooked to create the default buttons:
buddypress\bp-templates\bp-legacy\buddypress-functions.php
Ok, will do. Didn’t realize that, but since I was using BuddyPress to display my events, I wasn’t sure which plug-in.
thanks
Kim
Hi,
Group Events is not a BuddyPress affair. ๐ Ask on your events plugin support.