Search Results for 'private'
-
AuthorSearch Results
-
December 20, 2014 at 1:57 am #230817
In reply to: Is a Private BuddyPress Community Possible?
bp-help
Participant@wadsworth4
What plugins did you use for making BP multisite private? I offer some premium plugins to make BP private but I personally haven’t tested it with BP multisite because I don’t really use it. For my purposes my Private Community For BP plugin does everything I need it to do.December 17, 2014 at 6:20 pm #230718In reply to: [Resolved] Hide possibility to change 'Base' name
danbp
ParticipantWhen BP is installed and xProfile is activated, the original WP profile settings are not accessible to user.
The WP register process use only username, password and email and BuddyPress add by default a Name field as base for other extended profile fields.
In short this means that username and name fields can contain a same information(a name, a pseudonym, a first or/and a last name). The plugin you mention is best for a WP install where user had choosen first/last name as output on post, comments, etc Once BP is activated, this became a little different.
Now to the initial question.
The CSS trick is a very inelegant solution as it lets everybody knowing how BP works to surround this invisibility. You’re also loosing any flexibility if you want to show some fields privately for example.You can do this properly with a little snippet, as explained here:
Here’s an example which let you hide fields or fiels group to members, but not to site admin
function bpfr_hide_profile_field_group( $retval ) { if ( bp_is_active( 'xprofile' ) ) : // hide profile group/field to all except admin if ( !is_super_admin() ) { //exlude fields, separated by comma $retval['exclude_fields'] = '1'; //exlude groups, separated by comma $retval['exclude_groups'] = '1'; } return $retval; endif; } add_filter( 'bp_after_has_profile_parse_args', 'bpfr_hide_profile_field_group' );Add it to bp-custom.php or your child-theme functions.php
Of course you can also choose to show a field or group, but remove the possibility for the user to edit it later. Simply add more conditionnal to the function.
Here another example:
function bpfr_hide_profile_edit( $retval ) { // remove field from edit tab if( bp_is_user_profile_edit() ) { $retval['exclude_fields'] = '54'; // ID's separated by comma } // allow field on register page if ( bp_is_register_page() ) { $retval['include_fields'] = '54'; // ID's separated by comma } // hide the field on profile view tab if ( $data = bp_get_profile_field_data( 'field=54' ) ) : $retval['exclude_fields'] = '54'; // ID's separated by comma endif; return $retval; } add_filter( 'bp_after_has_profile_parse_args', 'bpfr_hide_profile_edit' );Hope to be clear.
December 3, 2014 at 8:32 pm #230122In reply to: [Resolved] Private Page for Members
bp-help
Participant@dee987
I offer a premium plugin that would work for your situation. If your interested you can contact me here: https://bphelpblog.wordpress.com/submit-comments-tips-or-tricks-or-job-inqueries/
The name of the plugin is Private Community For BP.December 2, 2014 at 3:40 am #229998In reply to: Deliver Custom Message via BuddyPress to new users
Henry Wright
ModeratorInstead of using
messages_new_message()to send a private message, you’d usebp_activity_post_update()to post an activity update. Note that the function accepts different arguments so you’ll need to amend those.See here for more info on the function.
November 29, 2014 at 3:28 am #229862In reply to: Our Member Posts Pages Not Showing in Buddypress
Brent Havill
ParticipantHi Henry
I went to ‘plugins’/buddypress/settings, and found the following (I note that “account settings” is not ticked – could this be it?)
I have bolded the ones that are ticked currently.Settings:
Component Description
Component Description
Extended Profiles Customize your community with fully editable profile fields that allow your users to describe themselves.
Account Settings Allow your users to modify their account and notification settings directly from within their profiles.
Friend Connections Let your users make connections so they can track the activity of others and focus on the people they care about the most.
Private Messaging Allow your users to talk to each other directly and in private. Not just limited to one-on-one discussions, messages can be sent between any number of members.
Activity Streams Global, personal, and group activity streams with threaded commenting, direct posting, favoriting, and @mentions, all with full RSS feed and email notification support.
Notifications Notify members of relevant activity with a toolbar bubble and/or via email, and allow them to customize their notification settings.
User Groups Groups allow your users to organize themselves into specific public, private or hidden sections with separate activity streams and member listings.
Site Tracking Record activity for new posts and comments from your site.
BuddyPress Core Itβs what makes time travel BuddyPress possible!
Community Members Everything in a BuddyPress community revolves around its members.November 27, 2014 at 4:47 am #229755In reply to: Comment to Updates not triggering notification
hypnoscribe
ParticipantDid you get this fix? I am having the same problem. I get email notifications. I get notifications for private messages. But nothing for any other activity.
Dominic
November 26, 2014 at 7:48 pm #229735In reply to: Send Private Message in HTML
elpix
ParticipantI’ve found by myself π
To send HTML private message, you must add :
[
edited – Please use the ‘code’ button when you post code.
Please note that removing that filter creates a major security risk.
It means user input WILL NOT BE SANITIZED.
So some very bad things can happen to your database.
]
remove_filter( 'messages_message_content_before_save', 'wp_filter_kses', 1);To the bp-custom.php file.
I hope it will helps !
November 25, 2014 at 3:23 pm #229545In reply to: BudyPress Activation ?
Eustache44
ParticipantHello Henrywright,
Thanks you for your response.
I tried what you advise me, nothing works πWhen I sent with WP-Mail-SMTP, it’s what I have. Maybe that can give you more informations:
The result was:
bool(true)
The full debugging output is shown below:object(PHPMailer)#5937 (69) { ["Version"]=> string(5) "5.2.7" ["Priority"]=> int(3) ["CharSet"]=> string(5) "UTF-8" ["ContentType"]=> string(10) "text/plain" ["Encoding"]=> string(4) "8bit" ["ErrorInfo"]=> string(0) "" ["From"]=> string(19) "club@ufpcyclisme.fr" ["FromName"]=>UFP Cyclisme" ["Sender"]=> string(0) "" ["ReturnPath"]=> string(0) "" ["Subject"]=> string(45) "WP Mail SMTP: Test mail to k44@gmail.com" ["Body"]=> string(68) "This is a test email generated by the WP Mail SMTP WordPress plugin." ["AltBody"]=> string(0) "" ["Ical"]=> string(0) "" ["MIMEBody":protected]=> string(69) "This is a test email generated by the WP Mail SMTP WordPress plugin. " ["MIMEHeader":protected]=> string(349) "Date: Tue, 25 Nov 2014 15:21:33 +0000 Return-Path: From: UFP Cyclisme Message-ID: X-Priority: 3 X-Mailer: PHPMailer 5.2.7 (https://github.com/PHPMailer/PHPMailer/) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit " ["mailHeader":protected]=> string(78) "To: k44@gmail.com Subject: WP Mail SMTP: Test mail to k44@gmail.com " ["WordWrap"]=> int(0) ["Mailer"]=> string(4) "mail" ["Sendmail"]=> string(18) "/usr/sbin/sendmail" ["UseSendmailOptions"]=> bool(true) ["PluginDir"]=> string(0) "" ["ConfirmReadingTo"]=> string(0) "" ["Hostname"]=> string(0) "" ["MessageID"]=> string(0) "" ["MessageDate"]=> string(0) "" ["Host"]=> string(9) "localhost" ["Port"]=> int(25) ["Helo"]=> string(0) "" ["SMTPSecure"]=> string(0) "" ["SMTPAuth"]=> bool(false) ["Username"]=> string(0) "" ["Password"]=> string(0) "" ["AuthType"]=> string(0) "" ["Realm"]=> string(0) "" ["Workstation"]=> string(0) "" ["Timeout"]=> int(10) ["SMTPDebug"]=> bool(true) ["Debugoutput"]=> string(4) "echo" ["SMTPKeepAlive"]=> bool(false) ["SingleTo"]=> bool(false) ["SingleToArray"]=> array(0) { } ["do_verp"]=> bool(false) ["AllowEmpty"]=> bool(false) ["LE"]=> string(1) " " ["DKIM_selector"]=> string(0) "" ["DKIM_identity"]=> string(0) "" ["DKIM_passphrase"]=> string(0) "" ["DKIM_domain"]=> string(0) "" ["DKIM_private"]=> string(0) "" ["action_function"]=> string(0) "" ["XMailer"]=> string(0) "" ["smtp":protected]=> NULL ["to":protected]=> array(1) { [0]=> array(2) { [0]=> string(18) "kgodin44@gmail.com" [1]=> string(0) "" } } ["cc":protected]=> array(0) { } ["bcc":protected]=> array(0) { } ["ReplyTo":protected]=> array(0) { } ["all_recipients":protected]=> array(1) { ["k44@gmail.com"]=> bool(true) } ["attachment":protected]=> array(0) { } ["CustomHeader":protected]=> array(0) { } ["lastMessageID":protected]=> string(50) "" ["message_type":protected]=> string(5) "plain" ["boundary":protected]=> array(3) { [1]=> string(35) "b1_c85d5f49caeb8fcb01e07b2d5aa70e6f" [2]=> string(35) "b2_c85d5f49caeb8fcb01e07b2d5aa70e6f" [3]=> string(35) "b3_c85d5f49caeb8fcb01e07b2d5aa70e6f" } ["language":protected]=> array(0) { } ["error_count":protected]=> int(0) ["sign_cert_file":protected]=> string(0) "" ["sign_key_file":protected]=> string(0) "" ["sign_key_pass":protected]=> string(0) "" ["exceptions":protected]=> bool(true) }November 24, 2014 at 1:57 pm #229489Cartographer
ParticipantSorry, I couldn’t think this way.
I had in my mind that maybe a company would like to create a private community, so it would make sense to select βDiscourage search engines from indexing this siteβ but without losing the feature of updating the activity stream…
Well, still doesn’t make sense to me to consider it a feature but that’s just me π
November 11, 2014 at 8:34 pm #228970In reply to: members list shows when not logged in..
bp-help
Participant@gyfi
Or if you would like a quick and easy plugin solution I offer a couple of premium plugins for that. http://bphelpblog.wordpress.com/2014/09/27/private-bp-pages/
Submit Comments, Tips or Tricks, or Job InqueriesNovember 11, 2014 at 2:16 pm #228950In reply to: members list shows when not logged in..
Hugo Ashmore
ParticipantYep you’re meant to be able to see pages like that and like activity stream, BP is not intended on being a private community out of the box, securing pages is pretty easy though; try searching the forum please as it’s been discussed many many times.
November 9, 2014 at 4:11 am #228787In reply to: 2.2 top features
donburikun
ParticipantLoving Buddypress 2.1.1. My only big request would be with regard to Private messaging:
1. Allow users to ignore (silently block) users from private messaging them. For example, if you receive a PM from a user you do not wish to converse with (troll, spammer or some other form of harassment) you can simply click “ignore” or “block” to block this user(s). The offending user is not made aware of this and future PM’s send by this person are simply not seen by the recipient while keeping the offender unaware.
Users can edit their block/ignore list to remove/add users from it.
2. Provide site admins the option to prevent users from PM’ing multiple users at the same time.
That’s pretty much it. A simple request that would have a positive impact IMO. Looking forward to the next release. TThanks.
October 31, 2014 at 11:08 pm #228058MBWD
ParticipantOK, thanks. I should clarify that by respond, I don’t mean comment, I mean send email to the original poster, i.e. if someone had an item for sale and the person wanted to send them a private email about it.
October 29, 2014 at 5:06 pm #227933ericreynolds007
ParticipantHi Shane, I’ve gone a different route, hoping to avoid adding user IDs everytime a new Board Member joins the BP site.
From a support request, I discovered that I could exclude or include roles to display in the members loop by adding the following code to the members-loop.php. For the private BP site, using the Members plugin, I created a new role, “bod_member” and reassigned the few members this role. I then added the following code to include only the bod_member…
<?php while ( bp_members() ) : bp_the_member(); $user = new WP_User( bp_get_member_user_id() ); if ( $user->roles[0] == 'bod_member' ) : ?>Unfortunately, upon saving the file, the site returned a parse error, referencing the code below:
<?php endwhile; ?>The error begins with “Parse error: syntax error, unexpected ‘endwhile'”
Am I doing something wrong?
π Eric
October 28, 2014 at 10:05 pm #227863ericreynolds007
ParticipantThanks for the prompt response, Shane.
Yes, only the alphabetical sort displays all MS users. The issue is that the BP site is a private Board of Directors site, while the other sites are maintained by users that are employees and have no business showing up as members of the private BP site.
There are only 12 board members that are BP users vs. 100+ employee users for the other sites.
Any idea of how to write the filter?
π Eric
October 27, 2014 at 5:17 pm #227791FlickChicks
ParticipantI’m still new to buddypress. I’m wondering if this thread might be close to what I need. I don’t want to get any new user notifications sent to me (my admin email address). The notification I get shows the new user’s email address. I want email addresses to be private and drop into some kind of database that I can later use to send newsletters to. Anyway to fix that?
Thanks
October 20, 2014 at 10:43 pm #221279In reply to: Buddypress components access to specific roles only
Henry Wright
ModeratorI’m not aware of a plugin that can do exactly that? Perhaps some of the guys on here know of one?
To do it manually, you could hook a function to
initand work from there. For example:function my_function() { if ( ! is_user_logged_in() && bp_is_current_component( 'messages' ) ) { // Current user is not logged in so don't let them see stuff. In this case, private messages wp_redirect( home_url() ); exit; } $flag = false; // Get current user info. $user = wp_get_current_user(); if ( ! in_array( 'student', $user->roles ) ) { // The current member is not a student. $flag = true; } if ( $flag && bp_is_current_component( 'messages' ) ) { The currently logged-in member is not a student and is trying to view private messaging. Let's redirect them away. wp_redirect( home_url() ); exit; } } add_action( 'init', 'my_function' );From that, you should be able to see how you can achieve what you’re trying to do without the need of a plugin.
Refs:
October 20, 2014 at 7:55 pm #220409danbp
ParticipantNote to lazy people
Definetly using the orange search button on the top right corner of this forum mostly brings good advice. But YOU have to search a bit before asking ! π
https://buddypress.org/support/topic/making-buddypress-private/
October 20, 2014 at 3:26 pm #220262In reply to: I cannot change the text on the Registration Page
danbp
ParticipantMembers are the heart of BuddyPress. When a user register on a BP activated site, this user is automatically a “member”.
So i guess “they are not registering for the site, just the members area” is just impossible. Don’t know what you already did to get a “private” member area, but if you have an issue, it’s mostly because you did something wrong. π
To confirm to readers what you already get to work:
To modify the registration page, on which appears the login fields belonging to WP (user, username, email & password), BP adds his own additionnal fields, under condition you activated the xProfile component.
By default, BP add only one field in the mandatory field group “Base”: NAME.
When the admin add a new field, he can choose between different field status, and depending this status, you will see phrase such as “This field can be seen by: “.
These settings are avaible in Dashboard > Users > Profile Fields
October 18, 2014 at 9:05 am #216996In reply to: Should i use Buddypress?
Paul Bursnall
ParticipantTo create a member only site, I would highly recommend this plugin – https://wordpress.org/plugins/jonradio-private-site/
October 16, 2014 at 1:47 pm #214467In reply to: Should i use Buddypress?
bp-help
Participant1.) For invites try: https://wordpress.org/plugins/wordpress-mu-secure-invites/
To keep logged out visitors from accessing BP pages check out: http://bphelpblog.wordpress.com/2014/09/27/private-bp-pages/
Usernames can’t be changed and if you don’t want users changing their password you would need to custom code it unless you can find a code snippet on the forum or on the net.
2.) You can use filters and you can also try this plugin: https://wordpress.org/plugins/bp-profile-search/
3.) Use bbPress: https://wordpress.org/plugins/bbpress/
You will have to search the plugins directory, the forums, and google the rest for your requirements unless someone else would like to take over where I left off. Hope this is at least a start. Good luck!October 15, 2014 at 9:35 am #213744In reply to: bp_has_members not working after update
b2marketing
ParticipantThanks danbp
Really sorry to bother you again.
I implemented this but it is not removing anyone from the loop. I looked at the gist you linked too and (with my limited php experience) combined with the text in the top
Filter Members List Based On Profile Field – Female members are served a directory of males and male members are served a directory of females.
then I am wondering if I have not explained myself properly.
I want to hide/remove members from the loop who has chosen “private” in their profile. I don’t want any members to be able to see members who has chosen “private”.
October 15, 2014 at 8:16 am #213740In reply to: bp_has_members not working after update
danbp
ParticipantHere’s a snippet to filter members list based on profile field.
Remove your custom members-loop file first and revert to default one.
The example use field ID 62 with value = public
The field is called Privacy in xProfile and use a selectbox field type who shows 2 options: private and public.You’ll probably also have to remove, or to conditionnally show, the top navbar, search box, etc in the template (childtheme/buddypress/members/index.php)
Add this snippet to bp-cutom.php.
class BP_Custom_User_Ids { private $custom_ids = array(); public function __construct() { $this->custom_ids = $this->get_custom_ids(); add_action( 'bp_pre_user_query_construct', array( $this, 'custom_members_query' ), 1, 1 ); add_filter( 'bp_get_total_member_count', array( $this, 'custom_members_count' ), 1, 1 ); } private function get_custom_ids() { global $wpdb; // collection based on an xprofile field $custom_ids = $wpdb->get_col("SELECT user_id FROM {$wpdb->prefix}bp_xprofile_data WHERE field_id = 62 AND value = 'Public'"); return $custom_ids; } function custom_members_query( $query_array ) { $query_array->query_vars['include'] = $this->custom_ids; } function custom_members_count ( $count ) { $new_count = count( $this->custom_ids ); return $count - $new_count; } } function custom_user_ids( ) { new BP_Custom_User_Ids (); } add_action( 'bp_before_directory_members', 'custom_user_ids' );Props @shanebp (tip on github)
October 14, 2014 at 11:34 am #212544In reply to: Should I use BuddyPress for this clients request?
Henry Wright
ModeratorBuddyPress allows you to have:
- member profiles
- an advanced member search (through the BP Profile Search plugin)
- private messaging
So it looks like your requirements are covered. My advice would be to set up a test install and try out all of the features to see if they meet your requirements.
October 8, 2014 at 3:54 pm #206622In reply to: Username Dropdown List
barchiola
ParticipantBy PM I mean Private Message and when I go to the Private Message screen to send one to a user, username suggestions do not appear in the box as I begin to type letters regardless of whether I start with an @ or not.
So I guess that this feature doesn’t exist and that there are no plugins to make it work? -
AuthorSearch Results