@3×7
Not a plugin but a tutorial. You may need to make adjustments depending on your theme but it is pretty straightforward if you know what parts need to be modified. I advise to only use this on a child theme as does the tutorial.
http://wpmu.org/how-to-build-a-facebook-style-members-only-wordpress-buddypress-site/
“BuddyPress does not work on installations where you give WordPress its own directory.”
@lwist That is true. Read the link about that specific WP install “in its own directory” https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory, it involves moving htaccess file and index.php from the subdirectory where WP is installed to domain root, among others. That scenario is totally different from installing WP in subdirectory e.g. example.com/buddypress and keeping every WP file in that subdirectory. There’s no conflict at all.
formatting on that section of the page is kind of messed up
Looks fine to me in FF. What browser are you using?
Hi @boydspace Nope I tried looking at files for the plugin @megainfo recommended but unfortunately I didn’t understand any of the code. I’m totally winging it when it comes to PHP.
I’m now trying to tackle it from another angle; the members directory doesn’t list any members without activity (e.g. have never logged in). So my new angle of attack is to remove the meta data holding when they last logged in if their current WordPress role is “bbp_blocked”.
I’ve created a new function called “clr_activity()” which I call in members-loop.php as such:
<?php while ( bp_members() ) : bp_the_member(); ?>
<?php clr_activity() ?>
The contents of the function which is held in my theme’s functions.php are:
function clr_activity() {
/********* GET USERS ROLE ********/
global $members_template;
$user_id = $members_template->member->id;
$user = new WP_User($user_id);
$user_role = array_keys($user->wp_capabilities,"1");
/********* IF USER BLOCKED CLEAR LAST ACTIVITY ********/
if ( $user_role[0] == 'bbp_blocked')
{
bp_update_user_meta( $user_id, 'last_activity', ' ' );
}
else
{
return 0;
}
}
Before I even try to implement this I hope someone with greater PHP knowledge can check I’m using bp_update_user_meta correctly; for one thing I’m not sure the empty quotes will give me the desired value in the user’s last_activity meta field. I want it to be clear as if the user has never logged in.
Doing that just returns me to the same page that I linked above.
I’m beginning to think that this is a bigger issue than buddypress – maybe the wordpress installation is configured incorrecty. This is a server that’s been around for a few years, so I’m going to install a virtual computer and run a fresh WP install from there. Maybe that’ll do it.
Sorry, new to wordpress as well – the adminbar, is that the bar at the top? Because I couldn’t find a way to delete accounts with that, either.
The BuddyPress Before Installing documentation says “BuddyPress does not work on installations where you give WordPress its own directory.” But the BuddyPress Installations section shows an example of WordPress installed in a subdirectory folder and where BuddyPress would be activated. Is that an example to stay away from? Or is it ok now? Also, the formatting on that section of the page is kind of messed up (main content overlaying the sidebar text).
Agreed – don’t worry, I feel the same about it all 🙂
For reference I was referring to https://wordpress.org/themes/firmasite
Also, could I take the Buddypress views from the Firmasite theme, update them to Bootstrap 3 and implement them in my theme? Do you think this would work?
FirmaSite
Of course I would be more than happy to share the outcome of my work back with you all.
I use latest versions of WordPress, BuddyPress and WP-FB-Autoconnect plugin. It works fine. User can register and login with their Facebook credentials. My problem is the auto-generated Buddypress register page. Basically I have two different user-stories. At this moment I haven’t decide for which one to go.
1. Allow registering only with Facebook credentials.
2. Allow both and give a choice on the register page – Facebook or form.
My question is how I can modify the register page. I guess I need to create a bp-custom.php and ad a filter. WP-FB-Autoconnect has a function jfb_output_facebook_btn() which can be used.
Thanks in advance
even w/ the twenty twelve theme my register page is blank. I’m running wordpress 3.5.2 and buddypress 1.8. any suggestions? my site is mpowerlive.com
@whitewolf1988 unfortunately, we do not have access to the premium theme nor your site to check if BP JS is enqueued or not, among other things. There are just too many variables to keep guessing what’s wrong with your theme’s compatibility with BP. The best place to to ask is at theme author’s site. If the theme author cannot help you at this time, think what would happen if theme development stops and you’re stuck with the theme and WordPress version it’s compatible with. Know that some premium themes lock you in so much so that if you try to change themes in the future, some content won’t show up anymore.
@jtm21 check out how unsal did it this WP theme compatible with BP and built on Bootstrap https://wordpress.org/themes/firmasite
Hi Roger,
Yes, you should try and follow how the BP components do it.
View the BP_Activity_Theme_Compat class:
https://buddypress.trac.wordpress.org/browser/tags/1.8/bp-activity/bp-activity-screens.php#L317
And try and emulate that in your plugin. This is only for theme compat. That does not handle bp-default.
If you want to support bp-default themes as well, let’s use the activity component again as an example.
Check out bp_activity_screen_index():
https://buddypress.trac.wordpress.org/browser/tags/1.8/bp-activity/bp-activity-screens.php#L13
That adds support for bp-default. In that example, bp_core_load_template() tells BuddyPress to look for a template called ‘activity/index.php’ in your theme’s directory. If such a template exists, it will load it up the bp-default way.
If it doesn’t, then BuddyPress will try and fallback to theme compat, which is where the BP_Activity_Theme_Compat class comes in for the activity component.
Hope that clarifies things.
@joerob101 have you tried Genesis Connect for BuddyPress? https://wordpress.org/plugins/genesis-connect-for-buddypress/
It helped me get BP running on a Genesis subtheme.
Hi guys
I’m in the process of writing the spec for a new project that will be using Buddypress 1.8.
I have a WordPress starter theme of my own, built with Bootstrap 3.0 (RC1 right now), upon which the whole site will be built.
We’d like to integrate BP 1.8 into the new site, however instead of writing a bunch of CSS to make the BP pages look like the rest of the site, I’d like to change the layout files of BuddyPress to use Bootstrap’s HTML syntax therefore inheriting the styles and layouts of the whole theme automatically.
My question is, how to best approach this:
1 – Should I copy all the files from /bp-templates/bp-legacy/buddypress into my own theme’s /themeroot/buddypress and modify from there?
2 – Should I override only the files I need, by copying them into my theme and obeying the theme hirearchy?
3 – Is there a better way?
Thanks very much in advance for any help or tips!
Thanks man.
It looks like it’s working 🙂
I used this website to convert the po file to mo
http://konstruktors.com/blog/wordpress/3627-convert-po-mo-files-online/
Good luck everybody.
Thanks for ur reply!
how can I activate twenty twelve theme? and activating the theme will it cause to lose any data in the website?
knowing that I am using Pravda – Retina Responsive WordPress Blog Theme
ty
hi there,
here the page with the issue
http://www.plansystem.com.au/workstations/
standard word press page, but the buddy press states :
“Each BuddyPress Component needs its own WordPress page. The following WordPress Pages have more than one component associated with them: Workstations”
Thanks
@bao_plansystem
Please be more specific. Is this a BuddyPress page or just a standard WordPress page that is missing content? Also give as much detail as you can about your install.
@junithorn Site url is good. I see that you’re still on BP 1.7.2 I’m seeing the old http://…/buddypress//bp-themes/bp-default/_inc/global.js?ver=20110818′ in source code of your site while you should be getting BP 1.7.2’s http://…/buddypress/bp-templates/bp-legacy/js/buddypress.js enqueued in your WordPress theme. Did you hardcode the link to global.js?
WordPress 3.5.2
BuddyPress 1.8
I finally got my theme to work without the template pack but I am having one issue. I am using the BuddyPress Group Tags plugin which adds the tags at the top of the group directory list and once clicked it refreshes and filters the list below(ajax I think). This worked great with the template pack but now without it when I click a tag it just goes to a 404 page. It appears the ajax does not run at all.
I am trying to wrap my head around what was in the template pack that would have made it work. Something I did see in one of the group tags files was functions for javascript and ajax calling the groups-loop.php.
// load the javascript for the group tag clicks to work
function gtags_enqueue() {
wp_enqueue_script('gtags=group-tags', WP_PLUGIN_URL.'/buddypress-group-tags/group-tags.js', array('jquery') );
load_plugin_textdomain( 'gtags', false, dirname( plugin_basename( __FILE__ ) ).'/lang' );
}
add_action('init', 'gtags_enqueue');
//add css
function gtags_header() {
echo '<link rel="stylesheet" type="text/css" href="'.WP_PLUGIN_URL.'/buddypress-group-tags/group-tags.css" media="screen" />'."\n";
}
add_action('wp_head', 'gtags_header');
// this catches the ajax call, and loads the groups template
function gtags_ajax() {
locate_template( array( "groups/groups-loop.php" ), true );
die;
}
Maybe some of this is outdated? I am just looking for a little help to get pointed in the right direction.
Alright, I figured out what was braking the theme! Because I was turning off the friends feature since I’m going use BuddyPress Follow , one of the components in the header that called for pending friends request must have some how messed up things. Which when you think about it makes sense, since the header was the only thing that was working.
Many thanks for the help anyway @bphelp and @meg@info!
When I create a new blog post (wp-post) in the wordpress admin area and publish it, the post does not show up in the buddypress avtivity stream. Is there a setting i need to change or is this default? I have a plugin called event manager which creates custom posts, and they show up in the activity stream, therefore I think it is odd that the original posts doesnt show.
Also, is there a way to include wp-post comments in the activity stream?