Search Results for 'buddypress'
-
Search Results
-
***Update**** The one that works for member profiles and groups at http://buddypress.org/forums/topic.php?id=481&replies=18#post-11886
I see there are some people looking for some basic privacy on their BP installs. I am working on one to protect all things off the member-theme, this one at least stops member pages from being viewed and if you are not logged in, sends you to the register page.
Copy the following and create a file called force-member-login.php and place in your /mu-plugins/ folder.
<?php
/*
Plugin Name: Force Member Login
Description: No one can see your member pages unless they are logged in.
Plugin URI: http://trentadams.ca
Author: Trent Adams
Author URI: http://trentadams.ca
Version: 0.1
*/
function force_member_login_init() {
global $bp, $is_member_page;
if ( $is_member_page ) {
if ( !is_user_logged_in() ) {
nocache_headers();
header("HTTP/1.1 302 Moved Temporarily");
header('Location: ' . get_settings('siteurl') . '/register');
header("Status: 302 Moved Temporarily");
exit();
}
}
}
add_action( 'init', 'force_member_login_init' );
?>Let me know if you have any corrections, additions or just plain bug fixes for it

Trent
What is the point of enabling a user’s ability to go to/modify their profile in the dashboard (where many more fields – 1st Name, last name, etc are avail) as BP seems to not make sue of and it could only serve to confuse the uninformed user.
***Updated June 3rd, 2009 and works with BB RC 1.0, BP 1.0, MU 2.7.1 *******
I notice that this forum thing is really not that easy for everyone to put in place and I had to do it several times myself to get it working properly. What worked on one server didn’t work as planned on another one. Strange, but I thought I would write this to see if it helps anyone out.
Integration Assumptions:
First off, this assumes that you are using SVN of bbPress of at LEAST 1.0 alpha 4 and nothing less. Do not try this on bbPress alpha 7 when it is released! No more than alpha 6. Buddypress beta or SVN as well. I also haven’t tested this without at least having bbPress using the WPMU user tables for integration. You also NEED to be running WPMU 2.7+ SVN or WPMU 2.7 Branch until the release of WPMU 2.7.1 as it doesn’t work on earlier versions of WPMU.
*** these are requirements for running the bp-forums integration, not buddypress in general! ***
bbPress Side (First):
1) you have bbpress installed and a new user created on the “bbPress” side which you granted “administrator” rights by the keymaster
2) you copy the “buddypress-enable.php” plugin out of the bp-forums folders and copy it into your /my-plugins/ folder (create if it doesn’t exist) so it is /my-plugins/buddypress-enable.php ****People ask about /bb-plugins/ versus /my-plugins/ and put it in /my-plugins/
3) Enable the plugin through your bbPress administration side for plugins
4) Edit “settings” to enable xmlrpc and pingbacks (both)
5) edit your bb-config.php and just before the closing php call at the bottom of the page put:
$bb->bb_xmlrpc_allow_user_switching = true;
buddypress Side (Second):
6) Go into your main blog dashboard as the “site-admin” and go to the “bbPress Forums” page. Put in the URL of your forum like http://yoursite.com/forums/ and make sure you have the ending slash on that one.
7) Put in the user that you created in step 1 with the bbPress “administration” rights and their password. I never changed the password, just used the random one it sent me, but it is up to you. I usually save it a couple of times to ensure it was entered due to a refreshing bug at time of writing this.
Go to one of your groups (new or existing) and go to the group admin page. Make sure “discussion” is turned off. If it was already off that is fine, but if it was enabled already, turn it off9) Turn the group “discussion” back on and then physically go to your forums URL and see if it created the forum on the bbPress side without trying to create a new topic on the buddypress side.
If you have the new forum now, then you should skip to step 10. If not, go through steps 1-9 again and make sure you got all the steps perfectly.
10) If you have made it this far, it will work, but I like to create the first post in the new forum on the bbPress side and then see if it shows up in the buddypress group forum. Old habit, but for odd circumstance, it seems to work best for me. If it works, try creating a new topic on the group you have working.
***Don’t forget that you have to do step 8 for every group that was created before you enabled the forum integration! Very important***
Other notes:
1) The refreshing bug in step 7 killed it for me a couple of times and I made sure I saved it at least 2 times.
2) Forgetting the line in bb-config.php killed it for me a couple of times as well.
3) In one install I had to change the bbPress “user” with administration rights password and on the bbPress side and then completing step 7 again.
4) I also found that through “previous testing” I had some bp_groupmeta entries that were screwing things up with duplicates for the same forum in the database. Shouldn’t happen to anyone else, but that screwed some things up for me as well.
In terms of having buddypress and bbPress working together, I am sure it works with buddypress on one server and bbPress on another since it works through the xmlrpc module which makes it very powerful.
Let me know if I am out to lunch as well or you have anything else to add!
Trent
Topic: User Tutorials and invites
I have my buddypress installed on http://www.theodoremedia.com and it is getting rave reviews! I have been requested to provide tutorials and a way to invite others to the site by a few of my users. Can you help us out?
I am sure all your users would benefit!
Love buddypress thus far!
Truly Grizzly!
Thanks!
Chad Everson
After installing the new BuddyPress I get this problem:
“Previous entries” links point to http://www.domain./blog/blog/2 instead of http://www.domain.com/blog/2
I can’t say for sure if this problem is caused by BP but seems so.
Can anybody help me with this?
Just wanted to share the wealth and not sure if this is posted anywhere. If your running the latest trunk of WPMu, and want to get forums functioning properly follow the instructions closely from this page http://trac.buddypress.org/browser/trunk/bp-forums/installation-readme.txt and be sure not to enable caching in the WP Admin settings, it will only allow one post to display in your forums so be sure that is left unchecked.
)..
