AdBlock Tracker & Usergroup Swap

AdBlock Tracker & Usergroup Swap [Paid] v2.4.2

No permission to buy ($45.00)
Update to v2.2.8 and try this:

You can add an option to your config.php as follows.

I recommend you use a unique variable name in your config.php

This example uses: isAdBlocking

Update your config.php as shown below.

Please ensure you have guest tracking enabled in the Add-On options or the following will changes will have no effect within templates for guests:

Config.php Update
PHP:
/* AdBlock Tracker and Usergroup Swap */
/* https://xenforo.com/community/resources/adblock-tracker-usergroup-swap.7530/field?field=faq */
$config['adBlockTrackerGuestSession']['enabled'] = true;
$config['adBlockTrackerGuestSession']['config'] = [
    'variable' => 'isAdBlocking', // recommend using something unique here
    'removeOnNonDetect' => true,
    'forceRemoval' => false,
];

You can access the following in your templates once this is set.

Here's an example:

Code:
<xf:if is="$xf.session.isAdBlocking">
    <div style="background-color:#f8d7da;color:#721c24;padding:20px;border-radius:8px;">
        <p>Ad Blocking Detected!</p>
        <p>Pages counted: {{ $xf.session.isAdBlocking }}</p>
    </div>
</xf:if>

By default, your variable will be the count of the number of page views AdBlocked consecutively.

If the AdBlocker is disabled the session variable will be unset and cleared.

Note, depending on your caching system you may need to enable forceRemoval. This will delete the sessionId from the database directly. Use at your own risk.
Works really well. Thank you! Its great to be able to target guests as well as registered users this way.
 
Wutime updated AdBlock Tracker & Usergroup Swap with a new update entry:

v2.3.2 - Added user displays to show clear and adblocking by default

  • Two new options under "User Displays"
    • Option to allow full history (shows both "Clear" and "AdBlock" history instead of just "AdBlock" history)
    • Option to "hide history" when user is clear and only show the thank you message
  • CHANGE: "Maximum device history records to display"
    • When set to 0, it will show 3x or 6x "Always preserve device records"
    • Or, it will obey the maximum set
  • ADDED: Two phrases with corrected English:
    • ...

Read the rest of this update entry...
 
Two new options under "User Displays"
  • Option to allow full history (shows both "Clear" and "AdBlock" history instead of just "AdBlock" history)

Thank you! Been meaning to suggest that for a while? Possible to also add info on type of adblock ie dns level etc?
 
This is a brilliant add-on, thanks.

Appreciate it's a game of cat and mouse, and it'll never work across all - but if helpful I've found Firefox/adblockultimate.net evades detection.
 
Wutime updated AdBlock Tracker & Usergroup Swap with a new update entry:

v2.3.2

  • NEW: Added the ability to choose a specific remote loading JavaScript URL that matches your current AdServing network
    • Adds a performance improvement by not having to reload an existing asset if its already available (only applies if using Remote Loading Detection)
  • UPDATE: Added validation to URL's to ensure they're semantically correct URL's
* forgot to add these update notes to the previous update

Read the rest of this update entry...
 
Oh it looks like it's updated with the same version number as before.

Oh wait, it's just notes update. Sorry, I was just eager for your next update.
 
There is a bug.
Wutime\AdBlockTracker\Repository\Detected is being referenced but doesn’t exist.
It causing a server error with one of our addons.
 
With 2.3.3 we're getting very frequent server errors:
Server error log
  • Error: Call to undefined method Wutime\AdBlockTracker\Repository\Detected::findOneBy()
  • src/addons/Wutime/AdBlockTracker/XF/Service/User/UserGroupChange.php:17
  • Generated by: Unknown account
  • Oct 8, 2024 at 4:12 PM

Stack trace​

#0 src/addons/PatreonSync/Job/Scan.php(132): Wutime\AdBlockTracker\XF\Service\User\UserGroupChange->addUserGroupChange(441287, 'patreonUsergrou...', '29')
#1 src/addons/PatreonSync/Job/Scan.php(92): PatreonSync\Job\Scan->processTierStatus('1000', Object(SV\BookmarkEssentials\XF\Entity\User), '29', 1000)
#2 src/XF/Job/Manager.php(260): PatreonSync\Job\Scan->run(8)
#3 src/XF/Job/Manager.php(202): XF\Job\Manager->runJobInternal(Array, 8)
#4 src/XF/Job/Manager.php(86): XF\Job\Manager->runJobEntry(Array, 8)
#5 job.php(43): XF\Job\Manager->runQueue(false, 8)
#6 {main}

Request state​

array(4) {
["url"] => string(8) "/job.php"
["referrer"] => string(57) "https://www.avforums.com/forums/4k-ultra-hd-blu-rays.272/"
["_GET"] => array(0) {
}
["_POST"] => array(0) {
}
}
I've had to disable it because of the thousands of errors.
 
I never realized that, after installing this, users get an option in their preferences:
Screenshot 2024-10-15 at 2.24.23 PM.webp

I feel like allowing these should be an option in the Admin section. It can be misleading if you're not adding people to groups.....or at the very least removed from their preferences when using it in Track-Only Mode.
 
I never realized that, after installing this, users get an option in their preferences:
View attachment 312531

I feel like allowing these should be an option in the Admin section. It can be misleading if you're not adding people to groups.....or at the very least removed from their preferences when using it in Track-Only Mode.
That's a good point. I'll check how it decides if it's rendered.
 
Back
Top Bottom