Search Results for 'private'
-
Search Results
-
Hi there,
I need to, with the user that is logged in, both create a group and add said user as the admin of the group. I’m able to create the group, But when I try to add the user, it just doesn’t want to work.
if any kind soul would help me on this I would greatly appretiate it 🙂
_________________code used________________________
//create group
$candidate_id = bp_loggedin_user_id();
$defaults = array(
‘group_id’ => $this->job_id,
‘creator_id’ => $candidate_id,
‘name’ => ‘asd’,
‘description’ => ‘sdf’,
‘slug’ => ‘dfg’,
‘status’ => ‘private’,
‘enable_forum’ => 1,
‘date_created’ => bp_core_current_time()
);
groups_create_group( $this->job_id );//add user to the group
groups_join_group( $this->job_id, $candidate_id);
_________________________________________-Hi, Is it possible to add a “private message” button in the members’s directory page.
I have found thisbut it is not working when I put it in the “bp-custom.php” file.
Any other ideas?
Thank you.
Hello, I am new to using BuddyPress. I have a client who is interested in setting up a social platform. For the most part I understand how BuddyPress will handle most of the functionality that they need.
However, there is one aspect that I am curious about. When a user is logged in they will have a private user page with options to manage their profile as well as a public profile page to be viewed by other members. In addition to this – my client would also like to include another Private profile type page that keeps track of the users progress and saves info/where they left off.
To clarify this further, each member will have a journey dashboard. The journey dashboard is an area that will have a step by step “program” where users can go in start with step one and be able to take exercises/quizzes. If I create this/or use a plugin, will I be able save/link what they have done to their own account so that when they log back in they will only see their own progress and so on.
It is also important to link to their account because I want to display certain aspects of this element on their profile pages. (Example – what step they are on – and recent exercises they have taken.)
Thank you So much.
SimoneTopic: Private Messages
Hello,
Is there a way to remove e-mail IDs and consecutive numbers from private messages sent between users?
This code was found online for email IDs. Can someone please advise? Thank you in advance.
/*remove email addresses from private messages
Buddypress remove email id from private messages
*/ function wdw_remove_email_from_private_msg($message){ $replacement = "[removed]"; /*if you dont want any replacement text, replace the above line with $replacement = ""; */ return preg_replace("/[^@\s]*@[^@\s]*\.[^@\s]*/", $replacement, $message); /*the code is short and works in most cases but not full proof. Check http://www.linuxjournal.com/article/9585*/ } add_filter('messages_message_content_before_save', 'wdw_remove_email_from_private_msg'); add_filter('messages_message_subject_before_save', 'wdw_remove_email_from_private_msg');Is it possible to create a daily private journal for every user on Buddy Press, where they can pen their private notes (and make them public if they want? – like on https://penzu.com/)
If not, is there a Word Press plugin that can do this and work with BuddyPress?
do you remember that in the user profile appear as buttons to write private or public messages?
I would like to add more buttons (and I did it – I do not remember which files have changed…) but I wish these buttons are only visible in your profile and not at all (thus the reverse of what happens to the buttons of the listed messages above). How can I do? thank youI’m running WP 4.7, BP 2.7.4, site url is http://www.charlottemasoneducation.org
I have Twenty Twelve activatedI have a static home page set as the “Register” page (because the site is private). Once people register, I am using the BP Login Redirect plugin to redirect them to the “Activity” page.
The problem exists when I click on the header to go to the homepage, or type in http://www.charlottemasoneducation.org *after* being logged in, it takes you to the “Member” page. I want it to go to the Activity page at that point. But I can’t set the home page to the Activity page because it has to remain the Register page.
Please help!
I have my site set up so that people can register and create their username which can be their email address. When composing a private message to such a user I’ve noticed if I manually enter their email in the To field it says “Message could not be sent because you have entered an invalid username. Please try again.” If I go to the user’s profile and click send Private Message it autofills the To field and lets me send it that way.
Is this a known issue or am I missing something?
Thanks for your help!
Hi BuddyPress,
I want to keep my site as private as possible.
I would like to disable access to non-logged in users to the members directory or any other profile related pages. If they do try to access then they get re-directed to homepage.Please could you send me the php I need to add to my functions.php to achieve this??
Many Thanks
Topic: new query arg
This code allows you to sort activity from most favorited activity to least favorited activity.
class BP_Loop_Filters { // Constructor public function __construct() { $this->setup_filters(); } // Filters private function setup_filters() { add_filter( 'bp_activity_get_user_join_filter', array( $this, 'order_by_most_favorited' ), 10, 6 ); add_filter( 'bp_activity_paged_activities_sql', array( $this, 'order_by_most_favorited'), 10, 2 ); // Maybe Fool Heartbeat Activities! //add_filter( 'bp_before_activity_latest_args_parse_args', array( $this, 'maybe_fool_heartbeat' ), 10, 1 ); } /** * Ninja Warrior trick to reorder the Activity Loop * orders by most likes highest to least */ public function order_by_most_favorited( $sql = '', $select_sql = '', $from_sql = '', $where_sql = '', $sort = '', $pag_sql = '' ) { $r = $select_sql; if ( empty( $r['meta_query'] ) || ! is_array( $r['meta_query'] ) ) { return $sql; } else { $meta_query_keys = wp_list_pluck( $r['meta_query'], 'key' ); if ( ! in_array( 'favorite_count', $meta_query_keys ) ) { return $sql; } preg_match( '/\'favorite_count\' AND CAST\((.*) AS/', $sql, $match ); if ( ! empty( $match[1] ) ) { $sql = str_replace( 'ORDER BY a.date_recorded', 'ORDER BY '. $match[1] .' + 0', $sql ); } } return $sql; } } // 1, 2, 3 go ! function bp_loop_filters() { return new BP_Loop_Filters(); } add_action( 'init', 'bp_loop_filters' );
with query args like this:
// order activity by favorited. $query_args = array( 'meta_query' => array( array( 'key' => 'favorite_count', 'value' => 1, 'type' => 'numeric', 'compare' => '>=' ), ), );
Does anyone know how to add a new parameter argument for this? instead of
favorite_count
, I would like something likeorderby_favorite_count
.The reason is, I’ve got custom pages where I like to manipulate the activity loop in a variety of ways, and if I don’t use that
class BP_Loop_Filters
, then this query args code:$query_args = array( 'meta_query' => array( array( 'key' => 'favorite_count', 'value' => 1, 'type' => 'numeric', 'compare' => '>=' ), ), );
will get activities that have been favorited at least x amount of times, but ordered by date_recorded.
So I would like to be able to
1. order activities from most favorited, to least favorited, and
2. order activities by date with activities that has been favorited at least x amount of times.At the moment I can only do one or the other.
Any help appreciated.
Hi…I have BBpress and Buddypress in my WP…I had cerated couple of private groups and also created corresponding private forums which linked to the respective private groups…I had listed the forum index in a page…When a non member try to click on private forum its auto redirect to home page…It will confuse the users…My intention is if a non-member click a private forum ..it should show a message like ” you need to be a member of this group to access this forum” or redirect to a page which i can show the message…Is it possible…?.. m using latest versions of BB and BD press.Pls help wth your expert advices.
Topic: Private Message Questions
I was in the midst of creating a “Help & Support” page for my users, when I realized something weird (weird to me.)
I viewed the member list, and I clicked on a member. Then, I clicked “Private Message,” to send the member a private message. Then, this is what transpired: (PLEASE ZOOM IN TO SEE THE BOX I’M TALKING ABOUT)
So, I was sending a Private Message to “Ketzita,” and an input box appeared to the right of her name. I assumed this was a Carbon Copy type deal, so just to get a feel, I typed “fdsgd” in that box, to see what would happen.
Then, I typed a subject like “This is a test,” in the subject box, and I typed a brief message, and clicked “Send Message.”
Here’s what happened: She recieved the message, and I recieved no error message for typing “fdsgd” in that mysterious box.
I think I was wrong about the Carbon Copy thing. That box seems functionless to me; I mean, it does nothing. What is that box for? (The box to the right of the name of the Private Message recipient.)
Ultimately, I will be aiming to do these things: 1) Remove that seemingly functionless box that appears to the right of the Private Message recipient. 2) Remove the “Subject” box as well, in an effort to make the Private Message process extremely quick & simple.
If anyone can 1) explain to me what that box to the right of the recipient is for, 2) explain how to hide/remove it, or 3) explain how to hide/remove the “subject” box for “subjectless” Private Messaging, I will be blessed by your help, and will appreciate any element of this help very much.
Thanks in advance, and peace be with all of my Buddypress comrades!
How can I configure Buddypress to prevent users from adding more than 1 recipient to the “Send To (Username or Friend’s Name)” field on the compose private message page? I would like to do this to reduce the ability of users to spam multiple users at once.
Hi there,
We recently updated BuddyPress 2.3.4 to 2.7.4 but we seem to have a problem with the mentions. Users used to get an notification-email when they were mentioned in the comments on one of our sites. That doesnt happen anymore. But the emails from private messages or replies on activity-updates do work, so it seems not a problem with the webserver or something like that.
I have searched a lot of files/source and it looks like the function bp_activity_sent_mention_email is responsible for these mails, but I cant find this function anywhere.. Does somebody know where I should look to find the problem? Where can i hook into the mention-emails to see whats wrong?
PS: I also added this code, but that didnt help