I want to allow usernames with ‘-‘ (hyphen) symbol. But now i face some errors with buddypress.
I am using Buddypress + Facebook login. So when user try to login using facebook then it will get facebook username and adds hypens automatically (if there have any spaces).
But when try to see their user profile, like:
1. “[DOMAIN]/members/Umar-Faruk” – Getting 404 Error
but instead the profile works in
2. “[DOMAIN]/members/Umar” – It works good.
How to do the same for the username with ‘hyphen’?
Buddypress: Version 1.8.1
WordPress: 3.6
Hi BuddyPress Support,
I’ve recently had a bit of trouble with a few features on my site.
We seem to have the ability for users to view anyone’s profiles, including their own.
Once you click on a profile link it tells you the page could not be found.
The same happens when you use the search bar on the home page.
I’m not sure if this is actually a BuddyPress issue, but maybe you guys know the solution.
Website URL: http://www.orangetail.co.za
WordPress: 3.5.2
BuddyPress: 1.8
Thanks for any assistance
How can I automatically but some advertising between the status updates of the user?
Wordpress version: 3.6.1
Buddypress version: 1.8.1
URL: only on localhost
Hi all, I am running WP 3.6.1 and BP 1.8.1
I am trying to redirect a user to their activity page when they log in.
I was able to do this by using this plugin: http://wordpress.org/plugins/buddypress-login-redirect/
However, because I am using a multisite, when an admin logs in to edit their site in dashboard, they too are redirected to the bp activity page.
SO, what I am looking for is a way to redirect main site users (subscribers) to their activity page, but NOT redirect them when they are logging in to theirsite.mydomain.com/wp-login.php
*my site is in production mode, so I cannot provide a link TIA for any help
Iv been searching and found some things here and there with not much explanation of where to place code.
There are a ton of plugins that display an author box with their Bio in a post, but only problem is they all pull the bio info from wordpress rather than the way buddypress uses xprofile fields.
Iv set up a Bio field but really need to know how to call this field into a post and where to place the code to make this work.
If there is anyone who can shed some light on this it would be greatly appreciated.
Did you remove it from this file https://buddypress.trac.wordpress.org/browser/tags/1.8.1/bp-themes/bp-default/groups/single/activity.php
I hope you’re using a child theme of the BP Default theme instead of making those changes on that theme in your server. Otherwise, your changes will be overwritten when BP is updated.
hi,
I’m using buddypress to build a dating website.
estimated Members -6000,estimated visitors per day 500-600.
Major part of this website will be a kind of matching questionnaire ,
each time you or other member answer a question a constantly updating list of your best matches (from all the members), will be displayed in the questionnaire page in the website .
That means a lots of simultaneous database connections /requests.
now I was told by a colleague that developing such questionnaire plugin for wordpress /buddypress is a big mistake.
-
First because processing all this data in real time, meaning answers sent to database ,compared ,calculated and send back to the page will exceed the server capacity very soon.
-
Second because each request Invokes loading of the whole WordPress (wp-load.php).
His solution was to manage all the calculations outside wordpress like in some kind of SOAP web service,
My question is simple:
how to avoid overloading in this plugin and is webservice really the solution?
@kvschwartz
You would not see the button on your own members directory listing. Have you tried creating a test user and logging in to see if the button is there? I am for hire if you need help and you can contact me here if you have a budget to work with.
@cpagan2000 thanks SO much for coming back and posting that code! I have literally searched for hours to try and fix my problem that my site, which has been running over a year spam free, all of a sudden was getting SLAMMED with spam registrations because BuddyPress hijacked my registration page and I couldn’t figure out how to make it stop.
For anyone else who finds this thread, you have to create the bp-custom.php file and put it in your wp-content/plugins folder (contrary to all the other information out there on the web – – SO CONFUSING!!) I tried to put in in my functions.php and it just wouldn’t work. You can find more information on customizing BuddyPress by following the link above that @bp-help posted above.
This information should really be easily accessible. No one should ever have to search this hard to fix this type of issue. That is why I made a point to come back and thank pagan and add the missing info that I had to track down to fully understand the situation.
No what you are describing having started is a theme compat approach renaming page.php to buddypress.php ( that can be located for neatness in /buddypress/ or /community/; mercim’s post directly related to using the now older bp-default theme files copied over now you have started on theme compat stick with it, your issue is going to be that the theme does something to mess up page.php BP needs that file to adhere to WP template principles you must have a proper loop with the_title() and the_content() tags in place
@kvschwartz
Don’t you think this would throw people off? You add friends by searching the members directory. How else would one determine if they want to be friends with this other person?
Answer to b) I have a plugin that will add data to the members directory.

