Search Results for 'private'
-
AuthorSearch Results
-
March 24, 2010 at 4:43 am #69948
In reply to: How to make a private community?
Anonymous User 96400
Inactivecheers! didn’t even think of the get_header action. even cleanerer…
@hachimaki and @marioe,
well, don’t know why it’s not working for you guys, works perfectly for me… maybe you did paste something wrong. try just this in functions.php:
function sh_walled_garden()
{
global $bp;
if( bp_is_register_page() || bp_is_activation_page() )
return;
if( ! bp_is_blog_page() && ! is_user_logged_in() )
bp_core_redirect( $bp->root_domain .'/'. BP_REGISTER_SLUG );
}
add_action( 'get_header', 'sh_walled_garden' );You can delete the walled_garden action call in header.php
March 24, 2010 at 1:29 am #69929In reply to: How to make a private community?
marioe
Membertravel Junkie,
I also follow your posting but it still shown the activity stream…
March 23, 2010 at 9:16 pm #69899In reply to: Private message inbox auto-purging or limits
Gene53
ParticipantI agree, this would cut down on database bloat.
March 23, 2010 at 8:56 pm #69896In reply to: question about Group filtering
Boone Gorges
KeymasterThis works for me.
function filter_groups_by_type_private( $a, $b ) {
$groups = $b->groups;
foreach( $groups as $key => $group ) {
if ( $group->status != 'private' ) {
unset( $groups[$key] );
$b->group_count = $b->group_count - 1;
}
}
$groups = array_values( $groups );
$b->groups = $groups;
return $b;
}
add_filter( 'bp_has_groups', 'filter_groups_by_type_private', 10, 2 );Play around with the value ‘private’ to change what the function does.
It’s not perfect, because the pagination is not adjusted accordingly. You’d probably have to rebuild the core function in order to make pagination happen, since per_page gets passed right along to the database function. That’s why I say you might do well to write an enhancement ticket and submit it to trac.buddypress.org. In the meantime, though, this will set you in the right direction.
March 23, 2010 at 7:59 pm #69887In reply to: How to make a private community?
hachimaki
MemberIf you could make a more-improved post… i suppose i have paste it right, but…
March 23, 2010 at 7:49 pm #69882In reply to: How to make a private community?
hachimaki
Memberit doesn’t work for me, i have paste it where you say and it doesn’t makes any difference, i can see my activity page (homepage) without logging in.
March 23, 2010 at 5:30 pm #69852In reply to: How to make a private community?
r-a-y
Keymaster@travel-junkie
Looks cleaner than the mod I made for Registered Users Only 2 plugin.
You could probably change the action to “get_header”, then you wouldn’t need to add the “walled_garden” do_action in the header.php.
March 23, 2010 at 5:21 pm #69849In reply to: [New Plugin] BuddyPress Group Forum Extras
Anointed
ParticipantThank you so much for this. The forum extra page works awesome on my setup and I am so happy. You have really outdone yourself on this one.
I do have one question. I made a post in a members only group forum, yet on the forum index page the new post does not show in the list of ‘fresh’ posts on the top. It does add to the counter in the group forum listing below though.
I would have expected the post to show up because I am logged in and a member of the private group, but to have it not visible to the public, or members who are not members of the group.
Is this a setting somewhere?
thanks
March 23, 2010 at 2:42 pm #69834In reply to: Global Content Tagging
Erlend
Participant+1, really need this! BP Contents seem to cover everything suggested in this thread, if not more.
I have a feature suggestion, though I’m unsure which platform (WordPress vs BuddyPress) it actually targets. I would like the ability to make certain categories and tags private, i.e. for moderators and above only. I found a plugin called “private tags”
https://wordpress.org/extend/plugins/private-tags/
This plugin however hides content, while all I want to do is to hide the option of adding certain tags. For instance if your website pulls official site news from various sub-blogs by checking for the ‘official’ tag, ordinary users should not be allowed to apply this tag.
March 23, 2010 at 1:42 pm #69823In reply to: BP 1.2 and bbPress admin/plugins
rich! @ etiviti
Participant
@nuprn1, what did you modify? I noticed that posts in bbpress don’t show up on the activity notifications, and the public/private/hidden stuff doesn’t seem to work either…I can’t remember but i had to rewrite a bunch of it – and also hack the bbPress core to play nice with the GMT buddypress timestamps. Then throw in that bpGroups uses xmlrpc – so personally i’m moving to open up bbpress within buddypress instead of running an external bbpress install (with all the hidden/private forums)
March 23, 2010 at 1:40 pm #69822In reply to: How to make a private community?
hachimaki
MemberWow! really appreciate it
March 23, 2010 at 1:17 pm #69817In reply to: How to make a private community?
Anonymous User 96400
InactiveThis is what I came up with:
place the function below into functions.php in your theme folder.
function sh_walled_garden()
{
global $bp;
if ( bp_is_register_page() || bp_is_activation_page() )
return;
if( ! bp_is_blog_page() && ! is_user_logged_in() )
bp_core_redirect( $bp->root_domain .'/'. BP_REGISTER_SLUG );
}
add_action( 'walled_garden', 'sh_walled_garden' );and this right on top of header.php (before the <!DOCTYPE… parts):
<?php do_action( 'walled_garden' ) ?>The above makes all BP pages private, except the registration and activation pages. It also leaves all blog pages public. It’s a bit easier than editing all theme pages.
Boris
March 23, 2010 at 4:50 am #69778In reply to: BP 1.2 and bbPress admin/plugins
3sixty
ParticipantI use the bpGroups plugins (“forums” subdomain of the BP site) but the plug-in required some updating to get everything working smooth (activity notifications, public/private/hidden/ready only stuff)
@nuprn1, what did you modify? I noticed that posts in bbpress don’t show up on the activity notifications, and the public/private/hidden stuff doesn’t seem to work either…
Also, the plugin is looking for an Authorized Buddypress Username, or “the user that BuddyPress uses to access bbPress.” Is there actually still a user, or was that part of the older BP/bbpress integration method?
March 22, 2010 at 10:25 pm #69727In reply to: How to make a private community?
Mike Pratt
ParticipantI had to FedEx her. You may have to sign for the delivery. She shouldn’t take too long to inflate
March 20, 2010 at 9:30 pm #69476Jeff Sayre
ParticipantWhich version of WordPress and BuddyPress are you running?
To post a new topic to a thread using the Group Forums Directory, you must be a member of that group and the group must be public. So, you will not have the option of selecting groups that are private or those of which you are not a member.
March 20, 2010 at 3:27 pm #69436In reply to: Members-only groups
Hugo Ashmore
ParticipantMembers? site members or group members? if group member then surely you just set the group to private which still shows it just not content.
March 20, 2010 at 3:04 pm #69432In reply to: Private Buddy Press groups
Boone Gorges
KeymasterWhen you create a group, you have the option of making it Public, Private or Hidden. Public groups are free for anyone to join, and their content is viewable by anyone. Private groups are listed in sitewide directories, so that others can see the group names and descriptions when searching and browsing for groups, but the content of the group can only be seen by group members. Group membership for private groups is controlled, so that a member can only join if they’ve requested membership or been invited by a current member. Hidden groups are like private groups, except that they do not appear in sitewide group listings and search.
March 20, 2010 at 4:19 am #693913sixty
Participantwill do. Thanks!
March 19, 2010 at 8:38 am #69191In reply to: New plugin: BP Group Management
bpinspire
ParticipantThe user added to the private group does not see the group on his “my groups” page
March 19, 2010 at 8:34 am #69190In reply to: ATTENTION TRANSLATORS! – BP Album+ Needs Your Help!
epsi
ParticipantHi! I’ve sent ‘Bahasa Indonesia’ translation via private message to @foxly.
Language: Indonesia (id_ID)
I just want to say thank you for this great bp-album.
Hope my community would love this feature (plugin) too
after my site officially launched someday.
note:
* Main BP ‘Bahasa Indonesia’ translator is @sofyand
* My alumni bp site (trial) is http://iluni-ftui.org/riwayat/
March 19, 2010 at 5:39 am #69175In reply to: How to make a private community?
r-a-y
KeymasterAdd this somewhere within your form tag:
<input type="hidden" name="redirect_to" value="INSERT YOUR URL YOU WANT TO REDIRECT TO" />Btw, a thousand maidens is too much, I’d be happy with one nice lass at my doorstep
March 19, 2010 at 4:23 am #69163In reply to: How to make a private community?
Mike Pratt
Participant@r-a-y Thank you and may a thousand maidens be blessed upon your doorstep by morning!
What would be the code to place to redirect the login form action specified by
<form name="login-form" id="login-form" class="standard-form" action="<?php echo site_url( 'wp-login.php', 'login' ) ?>" method="post">back to $bp->root_domain?
March 19, 2010 at 2:44 am #69149In reply to: How to make a private community?
r-a-y
KeymasterHi Mike,
Your code is correct, but since your page isn’t the BP_REGISTER_SLUG or BP_ACTIVATION_SLUG, it will lead you to redirect hell!
Add your page (and any other page you need to whitelist from blocking) to the following conditional:
if ( bp_is_register_page() || bp_is_activation_page() || THEWELCOMEPAGE ) //buddypress
return;Change THEWELCOMEPAGE to something that checks if you’re on welcome.php.
If welcome.php is a WordPress page with the slug of “welcome”, you would use something like:
is_page('welcome')So your conditional would look like:
if ( bp_is_register_page() || bp_is_activation_page() || is_page('welcome') ) //buddypress
return;Hope that helps!
March 19, 2010 at 1:36 am #69143In reply to: How to make a private community?
Mike Pratt
Participant@r-a-y I am embarrassed to be asking such a simple question:
re registered-users line ~48 -> bp_core_redirect(bp_get_signup_page());
What would be the correct way to do the following:
redirect not_logged_in users to a welcome page.. say domain.com/welcome.php which has a login widget for registered users as well as a Create Account button/link taking you to domain.com/register.php ?
I tried:
`$page = $bp->root_domain . ‘/welcome.php’;
bp_core_redirect($page);`
but, of course, that led me to redirect Hell.
Thanks for clarifying.
March 18, 2010 at 6:12 pm #69028abcde666
Participant -
AuthorSearch Results