Skip to:
Content
Pages
Categories
Search
Top
Bottom

New Private Community Plugin For BP

  • Avatar of bp-help
    bp-help
    Participant

    @bphelp

    Actually it is just some hacks I threw together and packaged it as a plugin. Being as I am new to this and not that great with plugins I am asking for someone with more skills to take what I threw together and add some dashboard options as you can read in the notes section in the readme.txt file. As is it blocks access to all BP pages to non logged in users and redirects them to register. I have asked @sbrajesh ‘s help as well. I don’t want any credit on this because I am still a noob and haven’t earned the right to get credit yet. I just would like someone with more experience to take it and add dashboard settings or whatever to make a viable private community for bp plugin to help the BP community. The link to it is below. Thank you and I hope someone can do something cool with it.

    https://github.com/bphelp/private_community_for_bp

Viewing 17 replies - 1 through 17 (of 17 total)
  • Avatar of bp-help
    bp-help
    Participant

    @bphelp

    @mercime @hnla @modemlooper Sorry I meant to post this in Creating and Extending. Could one of you move it there please? Thank you!

    Avatar of bp-help
    bp-help
    Participant

    @bphelp

    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!

    Avatar of @mercime
    @mercime
    Keymaster

    @mercime

    @bphelp moved to Creating and Extending Forum per request

    Avatar of Halfdan87
    Halfdan87
    Participant

    @halfdan87

    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

    Avatar of bp-help
    bp-help
    Participant

    @bphelp

    @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.

    Avatar of Halfdan87
    Halfdan87
    Participant

    @halfdan87

    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

    Avatar of bp-help
    bp-help
    Participant

    @bphelp

    @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.

    Avatar of bp-help
    bp-help
    Participant

    @bphelp

    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

    Avatar of ProfC
    ProfC
    Participant

    @profc

    @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

    Avatar of bp-help
    bp-help
    Participant

    @bphelp

    @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

    Avatar of Renato Alves
    Renato Alves
    Participant

    @espellcaste

    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.

    Avatar of bp-help
    bp-help
    Participant

    @bphelp

    @espellcaste
    There is a new version that is totally refactored on the repo.

    http://wordpress.org/plugins/private-community-for-bp-lite/

    Avatar of Renato Alves
    Renato Alves
    Participant

    @espellcaste

    @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! =)

    Avatar of bp-help
    bp-help
    Participant

    @bphelp

    @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! :-)

    Avatar of Renato Alves
    Renato Alves
    Participant

    @espellcaste

    @bphelp Agree, every project is different and maybe will need a different solution. Thanks for creating the plugin though. :)

    Avatar of talon42
    talon42
    Participant

    @talon42

    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.

    Avatar of talon42
    talon42
    Participant

    @talon42

    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).

Viewing 17 replies - 1 through 17 (of 17 total)

You must be logged in to reply to this topic.