Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'private'

Viewing 25 results - 1,526 through 1,550 (of 3,443 total)
  • Author
    Search Results
  • #161723
    timvango
    Participant

    Hello,
    The private groups arent visible in groups, but they are in my groups…
    In my groups I see all groups, not only the groups that I subscribed on.
    This is on a default account, not admin.

    #161708
    shanebp
    Moderator

    Try this in your functions.php or bp-custom.php file

    https://gist.github.com/shanebp/5388770

    #161638
    angslycke
    Participant

    After hours of frustration I realised that I was trying to change the wrong filter. The filter should be ‘bp_core_signup_send_validation_email_to’. Now works. Here’s the code:

    `
    function redirect_new_user_activation_email()
    {
    // Make sure to use a valid email. Test it with different addresses.
    return get_site_option( ‘admin_email’, ‘fallback@something.com’ );
    }

    add_filter( ‘bp_core_signup_send_validation_email_to’, ‘redirect_new_user_activation_email’);
    `

    The second e-mail address is a fallback address in case the admin_email isn’t specified. Let me know if this works for you!

    #161620
    timvango
    Participant

    The filter sidewide is showing private group content

    #161611
    Yuttadhammo
    Participant

    I’m not sure why it would be showing private groups… it should only show groups that the user is in, since it is using groups_get_user_groups(). What filter is showing private groups?

    #161570
    angslycke
    Participant

    @modemlooper Revisiting this thread. I’m still looking to change the activation e-mail to go to the site admin instead, and even though this should be fairly easy I must be missing something. The code should be something like this, right?

    `
    function my_redirect_activation_email()
    {
    return get_site_option( ‘admin_email’ );
    }
    add_filter(‘bp_core_activation_signup_user_notification_to’, ‘my_redirect_activation_email’);
    `

    Added this to my custom-functions.php but can’t seem to get it to work, WordPress stills sends the e-mail with the activation link to the new user instead. Any ideas? Thanks!

    #161535
    shanebp
    Moderator

    Please provide a username and password so we can login without having to create an account.

    Do you have Private Messaging selected on the Components page under Settings -> BuddyPress ?

    #161522
    timvango
    Participant

    The app now works great, but I can see messages in a private group with a normal account…
    Can this be fixed please? Beacause private groups now are not private anymore…

    #161361
    bp-help
    Participant

    @scotm
    Strange, it works perfect for me. Maybe its a plugin interfering because on my install I only have BP, BBPress, and Private Community activated. If I log out it redirects me to the registration. If I click the forum nav button it redirects me to registration as well. Do you have other plugins installed besides the ones I listed?

    azchipka
    Participant

    Ok so I managed to find a backwards way of doing it because I needed to be able to do the same thing. Your going to need two plugins.

    1. Your Preferred Role Management Plugin. I like Capacity Manager Enhanced
    2. Buddypress xProfiles ACL

    STEPS
    1. Use your role manager to create some new roles. Name them what ever you want.
    2. Go into the Users -> Profile Fields
    3. Create a Field Group for your Restricted Items (not the primary one).
    4. Go to the Settings -> xProfile ACL
    5. Put your Field Group that you only want the Admin to be able to edit for the admin only.
    6. Now this is important you need to modify the xProfile ACL php file (yes I know this makes it a hack, if xProfile ACL is updated you will lose this setting.)
    6a. Go to line 240 of the buddypress-xprofiles-acl.php file. Comment out lines 240 – 249, the code you are commenting out is:

    `
    function filter_xprofile_groups_with_acl() {
    global $bp, $profile_template, $current_user;
    get_currentuserinfo();
    foreach($profile_template->groups as $key => $profile_group) {
    if( ! in_array($profile_group->id, $this->user_allowed_xprofile_groups) ) {
    unset($profile_template->groups[$key]);
    }
    }
    }
    `

    6b. Below the code you just commented out add:
    ` function filter_xprofile_groups_with_acl() {}`

    7. Save your changes to the buddypress-xprofiles-acl.php file.

    8. Now when ever you need to modify the fields log in with your admin account navigate to the user profile in buddy press and select Edit Member Profile from the tool bar. You will see the fields from the private group. Users will see the fields but when they select edit they will not be displayed.

    Hope this helps.

    #160277
    Henry
    Member

    It might also be worth removing both the subject column from members/single/messages/messages-loop.php and the h1 heading from members/single/messages/single.php

    Users won’t then see “private message” for every message they get sent.

    #160151
    antonchanning
    Participant

    Also I found the other hook I was looking for, so I can apply the shortcodes to private messages. It turned out I can use `bp_get_the_thread_message_content` for that.

    #160067
    antonchanning
    Participant

    In addition, a filter on displaying private messages in a similar manner would also be useful…

    #159679
    b1gft
    Participant

    I want it as a teaser, so people will join the site to read the forum posts. They show private groups on the activity page, is that silly?

    Thanks for the links

    #159670
    danbpfr
    Participant

    @b1gft,

    the silly answer would be: make them public !

    Private is private. Even group discussions.

    A tech answer probably sit here: https://buddypress.trac.wordpress.org/ticket/2576
    And at least, the codex: https://codex.buddypress.org/user/setting-up-a-new-installation/group-settings-and-roles/

    #159239
    bp-help
    Participant

    @aldereteka
    Try this:
    https://github.com/bphelp/private_community_for_bp
    edit it to meet your requirement.

    #159213
    bp-help
    Participant

    @jrgiblette
    Yes, as far as I know sending private messages with folk your not friends with is still out of the box, you would need custom code or a plugin to prevent it. Unless the core developers integrated it with the core in BP 1.7rc1 which I have not tested extensively yet then most likely you will need custom code if you decide to prevent it. If your fine with non-friends sending non-friends messages then that is default behavior.

    #159195
    aldereteka
    Participant

    Hey @Chouf1

    Can your code be modified for private messaging? I’m trying to make the private message button on profiles visible when someone is logged out, but redirected to log in/register when a logged out/unregistered user attempts to contact someone. Can anyone point me in a general direction?

    Thanks.

    #159085
    Hugo Ashmore
    Participant

    @mr_yoshimura ‘heads up’ ? how is this helpful or informative? what doesn’t work? What, if anything, have you done to try and narrow down the problem, do you need any help from the community to try and get it working or see what your issue is with it?

    #159084
    mr_yoshimura
    Participant

    Heads up! The plugin doesn’t work for my site: http://www.bobyorke.com

    #159079
    Gargoyle297
    Participant

    Great Job Boris!
    A bit late but… thanks

    #158775
    bp-help
    Participant

    @studiomgr Have you tried this one yet:
    https://github.com/bphelp/private_community_for_bp
    It is only designed to block buddypress pages, I use it and it works good for me.

    #158771
    studiomgr
    Participant

    I have the same problem with all my pages being visible, even though I blocked them through wp-members settings. I tried installing this plugin, but I still have all pages visible – but now they have error messages. I have tried several plugins to no avail – wp-members was supposed to block pages, but that doesn’t work. I also used BP-registration options, but it doesn’t work well. I am looking at possibly trying the bp-custom.php fix suggested here: https://codex.buddypress.org/developer/customizing/bp-custom-php/. I am not a pro – just looking for the simplest way to create a membership site and block pages from users who are not members and logged in. Would appreciate any guidance! Thanks!

    bp-help
    Participant

    Maybe this is also covered by #1 but I think @shanebp ‘s blocking a member would be awesome as well as @r-a-y ‘s plugin to keep non-friends from sending private message’s, I also liked @modemloopers extended settings plugin when it was free. Overall I really would like to see privacy features taken to the next level. Me being a novice at coding though, all I can do is make suggestions and hope the real coders take the idea and make it a reality! Thanks!

    #157589
    bp-help
    Participant

    I updated this so if your using an older version download, upload, and activate it. It fixes a bug but I don’t feel my skills or the plugin is polished enough yet to submit it to the WP Repo. Still works decent though.
    https://github.com/bphelp/private_community_for_bp

Viewing 25 results - 1,526 through 1,550 (of 3,443 total)
Skip to toolbar