Privacy????
-
has anyone found a way to use privacy? the plugins do not work in 1.5
-
Which plugins are you referring to and what sort of privacy are you looking for ?
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?
I’m using the walled garden technique for some privacy and have adapted it for bp 1.5.* !
This is based on https://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
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
what was on line 1?
it should have been `<?php` with nothing before it.
The last line should probably be `?>` with nothing after it
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
nvm my friends is still there
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….
that works great thanks, is there a way i can make a acception for the members page?
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 934on some places
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 ) )
`LIne 10 is add_action( ‘wp_loaded’, ‘sh_walled_garden’ );?>
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…
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?
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.
- The topic ‘Privacy????’ is closed to new replies.