@mercime @hnla @modemlooper Sorry I meant to post this in Creating and Extending. Could one of you move it there please? Thank you!
Sorry I forgot to mention I have tested it to work from WP 3.2.1 BP 1.5.1 through WP 3.5.1 BP 1.7 beta1 As long as your within this range it should work for you! Thanks!
@bphelp moved to Creating and Extending Forum per request
Hi @bphelp,
first I want to thank you for your plugin :).
I have one problem with it and I think it belongs to my theme and my not existing php-skills :). Perhaps you can help me? I was searching for a solution the last two days, but without success. So I will try my luck here.
I tried to activate the plugin over wordpress and in a second step I copied the needed code to my child themes functions.php, but I always get the following error:
Warning: Cannot modify header information – headers already sent by (output started at …/wp-content/themes/theme/design.php:2) in …/wp-includes/pluggable.php on line 876
I found some solutions for such errors, but nothing works for me.
Many thanks in advance
Greetings
@halfdan87 Sounds like you may have introduced some white-space when you copied the code. Make sure there is no white-space lines before or after the opening and closing PHP tags.
Good morning @bphelp,
thanks four your reply :). I checked if there is some white-space (you mean in the design.php am I right?). Here is the code of the design.php – I think the problem is, that the design.php starts with the following code:
<!doctype html>
<?php global $theLayout, $theHeader, $themePath, $theFooter, $body_color, $header_color, $footer_color;?>
<!–[if lt IE 7 ]> <html lang=”en” class=”no-js ie6″> <![endif]–>
<!–[if IE 7 ]> <html lang=”en” class=”no-js ie7″> <![endif]–>
<!–[if IE 8 ]> <html lang=”en” class=”no-js ie8″> <![endif]–>
<!–[if IE 9 ]> <html lang=”en” class=”no-js ie9″> <![endif]–>
<!–[if (gt IE 9)|!(IE)]><!–> <html class=”no-js” <?php language_attributes(); ?>> <!–<![endif]–>
<head>
<?php get_header(‘default’);?>
</head>
Do you think that’s the problem? If yes, do I have an chance to get a workaround with this?
Thank you
@halfdan87 I think your issue would be better suited by starting a new thread. I am fairly new at this myself and being that your issue seems to be more of a custom theme issue than to do with the plugin then it isn’t appropriate for this thread. In general I just think you would get more help by opening your own thread to see if more experienced folk can help sort your issue.
I updated this so if your using an older version download, upload, and activate it. It fixes a bug but I don’t feel my skills or the plugin is polished enough yet to submit it to the WP Repo. Still works decent though.
https://github.com/bphelp/private_community_for_bp
@bphelp
Hi dear, I successfully installed your private community for bp and I edited
private_community_for_bp-master/private-community-for-bp.php changing ‘test’ with the name of the page I want to be public.
I cannot figure out how to put more pages available for generic users.
I tried to copy this string
$bphelp_my_unblocked_pages = ‘page_name’;
many times changing the name of the page each time, but it always works only with the last page.
Can you please tell me how to put more pages?
Many many thanks,
Gabriele
@profc
Hi, sorry so late for getting back to you. My ISP has been strange today. I just updated github Repo to 2.1 to allow up to 10 unblocked public pages. As before read the readme.txt and follow the commented instructions in private-community-for-bp.php
https://github.com/bphelp/private_community_for_bp
Good plugin, works like a charm.. But it would be good if we could set which pages to get private because as of now, it blocks the whole site from outside visitors except the home page.
@bphelp Yeah, I tested it before commenting… Two pages is very little… My recommendation is to change it to get private only buddypress related pages, like the Private Buddypress plugin does.
Either way, your plugin has great potential. Great work! =)
@espellcaste
Thank you, and in future releases I will be using the comments I get to make adjustments but the thing is I will never be able to satisfy everyone’s requirements. You may want it that way but another user may like it the way it is, or want something totally different. I do appreciate the positive comment, I may bump it up to 5 unblocked pages but I plan to release a premium version so I am not certain yet but I do take everything into consideration. Thanks again! 🙂
@bphelp Agree, every project is different and maybe will need a different solution. Thanks for creating the plugin though. 🙂
Hi there,
So I’m using this plugin on WP 3.8 and BP1.9.1 and hsving a little difficulty. Tried a couple things here to make a private community before finally finding thi plugin that actually works – thanks.
Question : how do I have a public blog, with a private BP? I entered the blog as one of the unblocked pages, however the blog does not show up. Can you help?
Thanks.
Probably also worth noting that everything works fine for logged in users. We are specifically looking to have the blog accessible to non-logged in users, and the community private (only logged in members have access).