@yavanna, I got my problem sorted by removing the above mentioned code and using the https://wordpress.org/plugins/buddypress-group-email-subscription/ plugin.
if you could post more details, maybe I can help you out.
Hello @8ball106,
I was looking for this code! I want to know the forums that user is subscribed to! Can you tell me how do I use this code to view the user’s subscribed forums?
@casiepa, thanks for your response. I tried this:
function user_subscriptions_count( $user_id = 1) {
$forum_count = count(bbp_get_user_subscribed_forum_ids($user_id));
echo $forum_count;
}
but didn’t seem to work, could you assist in getting it right?
I was thinking in lines of:
$reply_count = bbp_get_user_reply_count_raw( $user_id);
if($reply_count==0)
echo "<span class='mycustom_new_label'>";
echo "New";
echo '</span>';
Any help would be appreciated regarding how to go about doing it.