#1 WordPress forum plugin created by gVectors Team

wpForo – WordPress Forum Plugin
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation

Forum

Home | Forum

wpDiscuz - WordPress Comment Plugin
  • Forums
  • Members
  • Recent Posts
Forums
Main Support Forums
How-to and Troubles...
Users with 100 uncl...
 
Share:
Share
Tweet
Share
Notifications
Clear all

Users with 100 uncleared notifications stop getting popup notifications for new notifications

    Last Post
RSS

nando4
Posts: 111
nando4 - Skype
 nando4
Topic starter
July 1, 2020 5:08 am
(@nando4)
Estimable Member
Joined: 5 years ago

Found user with more than 100 uncleared notifications ceased getting new notification popups. Looks like the following array limit in class-activity.php is the problem.  Can you please address this in next version?

 

public function get_notifications(){
$args = array( 'itemtype' => 'alert', 'userid' => WPF()->current_userid, 'row_count' => 100 );
$args = apply_filters( 'wpforo_get_notifications_args', $args );
return $this->get_activities($args);
}
1 Reply
Robert
Posts: 9090
Robert - Twitter
 Robert
Admin
July 1, 2020 12:04 pm
(@robert)
Support Team
Joined: 6 years ago

Hi @nando4,

There is not any bugs here.

The notifications are being registered even if they are more than 100, but they'll not be displayed until you've not cleared some notifications. Only earliest 100 notifications are shown.

This is not a bug. This is a protection. If some forum is hacked and a topic has replied thousands time the page will not be crashed when it's loading the thousands of notifications. Currently, the limit is set 100 and as you can see we've added a filter hook to change the limit.

To increase the 100 displaying limit you can add this hook code to your current active theme functions.php file:

function custom_wpforo_notification_limit( $args ){
if( isset($args['row_count']) ) {
$args['row_count'] = 500;
} return $args;
}
add_filter('wpforo_get_notifications_args', 'custom_wpforo_notification_limit', 10);

 

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Reply
nando4 liked
  All forum topics
  Previous Topic
Next Topic  

Forum Search

Join Us!

Download wpForo plugin
on WordPress.org

wpForo Addons

wpforo-private-messages wpforo-advanced-attachments-128x128 wpforo-embeds-128x128 wpForo User Custom Fields addon wpForo – Blog Cross Posting addon wpForo Ads Manager wpForo – WooCommerce Memberships Integration wpForo Emoticons wpForo – Tenor GIFs Integration
View all Addons »

Recent Topics

  • Suggestion How to make new user to get approve manually before creating post and profile.

    By Adhyansh21, 7 hours ago

  • Posts deleted in database still show up on front-end

    By nylex, 9 hours ago

  • Not all links are automatically added with the "nofollow" attribute

    By st7878, 12 hours ago

  • Editors assign users to groups

    By mike_netinfo, 14 hours ago

  • Set password link opens forum login page instead of set password page

    By JanJan, 14 hours ago

  • User banned for using icons?

    By JanJan, 14 hours ago

Topic Tags

  • css52
  • translation50
  • plugin conflict48
  • seo47
  • new features45
  • buddypress43
  • avatar41
  • moderation40
  • ultimate member40
  • login40
  • forum40
  • registration37
  • threaded layout35
  • cache34
  • editor33
  • menu33
  • spam32
  • shortcode32
  • forum accesses30
  • widget29
View all tags (2190)

Recent Posts

  • RE: Not all links are automatically added with the "nofollow" attribute

    I have no idea, i guess not.

    By dimalifragis, 20 mins ago

  • RE: How to make new user to get approve manually before creating post and profile.

    Thanks again

    By Adhyansh21, 4 hours ago

  • RE: Posts deleted in database still show up on front-end

    Ok then, wait until someone from wpForo support will he...

    By dimalifragis, 7 hours ago

  • RE: Set password link opens forum login page instead of set password page

    Hi @janjan, Go to Dashboard > Forums > Settings...

    By Chris, 11 hours ago

  • RE: Editors assign users to groups

    Hi @mike_netinfo, Only administrators can change user...

    By Chris, 12 hours ago

  • RE: Font Awesome Icons

    @seancallahan, It's better if you revert all your cha...

    By Chris, 12 hours ago

  • RE: Is there a way to add safety features?

    Hi @seancallahan, It's not recommended to install the...

    By Robert, 13 hours ago

Share:
Share
Tweet
Share
  Forum Statistics
21 Forums
9,931 Topics
50.2 K Posts
5 Online
47.9 K Members

Latest Post: Not all links are automatically added with the "nofollow" attribute Our newest member: tatianacalvert Recent Posts Unread Posts Tags

Forum Icons: Forum contains no unread posts Forum contains unread posts

Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Powered by wpForo | Copyright © 2016-2022 gVectors Team
Copyright Registration Service - Click here for more information or to register work
wpForo is Registered with the IP Rights Office
Copyright Registration Service

Ref: 4477265538
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation