Dragonfruit
Well-known member
Suggestion for future update: If it's possible to remove the detected users swap group, and reset the detection count to 0 when they upgrade to a specific premium membership, I think that would help a lot.
You should be able to do this as-is now with permissions and usergroups.Suggestion for future update: If it's possible to remove the detected users swap group, and reset the detection count to 0 when they upgrade to a specific premium membership, I think that would help a lot.
Choose usergroups you want to ignore, such as administrators and moderators
You might want to ignore any "paid user" usergroups
Ignored users will not be tracked or moved between usergroups
If you make changes to ignored roles please rebuild cache: (has link to rebuild)
You should be able to do this as-is now with permissions and usergroups.
For instance, you can "ignore" paying memberships from detection. These ignored "paying" memberships will not be moved between usergroups and will not be "detected".
The option has the following notes to keep in mind:
Yep exact same scenarioWe had an incident where someone saw they were adblock detected, so they had been moved into the group, then paid for premium, but they weren't moved back out.
That's where the suggestion came from.
This was a few weeks ago on a previous version right? This was resolved in a recent update unless you tell me otherwise. Please let me know.We had an incident where someone saw they were adblock detected, so they had been moved into the group, then paid for premium, but they weren't moved back out.
That's where the suggestion came from.
Two things just to confirm:Yep exact same scenario
This was a few weeks ago on a previous version right? This was resolved in a recent update unless you tell me otherwise. Please let me know.
- NEW: Tested with xenForo v2.3.4
- NEW: Added dynamic remote loading javascript to detection #3
- NEW: Updated detection to version 3 (#1, #2, #3 Detection)
- NEW: Added XHR timeout to remote loading to prevent hanging requests (#3 Detection)
- NEW: Improved detection for primary detection method (#1 Detection)
- NEW: Added additional surface level check to primary detection method (#1 Detection)
- FIX: Added two tested alternatives to the "Remote AdNetwork JavaScript URL"...
That's not good. Are you using anything special for upgrades (add-ons), or just the built-in system that ships with xenforo?@Wutime I've been using 2.3.4 and I need to manually rebuild caches every time a user in my adblocking user group upgrades to a supporting member user group. Otherwise they're stuck in the adblocking user group along with their new supporting member user group. This is supposed to happen automatically but it's not doing so for me. Is there some setting that I've missed that can be causing this?
So I've reviewed the code that fires on a user group change and realize that, while it deletes the "detected" data and all entries, it doesn't actually remove the detected role.I've been using 2.3.4 and I need to manually rebuild caches every time a user in my adblocking user group upgrades to a supporting member user group.
- FIX: Properly remove AdBlock user group on entity delete
- FIX: On user upgrade, delete detected entity and properly remove AdBlock user group
Thank you. I have updated to the latest version and will let you know how it goes the next time I get an account upgrade in this situation. I appreciate the quick response.@Sal Collaziano the latest update should resolve the bug you were encountering. Please ensure you have your paid user groups added to the "ignore roles" in the add-on's options (just a reminder).
Based on the last update, it should happen once the useruprage is approved.@Wutime, quick question... If a user is in the ad block usergroup and upgrades to a usergroup that the add-on should ignore - is the swap back out of the ad block usergroup instantaneous? Or does it happen based on a cronjob or community activity - something like that...?
For me, I need to manually rebuild the cache each time a user purchases an upgrade. Would it make sense to have the option to do this automatically when an upgrade is purchased? Is that even possible? And if so, would that cause any issues?@Sal Collaziano what's your experience been? It's r ally difficult to test locally for me because it's hard to simulate paid upgrades from localhost, but I tried to be meticulous with the code.
The removeUserGroupChange method in XenForo does not rebuild the user's cache automatically. While it removes the specific user group change record from the xf_user_group_change table, it does not trigger a rebuild of the user's group cache.
$user = \XF::app()->find('XF:User', $userId);
if ($user) {
$user->rebuildUserGroupCache();
}
We use essential cookies to make this site work, and optional cookies to enhance your experience.