Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'private'

Viewing 25 results - 2,926 through 2,950 (of 3,456 total)
  • Author
    Search Results
  • #70040
    marioe
    Member

    Travel junkie,

    is working on the members page, and on my groups page, and it wasen’t working on the activity page.

    I had my activity stream as my homepage I change home page to point to a static page and now it seems to work!

    I guess you posting does not apply it static pages.

    #70039
    marioe
    Member

    Travel Junkie,

    I’m using 2.9.2 with the buddypress default theme. I’m having no luck. I paste you code on my functions.php file and nothing! any suggestions?

    #70038
    Anonymous User 96400
    Inactive

    well, i’ve got it running on a single install of wp 3.0 alpha, so there shouldn’t be any problems.

    #70037
    marioe
    Member

    Travel junkie,

    I’m using a regular WordPress install( not MU) can your posting still work for me?

    #70036
    hachimaki
    Member

    yes, not better, but more simplified…

    i still prefer yours, it’s more accurate, professionalm but… it doesn’t works for me

    regards

    #70016
    Anonymous User 96400
    Inactive

    it’s only a better solution for you, cause you couldn’t get the other one to work :) but anyways, glad you found something that does work!

    #70006
    hachimaki
    Member

    Found a much more better solution:

    Use this plugin: Force user login https://wordpress.org/extend/plugins/force-user-login/

    Use this other plugin: http://wpmututorials.com/how-to/custom-branded-login-screen-for-wpmu/ and all done!

    #69970
    hachimaki
    Member

    no, i mean, in functions.php they use to put that /*introduction*/ for locating the functions.

    I put the second method on functions.php, i supose i put it well….

    I use unplugged theme, it says it uses the child theme files… so i paste in the functions.php of bp-default theme your code. and it doesn’t works. I dunno why.

    #69963
    Anonymous User 96400
    Inactive

    hmm, weird. maybe it’s a child theme thing. i use it on a parent theme. shouldn’t be a problem, though.

    I pasted it at the first line= not working
    I pasted it with the */Private Community*/ and the code below= not working

    i didn’t get these two lines at all. with the second method, there’s no need to put anything on the first line of header.php.

    #69960
    hachimaki
    Member

    Still not working. I have pasted the new code in functions.php in the buddypress child theme (i use unplugged theme wich uses the bp-default files).

    I pasted it at the first line= not working

    I pasted it with the */Private Community*/ and the code below= not working

    It doesn’t works, i dunno why.

    #69948
    Anonymous User 96400
    Inactive

    @r-a-y

    cheers! 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

    #69929
    marioe
    Member

    travel Junkie,

    I also follow your posting but it still shown the activity stream…

    #69899
    Gene53
    Participant

    I agree, this would cut down on database bloat.

    #69896
    Boone Gorges
    Keymaster

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

    #69887
    hachimaki
    Member

    If you could make a more-improved post… i suppose i have paste it right, but…

    #69882
    hachimaki
    Member

    it 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. :(

    #69852
    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.

    #69849
    Anointed
    Participant

    Thank 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

    #69834

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

    #69823
    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)

    #69822
    hachimaki
    Member

    Wow! really appreciate it

    #69817
    Anonymous User 96400
    Inactive

    This 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

    #69778
    3sixty
    Participant

    I 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?

    #69727
    Mike Pratt
    Participant

    I had to FedEx her. You may have to sign for the delivery. She shouldn’t take too long to inflate ;-)

    Jeff Sayre
    Participant

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

Viewing 25 results - 2,926 through 2,950 (of 3,456 total)
Skip to toolbar