How to configure New Friendship Request Notification


#1

Hi,

It is observed that the new friendship notification are currently not coming as in FB friendship notification. Is there any additional configuration to be done to achieve this?

Attachment Link(s):

http://rtcamp.com/wp-content/uploads/rtMedia/topics/66609/2014/06/Fr-notification.png


#2

Hello Rajandran,

We are not added this functionality in InspireBook yet. But we will add it in future release.

Thanks


#3

Thanks for the clarification


#4

not sure if it helps - i added this to an old theme i customised, and made a toolbar that did that…

   function cg_get_friendship_requests() {
    global $bp;
     $notifications2 = apply_filters( 'bp_get_friendship_requests', implode( ',', (array) friends_get_friendship_request_user_ids( $bp->loggedin_user->id ) ) );
	     $count2 = !empty($notifications2) ? count($notifications2) : 0;
	    echo $count2;
}

then

<li>
						<a href="<?php echo $bp->loggedin_user->domain; ?>friends/requests/"><span><img src="http://smeak.com/wp-content/imglib/sbv002.png" style="margin-top: -2px;" title="Friend Requests" /></span>
							<?php $totalFriends = bp_friend_get_total_requests_count(); ?>
							
							<?php if ( $totalFriends > 0 ) { ?>
								<span class="counter" title="New Friend Requests"><?php echo $totalFriends; ?></span>
							<?php } ?>

						</a>
					</li>

#5