[buddypress-trac] [BuddyPress] #3971: Private messaging sends to multiple users automatically
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Thu Jun 28 02:29:07 UTC 2012
#3971: Private messaging sends to multiple users automatically
--------------------------------+-----------------------------
Reporter: minminloveislonely | Owner: DJPaul
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Future Release
Component: Messaging | Version: 1.5.3
Severity: normal | Resolution:
Keywords: reporter-feedback |
--------------------------------+-----------------------------
Changes (by boonebgorges):
* version: 1.5.6 => 1.5.3
Comment:
OK. Next, in `buddypress/bp-messages/bp-messages-classes.php`, there are
two methods called `get_recipients()`. You want the first one (in class
`BP_Messages_Thread`):
https://buddypress.trac.wordpress.org/browser/tags/1.5.6/bp-messages/bp-
messages-classes.php#L53
Right after line 56 (the one beginning `$results =`), put the following:
{{{
echo '<pre>';
print_r( $wpdb->prepare( "SELECT * FROM
{$bp->messages->table_name_recipients} WHERE thread_id = %d",
$this->thread_id ) );
echo '<br /><br />';
print_r( $results );
echo '</pre>';
}}}
Then, two questions. (1) Do you also see the random member in this list?
(Probably yes.) (2) Can you paste the SQL statement here? Should look
something like `SELECT * FROM wp_bp_messages_recipients WHERE thread_id =
2`
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3971#comment:24>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list