Search Results for 'private'
-
AuthorSearch Results
-
November 8, 2017 at 1:59 pm #268891
In reply to: Profile buttons not working (fixed)
Boone Gorges
Keymaster@louisarthur – Thanks for sending me credentials. I’ve logged into your site to have a look.
As you note in your email, there’s no
hrefattribute on these links. It’s not clear to me how this would be the case, but I can give you a starting point for looking into it yourself. Briefly, the buttons will be built without anhrefif the button constructing function passes an emptylink_hrefparameter to theBP_Buttonclass. The functions used in the two cases are different:Message public: https://buddypress.trac.wordpress.org/browser/tags/2.9.2/src/bp-activity/bp-activity-template.php?marks=3090#L3079
Message privé: https://buddypress.trac.wordpress.org/browser/tags/2.9.2/src/bp-messages/bp-messages-template.php?marks=1362#L1360
The logic in each case is different, but since neither is showing up, I’m guessing that one of two things is happening:
1. One of the conditional checks shared between them is failing for some reason:
bp_is_my_profile(),is_user_logged_in().2. Something on your installation – perhaps your theme but probably a plugin (since you said Twenty Seventeen was exhibiting the problem as well) – is filtering both ‘bp_get_send_private_message_link’ and ‘bp_get_send_public_message_link’, and then incorrect returning empty strings.
To test idea #2, you might try – if you can – searching through your codebase for those filter names.
October 23, 2017 at 5:41 pm #268630In reply to: Make friend field visible only to account owner
David Cavins
KeymasterHi @paksunny-
#1 can be accomplished by adding this code to you
bp-custom.phpfile (or wherever you keep your customizations): https://gist.github.com/dcavins/c65f3856dd6ed5be37eef115ab09405a#2 Try this plugin: https://wordpress.org/plugins/buddypress-private-message-for-friends-only/
-David
October 21, 2017 at 8:06 pm #268599Arize Nnonyelu
ParticipantNext time try hiring an expert or consult a more experienced developer in private to sort out some issues.
Without being told the people that started this Buddypress has tried a lot. I don’t think they need this sort of discouragement.
please nobody should regard this topic.
October 19, 2017 at 8:25 pm #268581In reply to: User with multiple groups (bbpress)
David Cavins
KeymasterI’m confused about what you’re trying to do, but if you want to restrict access to forums, then, yes, private groups are an excellent option. First, create a forum in wp-admin, then create a private group. Then, in the group management tab, check the box “Yes, I want this group to have a forum” and select the forum you just created.
Then, only users who belong to private group will be able to use that forum.
October 16, 2017 at 4:08 pm #268524In reply to: Missing activity streams
dhsllc
ParticipantDid you find a solution to recover the activity stream? My private group activity stream is no longer showing past activity even though the activity is still in the database.
October 4, 2017 at 7:55 pm #268350In reply to: Help with this code
livingflame
ParticipantOkey, here is the correct code, thanks to @brajesh
// Adding message button in members directory function filter_message_button_link( $link ) { $link = wp_nonce_url( bp_loggedin_user_domain() . bp_get_messages_slug() . '/compose/?r='. bp_core_get_username( bp_get_member_user_id() ) ); return $link; } function display_private_message_button() { if( is_user_logged_in() && bp_get_member_user_id() != bp_loggedin_user_id() ) { //bp_send_message_button(); ?> <div id="send-private-message" class="generic-button"> <div class="private-message-button generic-button" ><a href="<?php echo filter_message_button_link(); ?>" class="button small secondary radius" rel="add"><i class="icon-envelope"></i></a></div> </div> <?php add_filter('bp_get_send_private_message_link', 'filter_message_button_link', 1, 1 ); } } add_action( 'bp_directory_members_item_last', 'display_private_message_button',9999 );September 28, 2017 at 10:32 am #268250sarahjones123
ParticipantI’m trying to set up a membership site and may go with WooCommerce Membership. But I have a hard time finding a way to solve a problem.
When a member’s membership (via WooCommerce Membership) is cancelled, his Buddypress WordPress user account is still active, which means he can still log in and freely contact other members. i need to find a way to restrict these cancelled members from accessing BP entirely, or at least from Private Message so they can’t contact other members.
So far the closest one i found is this thread
https://buddypress.org/support/topic/hiderestrict-access-to-private-messaging/#post-170393According to the note, USER_TO_DISALLOW would be my cancelled WooCommerce users. But I wouldn’t know which member would cancel (or their membership level) upfront so this codes don’t seem to work for my site. Besides, it’s 4+ years old and I’m not sure if it’s still relevant.
The other one is
https://buddypress.org/support/topic/restrict-private-messages/The moderator said there’s a hook available in BuddyPress called
messages_message_before_savewhich can be used to do things before a message is sent. But I don’t know how to write a function to customize it for my need.Can anyone help? If you happen to know any other membership plugins that can achieve this, I’d really appreciate if you can let me know.
Thank you.
September 26, 2017 at 9:53 am #268216Topic: HTML Form to private message
in forum How-to & Troubleshootinglofiz
ParticipantI am trying to build a contact form that I can load on any page that would send a private message to a user. I already have the selected user/s in an array and now I would like to take that plus form data to (I’m guessing) message_new_message
Sample HTML Form
<form>
<label>Subject</label>
<input id="subjec_input" name="subject_input" type="text">
<label>Message Body</label>
<textarea id="body_input" name="body_input"></textarea>
<button id="submit_btn" name="submit_btn">Submit</button>
</form>
How I think arguments are given to the function
`messages_new_message( $args = array( ‘recipients’ => $user_id, ‘subject’ => $title, ‘content’ => $message );
Any help would be appreciated. Thanks
September 21, 2017 at 4:43 pm #268157In reply to: Help with this code
livingflame
ParticipantHelp me with the code.
I need the Message button visible only to logged in users (Just like the Add Friend button works).Check the code, please.
// Adding message button in members loop function filter_message_button_link( $link ) { $link = wp_nonce_url( bp_loggedin_user_domain() . bp_get_messages_slug() . '/compose/?r='. bp_core_get_username( bp_get_member_user_id() ) ); return $link; } function display_private_message_button() { if( bp_get_member_user_id() != bp_loggedin_user_id() ) { //bp_send_message_button(); ?> <div id="send-private-message" class="generic-button"> <div class="private-message-button generic-button" ><a href="<?php echo filter_message_button_link(); ?>" class="button small secondary radius" rel="add"><i class="icon-envelope"></i></a></div> </div> <?php add_filter('bp_get_send_private_message_link', 'filter_message_button_link', 1, 1 ); } } add_action( 'bp_directory_members_item_last', 'display_private_message_button',9999 );August 16, 2017 at 2:18 pm #267579In reply to: Hiding members page from non-logged in users
shanebp
ModeratorHave you tried BP Simple Private ?
You can also get it here: PhiloPress
July 16, 2017 at 5:09 am #267045In reply to: disable buddypress email sending for custom role?
andrew55
ParticipantRobin W over at bbPress was kind enough to provide this filter for functions.php:
add_filter( 'bbp_get_topic_subscribers', 'rew_filter_subscrbers' ); add_filter( 'bbp_get_forum_subscribers', 'rew_filter_subscrbers' ); function rew_filter_subscribers ($users) { $role = 'my_custom_role' ; $filtered_ids = array(); foreach ( (array) $users as $user_id ) { $user_info = get_userdata($user_id); $user_roles = $user_info->roles ; if (!in_array ($role, $user_roles)) { array_push($filtered_IDs, $user_id); } } return $filtered_ids ; }Used with a custom role, it works great at preventing emails from going out from bbPress.
Of course, BuddyPress sends out several emails (friend request, private messages, etc).
Any ideas on how I can modify the filter above to prevent sending of BuddyPress emails to user if they have a custom role enabled? Even a place to go where I might find some ideas to work with?
Thanks for any suggestions.
June 20, 2017 at 4:23 am #266588In reply to: Creating Specific Forum (Topic) Pages
kariellen35
ParticipantI did end up installing this plugin and it is exactly what I was looking for so thank you!! I would like to request that this question be taken down, if that is ok. It shows up in a google search when I do a search for my domain and I have set it to private in order for it to not show up in a search. If this isn’t possible, than I understand. I just thought I’d ask. Thank you once again for your time and for all of your help!!
Take care,
KariJune 20, 2017 at 4:23 am #266587In reply to: Remove RSS feed
kariellen35
ParticipantThank you so much for your help!! I would like to request that this question be taken down, if that is ok. It shows up in a google search when I do a search for my domain and I have set it to private in order for it to not show up in a search. If this isn’t possible, than I understand. I just thought I’d ask. Thank you once again for your time and for all of your help!!
Take care,
KariJune 18, 2017 at 10:21 pm #266566In reply to: Message Privacy Options
livingflame
Participant// Restrict Private Message to friends.
Does not work with the new BuddyPress. ;-/
June 17, 2017 at 12:58 pm #266554Renato Alves
ModeratorBuddyPress has a API that you can use: https://codex.buddypress.org/component/private-messages/
You can hook at the WooCommerce actions when sending the emails and send your private messages.
Hope that helps! 🙂
June 10, 2017 at 3:16 pm #266411In reply to: Cannot find functions defined somewhere in BP core
artempr
ParticipantNice , Thanks. Actually i d like to change messaging logic a little bit. In case of writing to user a private message i d like not to create a new message thread object, but to search instead for existing message thread between me and the user. If there is one, send my message to that thread and open existing dialog. I ve researched send function and i came to conclusion ,that i must change the function.
I believe that wont hurt the logic.I m alomost sure. What d say other participants about my idea?June 2, 2017 at 2:13 pm #266241In reply to: Hide Members Page When Logged Out
shanebp
ModeratorHave you tried: https://wordpress.org/plugins/bp-simple-private/ ?
You can also get it from PhiloPress.
May 20, 2017 at 1:12 am #266062In reply to: Private BuddyPress Site
metalhead
ParticipantThere is a plugin called BP Simple Private that allows you to restrict access to all Buddypress pages to logged in users only. Then, if people try to visit Buddypress pages after you install the plugin, they will get redirected to the home page.
But if I’m understanding you wrong – and you want to have a separate site just for your buddypress groups, then I will recommend setting up WordPress Multisite.
And if I’m understanding you right – which bells and whistles do you want to disable? I’ve disabled a few things with CSS & PHP hacks – but like what do you want to see gone?
May 16, 2017 at 10:08 am #266018In reply to: Photo media file compression
alancr
ParticipantHi, i was thinking of using the plugin bb media for the users to upload numerous photos to their profiles. As i think with buddypress and bb press the profile only allows one main photo.
Ultimately I would like the users to have a main photo and then their own private photo gallery which other users can see all their profile and gallery photosMay 14, 2017 at 4:49 am #265974In reply to: Need custom login page
metalhead
ParticipantBP Simple Private
May 12, 2017 at 5:49 pm #265965In reply to: How to hide Buddypress for visitors ?
shanebp
ModeratorHave you tried: BP Simple Private ?
May 10, 2017 at 1:12 am #265916jorge17
ParticipantCan I create private groups in which the contents are public for the whole world?
April 28, 2017 at 1:44 pm #265683In reply to: Member Directory Added To Profile Dropdown
shanebp
ModeratorTo prevent non-members from viewing the members directory you can use this plugin:
BP Simple PrivateApril 26, 2017 at 7:08 pm #265630In reply to: Ephemeral Messages
r-a-y
KeymasterYou could probably run a cronjob to remove various activity items and private message threads if they’re older than a certain interval.
Of course, this would need to be custom-developed.
April 26, 2017 at 12:45 am #265623In reply to: Ephemeral Messages
Henry Wright
ModeratorPrivate messaging in BuddyPress is persistent (saved to the db). There is also “flash” messages but these are stored as a cookie and are removed after the page request.
-
AuthorSearch Results