@bphelp I missed my greater than sign in starting out the page. Now your code doesn’t show, but when I log out, i get an error across the top of the screen instead:
Warning: Cannot modify header information – headers already sent by (output started at /home/*****/public_html/inlandcoder/wp-content/themes/frisco-for-buddypress/members/index.php:12) in /home/*****/public_html/inlandcoder/wp-includes/pluggable.php on line 876
@bphelp I tried this and when I refreshed my site, all of your code appears below the admin bar on my site — above my header.
I created a new page and named it “new page here.”
Here’s your code with my info:
function bp_guest_redirect() {
global $bp; if ( bp_is_activity_component() || bp_is_groups_component() /*|| bbp_is_single_forum()*/ || bp_is_forums_component() || bp_is_blogs_component() || bp_is_page( BP_MEMBERS_SLUG ) ) { // enter the slug or component conditional here if(!is_user_logged_in()) { // not logged in user wp_redirect( get_option(‘siteurl’) . ‘/new-page-here’ ); } // user will be redirect to any link to want } } add_filter(‘get_header’,’bp_guest_redirect’,1);
Am I to insert my URL as well? I tried with and without changing it and that didn’t work either.
Kevin
It stripped the code again. Just place this between opening and closing php tags in the bp-custom.php file:
`
function bp_guest_redirect() {
global $bp;
if ( bp_is_activity_component() || bp_is_groups_component() /*|| bbp_is_single_forum()*/ || bp_is_forums_component() || bp_is_blogs_component() || bp_is_page( BP_MEMBERS_SLUG ) ) {
// enter the slug or component conditional here
if(!is_user_logged_in()) { // not logged in user
wp_redirect( get_option(‘siteurl’) . ‘/register’ );
} // user will be redirect to any link to want
}
}
add_filter(‘get_header’,’bp_guest_redirect’,1);
`
the above reply stripped out the code so hopefully this will print out!
`
`
create a file named bp-custom.php that you will then place in yoursite/wp-content/plugins folder after you paste the following code in it:
`
`
Just change the /register in the line :
wp_redirect( get_option(‘siteurl’) . ‘/register’ );
to the page you want the logged out user to be directed too!
I found this somewhere on the net so props to whomever coded it!
Click blog above, download the beta, install and enjoy any WordPress theme as your BuddyPress theme
https://wordpress.org/extend/plugins/buddypress-media/ is a plugin for uploading lots of media. I only have a small amount of experience with it but you may want to give it a try. I just hope you have lots of server space though because doing this can make your site massive in size.
go to wordpress.org/themes in the search field type buddypress and click search themes button. There is 9 themes there.
Hello,
I simply want to know where to find a good buddypress theme? When I search “buddypress themes” in the backend of my wordpress site (in the appearance ->themes section) it only gives me a choice of like 4 themes. And the themes section on this Buddypress site (buddypress.org) is down. Do I have to wait until this buddypress themes section is back up and running to get a different theme? Are there other sites to downlaod a buddypress theme?
Also is there a good video tutorial out there that shows you how to work and design a buddypress site?
Hi all,
I’m the developer of FunCaptcha and we’ve just updated it to include full BuddyPress support. We’ve tested it on the latest version of BuddyPress and WordPress, as well as various earlier releases.
Just wanted to let you know that CAPTCHAs don’t all need to be painful! Users complete our FunCaptcha faster than other CAPTCHAs, with fewer frustrating failures and no typing. They work on all browsers and mobile devices, using HTML5 with a fallback to Flash. Visually impaired users can complete an audio challenge.
We have big plans for updates, new games and further additions to FunCaptcha. I’d love to hear from you guys what you want in it, how we can improve it for you, and help make your BuddyPress and FunCaptcha experience as enjoyable as possible!Please check us out!
Thanks,
Kevin Gosschalk
info@swipeads.co
When navigating to the “Discussion Forums” WordPress-Page (BP Groups Forum used) only WordPress Admins see the threads for Private Group Forums they are members in. Normal Users only see the threads from Public Groups, but not from Private Groups they are members of.
is this a bug in 1.6.2?
I would perhaps wait, the proposed and committed patch was re-written by a later one reverting the change due to other issues arising from first.
For reference the green line is the addition or changed line and the red the removed or original version:
https://buddypress.trac.wordpress.org/changeset/6724
@supernaturalbrews they’re working on it https://buddypress.trac.wordpress.org/ticket/4771 you can apply patch noted there in the meantime.
Revisiting this thread with a new issue!
My function has been working well, except I’ve recently discovered a small flaw: if an administrator deletes a user, then the user receives an email informing him or her that his activity has been removed for each and every thing he or she has ever posted! For a prolific user, that could be hundreds or thousands of emails. Not good!
This is by virtue of the user-delete process — it appears as though BuddyPress deletes each activity individually, and then WordPress deletes the user account.
For reference, my function is:
`function pa_send_notification_email( $args ) {
// If current user deletes his/her own activity, do nothing
// otherwise construct and send email
if ($args[‘user_id’] != bp_loggedin_user_id()) {
$ud = get_userdata($args[‘user_id’]);
$to = $ud->user_email;
// Build the message
if (($to) && ($to != ”)) {
$subject = ‘Your post has been removed’;
$message = ‘A moderator has removed your post. If you want to know why, please forward this message to the moderation team.
‘;
$message .= ‘Removed content:
‘;
global $wpdb;
$message .= wpautop( $wpdb->get_var( $wpdb->prepare( “SELECT content FROM “.$wpdb->prefix.”bp_activity WHERE id = %d;”, $args[‘id’] ) ) );
$message .= ”;
//Send email
wp_mail($to, $subject, $message, ‘content-type: text/html’ );
}
}
}
add_action( ‘bp_before_activity_delete’, ‘pa_send_notification_email’);`
So what I think I need is an extra check in my function, to make sure we are not about to delete the user. I’ve thought about a secondary function to hook into the `delete_user` action to set a global variable, and then checking for this variable in my `pa_send_notification_email()` function.
But I am not sure how to go about this. Does anyone have any thoughts?
@bphelp You’re welcome. Are you referring to this Simplify theme? https://wordpress.org/extend/themes/simplify If so, might I suggest posting at theme author’s support forum at https://wordpress.org/support/theme/simplify and ask if he/she could take the time to resolve it so that more people may be able use the theme with BuddyPress.
@supernaturalbrews BP 1.7 beta 1 does work with all themes unless the theme author rewrites the templating system to his/her proprietary method.
Having said that, I just checked out and installed https://wordpress.org/extend/themes/triton-lite in test installation and it’s aligned and working out beautifully. It’s definitely not what you have in your site right now.
I suspect that at one time or another, you used the BP Template Pack plugin and had transferred BP template folders during the Appearance > BP Compatibility process. Make a backup of your theme folder in server, then in Appearance > Themes, delete the whole folder and install a clean download of the Triton Lite theme.
@monray67 Please post your support question at plugin author’s forum at https://wordpress.org/support/plugin/buddypress-sliding-login-panel Check out the threads for possible solutions offered by other users there.
1. spam messages!
I really like this plugin for managing spam registrations and comments:
https://wordpress.org/extend/plugins/stop-spammer-registrations-plugin/
Signing up for an Akismet key will also help with spam comments, as would requiring someone to create an account and login before doing so (in Settings: Discussion).
2. am using bp on my 3rd blog. somehow users can not delete their’s account.
You can enable this in: Settings: BuddyPress: Settings (tab): Allow registered members to delete their own accounts
@djpaul not sure if i am high jacking this thread but can you please confirm, in my group forums when i click on subscribe or add to favorite i get redirected to the groups page when i use the buddypress theme. When i use canvas woo theme or any other themeforest theme i get 404 error for the same action.
I expect to stay on the forum thread even after i click subscribe or add to favorite ….is this a bug in 1.7 and yes i see the same behavior of redirecting to groups page in 1.6.4 too. I am using latest version of bbpress and wordpress
@pixelscode If you want a Multisite installation, you need to create a network – https://codex.wordpress.org/Create_A_Network
Please make sure you’ve got your multisite installation working first before you install BuddyPress – https://codex.buddypress.org/user/before-installing/
If you have any issues with your multisite install, resolve it first at https://wordpress.org/support/forum/multisite
Right, short of employing a NASA scientist or digging up Einstein and Sir Isaac Newton and merging both of their DNA strands into a super gene and cloning that and waiting 18 years for them to mature into one of the greatest minds ever developed – how on god’s earth do I do this???
🙂
There doesn’t seem to be a simple clear way of doing this. I’m not a developer, I am a front-end designer. I can write html/css, and I can wireframe the hell out of an application, but putting that into practice with some elements of WordPress are sending me around the twist.
I’m not angry or irate I just think it would benefit the planet if there was some kind of clear method on how do do this. Step by step instructions.
Explain it to me like I am not of this blue planet.
If this can work for me, the ripple effect will be felt all over the world, and we can all relax, smoke a pipe, enjoy some salty pork and smile. 🙂
Still having problems with this.
i made a new wordpress site to try get it going, but same issues.
to note, im using wamp and my rewrite module is on and working.
1. changed permalinks to day and name.
2. i install buddy press with default settings
[IMG]http://i.imgur.com/d0rBOL7.png[/IMG]
[IMG]http://i.imgur.com/viU2G03.png[/IMG]
3. installation run to the end with no problem
4. view the page and all the pages break
-changing the permalinks to default or using custom to add index.php fixes those pages
but buddy presses features wont work then.
[IMG]http://i.imgur.com/8zH9Vi7.png[/IMG]
the normal navigation menu works (default or custom permalinks)
[IMG]http://i.imgur.com/ko6p2sa.png[/IMG]
everything from the drop down menu does not.
[IMG]http://i.imgur.com/rJn1IwT.png[/IMG]
[IMG]http://i.imgur.com/l6bP3vS.png[/IMG]
looked at the codex for help on permalinks but im just not understanding it or just cannot get it working.
Anonymous User 7600456Inactive
Hooray! I worked it out in the end.
Here is how I did it:
1, If you don’t already have one create a blank page in ‘/wp-content/plugins’ called bp-custom.php (see this page for more info)
2, Paste this code into bp-custom.php: http://pastebin.com/Sk56iQQU
For reference these are the pages that helped me work it out:
https://buddypress.trac.wordpress.org/ticket/4784
https://buddypress.trac.wordpress.org/ticket/4106
https://codex.buddypress.org/developer/customizing/bp-custom-php/
Edit: I can’t get the ‘code’ tags to work. I have put it in a pastebin. Mods feel free to edit this to work and delete this note and the link to pastebin.
I have the same problem on the same setup and have conducted the same test.
Here’s a link to a ticket about this
https://buddypress.trac.wordpress.org/ticket/4801
I thought it was a problem with W3TC as this has had some instabilities over the last few releases, but not so.
I suspect that the cause of this is also the cause of Activity stream updates not working on my site.
Pretty frustrating!
Can’t help but wonder if this has something to do with the ajax hardening introduced in 1.6.4 as mentioned in the release announcement
https://buddypress.org/support/topic/buddypress-1-6-4-released/
Am sooo looking forward to 1.7 🙂
Cheers
Mort3n