XF 2.3 User Promotion working inconsistently

C Allingham

Member
I want new members to post 5 times before earning Direct Message privileges. To accomplish this, I created a new user group called "Registered Plus" that includes DM privileges and took away DM privileges from the "Registered" user group. I then created a user group promotion that adds users to the "Registered Plus" group when "User has posted at least X messages" = 5. I then ran Cron Entries "User Group Promotions" and it added some qualified members to "Registered Plus" but not others, e.g. a guy with 25K post is not added but another guy with 21K posts is added.

UPDATE: I have also tried the "Run Now" task from the User Group Promotions page as well as Tools > Rebuild Caches > Rebuild User Group Promotions and still have this problem.

Any thoughts about why this promotion is not being applied to all members that meet the criteria of 5 or more posts?
 
Last edited:
Sorry, I forgot to mention in my original post that I've also tried the "Run Now" task from the User Group Promotions page as well as Tools > Rebuild Caches > Rebuild User Group Promotions and still have this problem.
 
If the accounts are not being promoted then they don't meet the criteria, or they are being immediately downgraded.

The change log tab on a specific user account will show if that is the case.
 
I'm having this same issue on 2.3.4, despite the user logging in/logging out to activate it.

The cron is custom (using the same listener) on a 2-minute interval. So, they should get promoted while logged in, and demoted when they choose to remove themselves (user preference) from the user group. Selecting that they want to be in it should activate that user group within 2 minutes because they're actively logged in and browsing, and vice-versa, but it won't work unless I run the task.
 
It's really curious because the only critieria for promotion is:

Apply this promotion while...
Content and achievements
  • User has posted at least X messages: 5
Nothing else checked on this tab and nothing checked on the "User field criteria" tab.

I ran Tools > Rebuild Caches > Rebuild User Group Promotions once again and checked one of the problem user accounts. The user has not been promoted to secondary user group "Registered Plus" and there's no entry in their change log. And this account has 20,582 posts so they meet the "at least 5 messages" criteria for promotion.

Untitled-1.webp

Untitled-2.webp
 
It's really curious because the only critieria for promotion is:

Apply this promotion while...
Content and achievements
  • User has posted at least X messages: 5
Nothing else checked on this tab and nothing checked on the "User field criteria" tab.

I ran Tools > Rebuild Caches > Rebuild User Group Promotions once again and checked one of the problem user accounts. The user has not been promoted to secondary user group "Registered Plus" and there's no entry in their change log. And this account has 20,582 posts so they meet the "at least 5 messages" criteria for promotion.

View attachment 313591

View attachment 313592
Post the promo config.
 
Mine is more or less the same except it's not "at least X messages" but a custom user field on User field criteria for Yes/No option selectable by the user.

If the cron only runs for those logged in or active, then it triggering every 2 minutes should allow them to toggle it on and off while they're actively browsing the site.

However, only the task does it.

This was not the same as 2.3.3. You could select Yes and it'd add you to the group within 2 minutes or select No and it'd remove you within 2 minutes.

Something had to change if both he and I are having similar issues (except his he's stating the task doesn't help).
 
Back
Top Bottom