Skip to:
Content
Pages
Categories
Search
Top
Bottom

Privacy????

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

    @aces

    Which plugins are you referring to and what sort of privacy are you looking for ?

    Avatar of Mary Jane
    Mary Jane
    Member

    @jasonbrodbeckcom

    well basicly any privacy, thats the basic reason for being friends because the may be posts or whatever that you dont want other people to see, also is there gonna be a block feature?

    Avatar of aces
    aces
    Participant

    @aces

    I’m using the walled garden technique for some privacy and have adapted it for bp 1.5.* !

    This is based on http://buddypress.org/community/groups/how-to-and-troubleshooting/forum/topic/members-privacy-how-can-i-hide-members-profiles?topic_page=2&num=15#post-102784 and needs to go in a bp-custom.php file…

    `
    function sh_walled_garden()
    {
    global $bp;
    if( bp_is_register_page() || bp_is_activation_page() || bp_is_page( BP_FORUMS_SLUG ) || bp_is_page( BP_GROUPS_SLUG ) )
    return;

    if( ! bp_is_blog_page() && ! is_user_logged_in() )
    bp_core_redirect( bp_get_signup_page() );
    }
    add_action( ‘wp_loaded’, ‘sh_walled_garden’ );
    `
    Originally add action was to get_header but now the bp template loads the header first so I had to move it…

    Before that one had to put a hook into the page template header to load the function – not sure which would now be best or if that hook is ok to use (It’s the only one i found that worked)?

    The above function hides members and activity from those not logged in but enables forums and groups for everyone – see variation here

    Avatar of Mary Jane
    Mary Jane
    Member

    @jasonbrodbeckcom

    placed that code in bp-custom and got Parse error: syntax error, unexpected T_STRING in /home/hvhamco1/public_html/jasonbrodbeck.com/wp-content/plugins/bp-custom.php on line 1

    Avatar of aces
    aces
    Participant

    @aces

    what was on line 1?

    it should have been `<?php` with nothing before it.

    The last line should probably be `?>` with nothing after it

    Avatar of Mary Jane
    Mary Jane
    Member

    @jasonbrodbeckcom

    works great thanks, can i redirect to a wordpress page insted of the register page? and also it removes the my friends column in the activity page, how can i get that back? thanks again

    Avatar of Mary Jane
    Mary Jane
    Member

    @jasonbrodbeckcom

    nvm my friends is still there

    Avatar of aces
    aces
    Participant

    @aces

    I have a page like http://www.example.com/contact-us/

    If I change
    `bp_core_redirect( bp_get_signup_page() );`
    to
    `bp_core_redirect( $bp->root_domain .’/’. ‘contact-us’ );`
    it redirects to that page….

    I haven’t tried it with other types of permalink settings….

    Avatar of Mary Jane
    Mary Jane
    Member

    @jasonbrodbeckcom

    that works great thanks, is there a way i can make a acception for the members page?

    Avatar of Mary Jane
    Mary Jane
    Member

    @jasonbrodbeckcom

    also im getting
    Warning: Cannot modify header information – headers already sent by (output started at /home/hvhamco1/public_html/jasonbrodbeck.com/wp-content/plugins/bp-custom.php:10) in /home/hvhamco1/public_html/jasonbrodbeck.com/wp-includes/pluggable.php on line 934

    on some places

    Avatar of aces
    aces
    Participant

    @aces

    what is line 10 of bp-custom.php?
    What theme are you using?

    If you also want to allow non logged in visitors to view the members page (If that is what you meant) try replacing:
    `
    if( bp_is_register_page() || bp_is_activation_page() || bp_is_page( BP_FORUMS_SLUG ) || bp_is_page( BP_GROUPS_SLUG ) )
    `
    with
    `
    if( bp_is_register_page() || bp_is_activation_page() || bp_is_page( BP_FORUMS_SLUG ) || bp_is_page( BP_GROUPS_SLUG ) || bp_is_page( BP_MEMBERS_SLUG ) )
    `

    Avatar of Mary Jane
    Mary Jane
    Member

    @jasonbrodbeckcom

    LIne 10 is add_action( ‘wp_loaded’, ‘sh_walled_garden’ );?>

    Avatar of aces
    aces
    Participant

    @aces

    It works fine at my end so maybe there is a theme or plugin conflict…

    replacing ‘wp_loaded’ with ‘bp_init’ also works for me…

    Avatar of Mary Jane
    Mary Jane
    Member

    @jasonbrodbeckcom

    ahhh i had on a buddyboss child theme and it wouldnt show up at all with that, thanks is there a way to place to code somewhere else to make it work with child theme? and last time it would disable html and i would have nothing but words and images. no style for my site about 10 mins after activiating code, with the bp_init will that fix it?

    Avatar of Mary Jane
    Mary Jane
    Member

    @jasonbrodbeckcom

    and this pops up in my dash Recently an error occurred while creating the CSS / JS minify cache: Path “/home/hvhamco1/public_html/jasonbrodbeck.com/wp-content/themes/buddyboss_/buddyboss/style.css” failed realpath().

    someone should really try to fix that old plug in i think some said they were working on it about 3 weeks ago but no news since.

    @DJPaul sorry man just thought i would try to do what i could client is impatient and the issue seems to be in limbo and quite important to quite a few people didnt mean to be rude.

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

You must be logged in to reply to this topic.