Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Again, not true.

$
0
0

Replies: 0

Hi,

You write: Notifications signalizing new messages, new users, absent users or mentioned users. It can be a counter in browser’s title.
It is not true. The function does not work.
You write:
plugin is integrated in buddypress.
Yes, he is integrated into the group and as buddipress friends.
This cannot be called integration into buddypress.
For full integration, he should send a message to the user about sending him a message. This should be in the title of the buddypress theme.
Again, not true.
For an example, look at the buddypress code link and find out where you need to make changes, additions.
Buddypress notification integration
function bpfr_add_notification_to_page_title( $title, $original_title, $sep ) {

//do not change if the user is not logged in
if( ! is_user_logged_in() )
return $title;

$user_id = get_current_user_id();//logged in user’s id

$count = bp_notifications_get_unread_notification_count( $user_id );

if( $count > 0 )
$title = sprintf( “You Have %d New Notification(s) – “, $count );

return $title;

}
add_filter( ‘wp_title’, ‘bpfr_add_notification_to_page_title’, 100, 3 );
Do not fool customers.
Give the code of your plugin, we will complete the integration in buddypress and send it to you.


Viewing all articles
Browse latest Browse all 59525

Trending Articles