Notifications
Clear all

wpForo 1.x.x [Closed] Not being notified on ultimate member real time notifications

9 Posts
3 Users
1 Reactions
2,747 Views
Posts: 42
Topic starter
(@needurhelp)
Trusted Member
Joined: 5 years ago

Sometimes I reply to my post from another account and I get the notification, other times I don't. It's only working like 25% of the time. What could be the problem?

8 Replies
Robert
Posts: 10590
Admin
(@robert)
Support Team
Joined: 9 years ago

We just tested and didn't found any issue with UM Notification. Make sure you're not replied to your yourself or in your topic. it doesn't create notification if you reply yourself or in your topic.

2 Replies
(@needurhelp)
Joined: 5 years ago

Trusted Member
Posts: 42

@robert

I replied using a different username but same IP. I reply multiple times to different topics but only about 25% of them show up. I'm wondering if it's related to cache or nested replies. Has this been tested on nested replies?

(@needurhelp)
Joined: 5 years ago

Trusted Member
Posts: 42

@robert

Ok, I found out what the issue is. It seems like the notification is being replaced if it's from the same user. So lets say:

User1 posts a reply in your forumtopic1.

Then User1 heads to another forum topic of yours and replies on your forumtopic2.

You will get only 1 notification from User1 and it will link to the reply that was on forumtopic2.

How can I make it so I get 2 separate notifications?

Posts: 42
Topic starter
(@needurhelp)
Trusted Member
Joined: 5 years ago

I found the solution to this problem. It was actually an Ultimate member problem. Anyone having same issue can add this filter to their site.

add_filter( 'um_notifications_exclude_types', 'um_notifications_exclude_types_wpforo' );

function um_notifications_exclude_types_wpforo( $exclude_type ){
   array_push($exclude_type, "wpforo_user_reply", "wpforo_user_reply_to_reply");
   return $exclude_type;
}

You can also exclude other things like profile views if you want UM to notify you of every profile view from the same user/guest:

add_filter( 'um_notifications_exclude_types', 'um_notifications_exclude_types_wpforo' );

function um_notifications_exclude_types_wpforo( $exclude_type ){
   array_push($exclude_type, "wpforo_user_reply", "wpforo_user_reply_to_reply", "profile_view_guest", "profile_view");
   return $exclude_type;
}
4 Replies
Robert
Admin
(@robert)
Joined: 9 years ago

Support Team
Posts: 10590

@needurhelp

As far as I see, you've removed wpForo Reply and Reply to Reply notifications. How this can be a solution? You've turned off those.

(@needurhelp)
Joined: 5 years ago

Trusted Member
Posts: 42

@robert

I asked Ultimate Member support why I wasn't getting every notification from a user who views my profile or replies to me on wpforo multiple times and their solution was to add this filter. I did that and it fixed the issue. I don't think this exclude filter removes them from the notifications. I think it's excluding them from something that prevents multiple notifications from the same user.

It's working normally for me now. It's strange because they don't even have this filter in their documentation. This isn't just a solution for wpforo notifications, also UM profile views. If a user/guest visited my profile and refreshed the page multiple times, I would only get 1 notification for it. After applying this filter, I get notified for each refresh of the page.

Robert
Admin
(@robert)
Joined: 9 years ago

Support Team
Posts: 10590

@needurhelp

Ok, great! Thank you for sharing this solution.

(@hshah)
Joined: 5 years ago

Trusted Member
Posts: 63

@needurhelp

Would you really want to be notified of every refresh?  I can imagine it getting quite crazy lol!

 

@needurhelp @robert

In terms of the filters, UM have tried to cater for repetitive messages and are updating the previous notification when the new one is triggered.  The 'um_notifications_exclude_types' is just a list of notification types not to do that for.