I thought about offering it free but after further consideration I decided to offer it for a VERY reasonable price. Contact me here if you are interested in purchasing it:
Submit Comments, Tips or Tricks, or Job Inqueries
Thank you again for your posts and advice. It is very much appreciated.
I read more documentation and re-read your posts, and I have taken two steps so far, however I have hit a wall with what to do next.
Here is what I did:
1) Created a child theme following all instructions from the official WordPress Codex (https://codex.wordpress.org/Child_Themes), loaded the style.css file to my child theme’s directory, and successfully activated my child theme.
2) Made a copy of the parent theme’s “page.php” file and renamed it “buddypress.php” and placed it in my child theme’s directory.
For the next step, are you suggesting I only need to make some edits to the “buddypress.php” file until I achieve my desired results? I noticed in mercime’s post assisting the user in making the BP pages all have full width for my theme, that mercime recommended taking a copy of the “header.php” file and renaming it to “header-buddypress.php” as well as creating a new blank “sidebar-buddypress.php” file, and adding some code to each file. Do you think I would need to do something similar for my situation for having the right sidebar appear (versus having the pages be full width as mercime figured out?) Or would I only need to modify the one “buddypress.php” file to achieve my results?
Thank you again!
A partial solution is in the pipeline, although it hasn’t been added to core yet
https://buddypress.trac.wordpress.org/ticket/5042
If the user “second clicks” and they are logged in, they’ll be redirected away from the activation page. If they’re not logged in then they’ll see the activation key form thingy. Whilst not a full solution, it’s an improvement.
This is probably a very silly question, but. How do I edit the text above the registration form. The bit that reads: “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 have tried editing both of these files (which contain the text) but it didn’t work:
- wp-content\plugins\buddypress\bp-templates\bp-legacy\buddypress\members\register.php
- wp-content\plugins\buddypress\bp-themes\bp-default\registration\register.php
My general wordpress theme is a boilerplate, not sure if that makes a difference – very new to BuddyPress.
Thanks for any help.
Hi,
I have modify the @azchipka ‘s plugin.
It’s work !!!
<?php
/*
Plugin Name: TCH BP Posts On Profile
Plugin URI: http://azchipka.thechipkahouse.com/services/technology/development/wordpress-plugins
Description: Adds a tab to Buddy Press User Profile displaying the posts they have published.
Version: 0.1
Author: Avery Z Chipka
Author URI: http://azchipka.thechipkahouse.com
License: GPLv2 or later
*/
// Make sure we don't expose any info if called directly
if ( !function_exists( 'add_action' ) ) {
echo '404';
exit;
}
define('TCH_PostsOnProfilesVersion', '0.1');
define('TCH_PostsOnProfilesVersion_PLUGIN_URL', plugin_dir_url( __FILE__ ));
function my_setup_nav() {
global $bp;
bp_core_new_nav_item( array(
'name' => __( 'Outils', 'buddypress' ),
'slug' => 'mes-outils',
'position' => 75,
'screen_function' => 'mes_outils_lien',
'show_for_displayed_user' => true,
'default_subnav_slug' => 'mes-outils',
'item_css_id' => 'mes-outils'
) );
}
add_action( 'bp_setup_nav', 'my_setup_nav', 1000 );
function mes_outils_titre() {
echo 'Mes outils';
}
function mes_outils_contenu() {
locate_template( array( 'members/single/outils/loop-outils.php' ), true ) ?>
<?php echo "TEST"; ?>
<?php
}
function mes_outils_lien () {
add_action( 'bp_template_title', 'mes_outils_titre' );
add_action( 'bp_template_content', 'mes_outils_contenu' );
bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) );
}
?>
Thank you for your reply. Unfortunately my knowledge of php and wordpress APIs is not sufficient for this. I was hoping to have something to click on, or at least some code snippet.
Perhaps more people will find this feature useful, and someday it gets included in Buddypress.
I am trying to set up corporate buddypress site, and so far I have set up WordPress 3.6.1 with BuddyPress 1.8.1. I am using Active Directory Integration plugin for importing Active Directory users into WordPress. It also features the possibility to import AD attributes to WordPress user meta attributes, and I am successfully importing stuff like Job Title, Department, Phones etc. into WordPress user meta.
I would like to display those attributes automatically on users’ buddypress profile page. Is this a possibility? Thank you in advance.
just updated my last comment as you do have a choice to still follow older principles in building BP themes.
Okay sounds good. Thank you again!
So you couldn’t have been telling the theme to use sidebars on BP pages? It’s not BP aware, BP still works on the principle of a blank placeholder page with a name i.e ‘members’ but it renders that screen view via page.php if it doesn’t find other file names first (as outlined in the codex)
The template pack post is now outdated, don’t follow, you need to re-factor a file to handle BP screens, there are two codex articles currently dealing with theme compat use those for guidance, further ones may follow but will be generic in nature in that it’s difficult to give specific advice on a per theme basis.
Also be aware that all template pack plugin really did was copy over files to your theme and enqueue the scripts and styles, essentially it did very little from a developers point of view that they couldn’t do manually, you still have the option of copying files from bp-default theme to your child theme and sorting out the styles and scripts required in your own functions file, the templates then would be re-factored broadly along the lines that mercime outlined in that post, however we are trying to steer everyone towards theme compat as the norm now for either creating themes of creating child themes from parents.