Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'private'

Viewing 25 results - 1,276 through 1,300 (of 3,456 total)
  • Author
    Search Results
  • #171157
    r-a-y
    Keymaster

    @jboye @petervandoorn

    There was a bug in a previous version of bbPress where the visibility of the private and hidden forums were not being saved properly.

    The bug is fixed in bbPress 2.4, but for previous group forums, you’ll need to repair them.

    You can do this by:

    • Logging in to the WP admin dashboard
    • Navigate to “Tools > Forums”
    • Make sure to check “Recalculate private and hidden forums”
    • Lastly, hit “Repair Forums”

    This will regenerate bbPress’ internal private and hidden forum IDs that are used to filter posts and will therefore fix forum visibility problems.

    #171156
    Hugo Ashmore
    Participant

    Just to add a footnote to thread:

    if by ‘main activity page’ we mean the /activity/ A Directory then we should be able to test for that with:

    bp_is_directory()

    Then not have to qualify the conditional with ! user_activity or at least be able to do bp_is_directory && whatever comp we’re after.

    #171139

    In reply to: Flat Portal theme

    Squirrel
    Participant

    Thanks @shanebp πŸ™‚

    It basically works in this way- I have a header file with multiple headers for different page templates or conditions such as is_singular() or is_page.. e.g

    if (is_front_page() || is_404() || is_page_template('public-subpages.php') || is_page_template('public.php') || is_page_template('public-full.php') || is_page_template('gallery-public.php') || is_singular('download') || bp_is_activation_page() || bp_is_register_page()) :
    get_header('public');
    elseif (bp_is_profile_component() || bp_is_settings_component() ):
    get_header('restrict-profile');
    else :
    get_header('private');

    The pages are all set to private by default and depend on setting them to different page templates if you want them public or a different style.
    The private pages have a header-private that re-directs non-logged in users to the log in page (which is created on theme activation and set to the log in page template)

    So the public page templates have a header-public without any redirect for non-logged in users.

    There are also page templates that go with a header-restrict for restricting pages to editor / admin only with the conditional redirect

    elseif (bp_is_current_component( 'members' ) || is_page_template('archives.php') || is_page_template('full-restrict.php') || is_search() || is_tag() || is_date() ) :
    get_header('restrict');

    The different header files have re-directs at the top except for the public one: e.g header-restrict has:
    if(!current_user_can('delete_others_pages')) { wp_redirect( home_url() ); exit; }
    at the top.

    It’s been my pet project for a few years but to be honest you are right I’ve not had much luck promoting it and there are lots of plugins that do similar things and lots of themes, but it’s been interesting non the less πŸ™‚ I use it for my own little project support area and it’s basic but it works.

    Thanks for checking it out.

    #171093

    In theory if you set your group to “Private” or “Hidden” then non-group members are not supposed to be able to see the posts in that group’s bbForum.

    However, and this is denied by the developers, I am experiencing a bug which is making all forum posts appear in the site-wide activity stream to all members, although when they click on the link they cannot view the post.

    cf: https://buddypress.org/support/topic/private-group-posts-appearing-in-activity-stream-to-non-members

    So, no, you’re not going crazy πŸ˜‰ and yes, it is incredibly frustrating!

    Peter

    #171092

    BuddyPress groups can’t have categories associated with them. My advice would be to just set up a different group for each island. You can make each group private to ensure that only members of that group can see the forum posts within.

    Additionally, there is a plugin which will give groups hierarchies if you wanted to make it easier to group groups together (eg, if your islands are grouped geographically you could have a “north islands” group and a “south islands” group and within each group you would then have your individual islands groups).

    Search for “BP Group Hierarchy”

    Hope that helps

    Peter

    tperkins
    Participant

    Only happens when you are an Admin and on the single group page/ request process

    diaritoch
    Participant

    Never mind. Fixed it by going to the database and changed the Hide Sitewide value from 1 to 0 in all the activity posts.

    #170937
    Matt
    Participant

    I want to only allow private groups, so I’ve commented out the equivalent of lines 81-88 & 99-106 in create.php and 59-67 & 79-87 in admin.php. Now when a user creates a new group, it does only show the private option, but it remains unchecked unless they click on it, so if they don’t, the group’s status remains as ‘public’ when they continue to the next stage. How do you set the radio button to be checked by default?

    #170907
    bp-help
    Participant

    @joe2000
    Unless @joe2000 has objections we can close this as I resolved it privately. Thanks again Joe!

    #170895
    bp-help
    Participant

    @joe2000
    In line 37 of my plugin after this:
    if ( !is_user_logged_in()
    add this:
    && !is_home()
    This will allow that landing page to logged out users but will redirect to register or wp-login.php depending on which you define in the plugins settings. All other pages other than the landing page will be private.

    #170829
    tperkins
    Participant

    Same here. private group gets 404. public group fine. cant go live with client.

    #170815
    jamesdonegan
    Participant

    Maybe @mercime can be of help? You’ve been grea with other issues…. Thank you!

    #170814
    kimz
    Participant

    I’ll check bp_get_current_signup_step(),

    and putting the code on the registration page seems to be a simple and good idea,

    #170813
    Squirrel
    Participant

    Hi

    Thanks @modemlooper I managed to figure it out after trying a few things and your conditional helped me deduce it.

    if ( bp_is_current_component(‘activity’) && !bp_is_user_activity() ) {

    worked for me.
    (redirect if on main activity page but not own activity)

    #170810
    Xevo
    Participant

    Just put the actual code on the registration page?
    You can edit register.php in the theme.

    You could also take a look at bp_get_current_signup_step(), if you want to make it an actual step in the registration process.

    #170809
    kimz
    Participant

    I did something similar,

    I created a db table with the members’ names and numbers,

    and a php form with to field to check the input data with the db table,
    if it’s correct the user is redirected to the registration page,

    but I was lookin for something to integrate between this page and the registration page, like a way to encrypt the link or deal with it as a registration step, you know what I mean? πŸ™‚

    #170807
    Xevo
    Participant

    Maybe you could add a form that shows when a users tries accessing the register page that would require them to enter a security code first before seeing the actual register page.

    Something like

    if(!is_user_logged_in()) {
       if(!$_POST["access"]) {
         -show access form-
       } else {
         -show register page-
       }
    } else {
      -redirect user since he's already logged in-
    }

    (Just a raw sketch)

    #170805
    kimz
    Participant

    Thanks for your contribution @Xevo

    all users are already redirected to the login page if not logged in,

    but I want to allow only the users with the correct name and membership number to access the registration page

    #170804
    Xevo
    Participant

    Just redirect any url towards the register/login page if the user isn’t logged in?

    Update: bbPress 2.4 does not fix the bug!

    #170743
    modemlooper
    Moderator

    bp_is_profile is used to test if its a profile page. try that in a conditional.

    #170716
    rtandoh
    Participant

    @henrywright-1, @shanebp

    Thank you very much. The code worked nicely, removing both the button and the functionality.

    rt.

    Hugo Ashmore
    Participant

    You probably ought to have migrated your bbPress group forums to the standalone plugin.

    #170638
    Squirrel
    Participant

    I just read the new Codex on child themes- so it should work with any theme- (answered my own question)

    Thank you for putting up with another newbie guys πŸ™‚

    Best

    jaemaz
    Participant

    Bump.

    Anyone?

Viewing 25 results - 1,276 through 1,300 (of 3,456 total)
Skip to toolbar