I am having this exact same problem on a brand new WP/BP site.
Specs
1. Which version of WPMU are you running?
I am using regular WP 3.0
2. Did you install WPMU as a directory or subdomain install?
Root directory
3. If a directory install, is it in root or in a subdirectory?
Root
4. Did you upgraded from a previous version of WPMU? If so, from which version?
Was a previous version install via Fantastico on cPanel, upgraded to 3.0 before BuddyPress was installed
5. Was WPMU functioning properly before installing/upgrading BuddyPress?
Not sure
6. Which version of BuddyPress (BP) are you running?
Version 1.2.5.2
7. Did you upgraded from a previous version of BP? If so, from which version?
No
8. Do you have any plugins other than BuddyPress installed and activated?
Yes:
Welcome Pack Version 2.1
Twitter Goodies Version 3.9.0
Tweetstream Version 1.4
oEmbed for BuddyPress Version 0.52
Invite Anyone Version 0.6.4
Import from Ning Version 1.1
Facestream Version 1.1
Contact Form 7 Version 2.2.1
BuddyPress Usernames Only Version 0.58
BuddyPress Profile Privacy Version 0.2
BuddyPress Private Messages for Followers Only Version 1.0
BuddyPress Like Version 0.0.7
BuddyPress Group Tags Version 1.2.2
BuddyPress Group Email Subscription Version 2.5
BuddyPress Forum Topic Mover Version 1.0.0
BuddyPress Follow Version 1.0
BuddyPress Album+ Version 0.1.7
BP Profile Search Version 1.0
BP Group Management Version 0.4
BP-NotificationWidget Version 1.4
9. Are you using the standard BuddyPress themes or customized themes?
Standard BP Theme BuddyPress Default 1.2.5.2
10. Have you modified the core files in any way?
No
11. Do you have any custom functions in bp-custom.php?
I do not think so.
12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?
I ran the bbPress installer that came with BuddyPress
13. Please provide a list of any errors in your server’s log files.
[Thu Jul 08 01:43:12 2010] [error] [client 99.232.211.136] PHP Warning: Cannot modify header information – headers already sent by (output started at /home/wwwnatf/public_html/site/wp-admin/includes/misc.php:133) in /home/wwwnatf/public_html/site/wp-includes/pluggable.php on line 890, referer: http://natfriends.com/site/wp-admin/options-general.php
[Thu Jul 08 01:43:12 2010] [error] [client 99.232.211.136] PHP Warning: is_writable() [function.is-writable]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/wwwnatf:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/wwwnatf/public_html/site/wp-admin/includes/misc.php on line 133, referer: http://natfriends.com/site/wp-admin/options-general.php
[Wed Jul 07 23:53:55 2010] [error] [client 99.232.211.136] PHP Warning: Invalid argument supplied for foreach() in /home/wwwnatf/public_html/site/wp-content/plugins/wordpress-shout-box-chat/chat.php on line 38, referer: http://natfriends.com/site/
[Wed Jul 07 23:53:55 2010] [error] [client 99.232.211.136] PHP Warning: file_put_contents(history/20100707) [function.file-put-contents]: failed to open stream: Permission denied in /home/wwwnatf/public_html/site/wp-content/plugins/wordpress-shout-box-chat/chat.php on line 23, referer: http://natfriends.com/site/
[Wed Jul 07 23:53:52 2010] [error] [client 99.232.211.136] PHP Warning: Invalid argument supplied for foreach() in /home/wwwnatf/public_html/site/wp-content/plugins/wordpress-shout-box-chat/chat.php on line 38, referer: http://natfriends.com/site/
[Wed Jul 07 23:53:52 2010] [error] [client 99.232.211.136] PHP Warning: file_put_contents(history/20100707) [function.file-put-contents]: failed to open stream: Permission denied in /home/wwwnatf/public_html/site/wp-content/plugins/wordpress-shout-box-chat/chat.php on line 23, referer: http://natfriends.com/site/
[Wed Jul 07 23:47:55 2010] [error] [client 99.232.211.136] PHP Warning: chmod() [function.chmod]: Operation not permitted in /home/wwwnatf/public_html/site/wp-content/plugins/phpfreechat/src/pfctools.php on line 180, referer: http://natfriends.com/site/
[Wed Jul 07 23:47:55 2010] [error] [client 99.232.211.136] PHP Warning: copy(/home/wwwnatf/public_html/site/wp-content/plugins/phpfreechat/src/../data/public/themes/zilveer/smileys/emoticon_unhappy.png) [function.copy]: failed to open stream: Permission denied in /home/wwwnatf/public_html/site/wp-content/plugins/phpfreechat/src/pfctools.php on line 179, referer: http://natfriends.com/site/
[Wed Jul 07 23:47:55 2010] [error] [client 99.232.211.136] PHP Warning: chmod() [function.chmod]: Operation not permitted in /home/wwwnatf/public_html/site/wp-content/plugins/phpfreechat/src/pfctools.php on line 180, referer: http://natfriends.com/site/
[Wed Jul 07 23:47:55 2010] [error] [client 99.232.211.136] PHP Warning: copy(/home/wwwnatf/public_html/site/wp-content/plugins/phpfreechat/src/../data/public/themes/zilveer/smileys/eusa_whistle.gif) [function.copy]: failed to open stream: Permission denied in /home/wwwnatf/public_html/site/wp-content/plugins/phpfreechat/src/pfctools.php on line 179, referer: http://natfriends.com/site/
I moved files in site to root…..
Hosting company:
Total Choice Hosting
something like: (just taken from bp-core.php line 397)
is_null( $bp->displayed_user->id ) && $bp->current_component == BP_MEMBERS_SLUG && $bp->is_directory
Another note. This code is in my bp_custom.php file. I’d like to keep it there.
Okay, I’ve got a question.
I’ve read pretty much every post and page on the internet pertaining to making Buddypress private. I’ve tried a bunch of things, and I’ve even had some success.
What I’m trying to accomplish is to make every single aspect of a Buddypress install private, while keeping the WP Pages & Posts open to guests and visitors.
/**** Private Community****/
function bp_guest_redirect() {
global $bp;
if ( bp_is_profile_component() || bp_is_activity_component() || bp_is_blogs_component() || bp_is_messages_component() || bp_is_friends_component() || bp_is_groups_component() || bp_is_settings_component() || bp_is_member() || bp_is_directory() ) { // enter the slug or component conditional here
if (!is_user_logged_in() ){ // not logged in user
bp_core_redirect( $bp->root_domain .'/please-log-in'); // user will be redirect to any link to want
}
}
}
add_filter('get_header','bp_guest_redirect',1);
This code is supposed to redirect a user to my “/please-log-in” page whenever a guest tries to access any part of the Buddypress section of the site. It does work on almost every part of Buddypress… except the Members Directory. I need to know what I need to add to my if statement so the redirect works for the Member’s directory as well. Thanks in advance.
Thanks for you help.
correct trac ticket (one listed above was for activity time_since)
https://trac.buddypress.org/ticket/2504
confirmed – i have the same issue now (7 hours ago)
messages_new_message uses ‘date_sent’ => time() instead of gmdate since the templatetag uses bp_core_time_since
actually a few other oddities where notices use time() as well. (but that actually calls bp_format_time in the templatetag)
@Pisanojm @paulhastings0 I’m getting the same thing. Wp 3.0 BP 1.2.5
It is – in the admin backend, you can choose whether or not each component is enabled.
We run a fan site for a sporting team…I’m just wondering if it would be possible to make members with names of players and put them in a private closed group and then link those members to certain posts and such which are relevant to them?
Our client wants to have social intranet and Buddypress fits the bill (well minus the lack of calendar and that buggy bbPress issue). However they want to disable friends lists and private messaging. Is this possible? Yeah, it’ll be a really un-social social intranet
@paulhastings0 I added annother of my experiences to this trac ticket after trying the diff. patch code on 1.2.5.2 WP 3.0 ….
https://trac.buddypress.org/ticket/2203
@pisanojm, Yes, since upgrading to WP 3.0 the 5 hour time-lag issue reappeared. Since that time we’ve also upgraded BP to 1.2.5 and we still have the issue.
@rossgrant
Since the update, I’m not getting the sometime ago… it now says 0 seconds ago when I post are you using WP 3.0 and 1.2.5.2?
@rossagrant There was a trac. supposed to be fixed for this…
https://trac.buddypress.org/ticket/2405
If it’s still not working maybe others can confirm and the Ticket should be re-opened… Anyone else getting either of these two problems?
@pisanojm I have just updated to BP 1.2.5.2 and although I don’t get a 4 or 5 hours issue I do get a general, ‘sent sometime ago’ time on PM’s that I have only just sent. The time stamp is correct on my inbox page but when i open the message it just states, ‘sent sometime ago’.
Anyone else getting this?
I seem to be having the 5 hour sent ago issues again on PM
Depending on whether you’ve turned on the components at Dashboard > BuddyPress > Component Setup, BP provides extended user profiles, an interactive activity stream, private messaging, user-creatable groups (with integrated activity streams, forums, and other functionality available via plugins), blog tracking, friend connections, and member/group directories. The toolbar at the top of the screen is one of the methods built into the UI for accessing these features. If you’re using a BP-compatible theme like the bundled bp-default, then you should also see tabs for Members, Groups, Forums etc near the top of your screen.
testbp.org is one place to see BP being used (for test purposes, obviously, but you can get a sense of the organization).
is_feed() is what you’re looking for. However, I would use travel-junkie’s code as it’s cleaner:
https://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/how-to-make-a-private-community/?topic_page=2&num=15#post-44616
Modify this line:
if( bp_is_register_page() || bp_is_activation_page() )
with:
if( bp_is_register_page() || bp_is_activation_page() || is_feed() )
Seems like I could have added some kind of IF ~whatever the FEED function~ RETURN to the Registered Users Only 2 plugin and achieved the same thing… but I don’t know what the “whatever the FEED function” is to add… @r-a-y
@r-a-y I used your code suggestion and some that I found in Restrict User 2 With Viper’s original Restrict User Plugin
Found here http://www.viper007bond.com/wordpress-plugins/registered-users-only/
because I wanted the site to be restricted to registered users only… still allow access to the login/activiate page and ALSO allow access to the feeds…
I ended up with this.
// Depending on conditions, run an authentication check
function MaybeRedirect() {
// If the user is logged in, then abort
if ( current_user_can(‘read’) ) return;
$settings = get_option( ‘registered-users-only’ );
// Feeds
if ( 1 == $settings && is_feed() ) return;
// This is a base array of pages that will be EXCLUDED from being blocked
if ($bp&&($bp->current_component == BP_REGISTER_SLUG ))//buddypress
return;
if ( bp_is_register_page() || bp_is_activation_page() || is_page(‘welcome’) ) //buddypress
return;
$this->exclusions = array(
‘wp-login.php’,
‘wp-signup.php’,
‘wp-register.php’,
‘wp-activate.php’,
‘wp-cron.php’, // Just incase
‘wp-trackback.php’,
‘wp-app.php’,
‘xmlrpc.php’,
);
It appears to be working… Do you have any thoughts on the above? Thanks
All forum postings — except those from private groups, are displayed in the site wide forum stream. So, your posting was visible for awhile. It just gets pushed down if there are no replies. I suggest keeping your discussions within that group’s forum.
just look at the core files bp-groups.php and the function groups_setup_nav()
from there you’ll see how bp sets the current access for most subnav items
look for this line -> // If this is a private or hidden group, does the user have access?
which is referenced on line 206/7 for the Forums subnav. What you can do is remove the subnav ( bp_core_remove_subnav_item ) then re-add with the param user_has_access calling some function to determine the access level for your given requirements. (hook your remove/re-add on the action groups_setup_nav )
“You can only update the groups you’re a member of.”
That’s the idea, one way to prevent spammers from messing with your group.
Do you mean you want to allow anyone to post status updates even in private (by invitation only) groups or only in public groups?
Can’t find anything about this just now, so if you know a quick answer or can point somewhere I’d be grateful.
I want to have public groups, sometimes with long posts in them, but stop the posts from appearing in the main activity stream to keep it tidy. Is there a simple way to do this for public groups, so they behave (in that respect) like private ones?
Edit; In fact, now I’m posting stuff in a group, it makes me wonder why the default behaviour is to spray group content all over the main activity stream. Surely it would make more sense to compartmentalise content?
Hello, I have a client using WordPress that wishes to have a member directory. They are an organization of professionals and so they wish to have a section on the front end of their site that lists all active organization members. Some of the features include:
Front-end:
– Membership application form
– Searchable, sortable paginated list of members
– Member profile pages
– Interface for members to edit their profiles
Back-end:
– List view of members (sortable, searchable, paginated)
– Approve/deny interface for newly submitted applications
– PayPal integration for yearly membership fees
So, basically I’m wondering if BuddyPress is an acceptable solution for this. We would want to hide/disable a signification portion of BuddyPress’s features, such as groups, forums, and private messaging.
Is it common to harness the power of BuddyPress for only some of its features or is it really only designed to be implemented as a full social networking solution a la facebook? If anyone could offer me some insight into this I would be appreciated! Thank you.