How to access other members messages ?
-
Hi, i tried to access unread messages from other users, but the following code gives me only access to the account messages, i am logged in with.
Here is a part of the code. If i use another user ID then the current logged in account, i get no results.
... $aParams ['box'] = 'inbox'; $aParams ['per_page'] = '99'; $aParams ['user_id'] = $UID; if (bp_has_message_threads($aParams)) { while (bp_message_threads()) { bp_message_thread(); $subject = bp_get_message_thread_subject(); $excerpt = bp_get_message_thread_excerpt(); $from = bp_get_message_thread_from(); $unread = bp_message_thread_has_unread(); if ($unread){ $messages .= ' From: ' . $from . ' Subject: ' . $subject . ' Excerpt: ' . $excerpt; } } } else { return array("message" => "no messages"); } return array("all messages" => "$messages"); ...
I am using WordPress 4.2.2 and BB 2.3.1
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘How to access other members messages ?’ is closed to new replies.