- NEW: Added the ability to choose a specifc remote loading JavaScript URL that matches your current adserving network
- NEW: Option to display admin options in TABS
- UPDATE: Options have been re-organized as well as placed in groups
- UPDATE: Better descriptors for detection methods provided
- FIX: username not properly passing display under certain conditions
- FIX: opening history display on public side tries to load buttons that are admin only
- ADD: canView permission for AdBlockHistory permission by extending User
- ADD: CSS in xenforo xf:css template for proper inclusion where needed
- Updated title on admin listing page to remove html from <title>
You can add an option to your config.php as follows. I recommend you use a unique variable name in your config. This example uses: isAdBlocking
- FIXED: Moderator/administrative tooltip added for AdBlock History reviewing
- ADDED: Config.php option to enable guest session variable
- ADDED: Config.php option to enable cache busting
- UPDATED: FAQ with help information regarding template modifications
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 (isAdBlocking in this example), 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.
- ADDED: viewAdBlockTrackerHistory permission as a general "General Moderator Permission"
- NOTE: Permission needs to be added to the Moderator group to allow access
- NEW: "View AdBlock Tracker history" now available from member_tooltip
- NEW: Added Easy List selection (can select a list local to your country if needed)
- ADDED: Bait classes are now selected from a live list
- ADDED: Bait class creation is created hourly and cached
- UPDATE: Changed default sort order to list AdBlock first in AdBlock Log
- UPDATE: Remove excessive date information to keep columns thin (same as thread times)
- UPDATE: Added break to list headers to save space
- NOTE: Live bait classes are only available if a cache provider system is defined in config.php
- NOTE: If no cache system is in place the system uses appropriate defaults
- UPDATE: Default options changed for new installs only
- NEW: Widget "AdBlock Status" for displaying AdBlock status in widget areas
- Display criteria: Any, AdBlocking or Clear
- Show: Requirements to clear
- Show: Learn more link
- Show: Thank you for not AdBlocking (depends on Clear status)
- FIX: Route definition for :int<user_id,username> on user_edit
- Resolves all issues with usernames passed through url
- Added user-edit "AdBlock history" buttons:
- Reset: Clears AdBlock Status, decrements swap counter, sets current nondetects and current detects to 0
- Delete: Removes user and deletes all device history (essentially a hard reset)
- Ignore: Resets user and removes the from tracking and log list
- When hidden or deleted by an admin, the user will ALWAYS have their AdBlocking usergroup removed
- When "ignored and hidden", their status will be cleared
- When "deleted" or "reset", their status will be cleared
- FIX: Wrapped user-edit tab/pane in "if $user" (may resolve issue with "Adblock history tab throws error")
- UPDATE: Exit detection immediately if guest, and not tracking guests
- UPDATE: Perform ignored usergroup check in detection API (in case page was cached or admin option was changed during page load)
- UPDATE: Perform crawler check against user-agent ONLY when required
- UPDATE: Perform usergroup check ONLY when required
- Moved "AdBlock Tracker" statistics position and placed it under "Statistics" (now requires "view statistics" permission)
- Added "Unhide all entities" button for XF 2.2x list template (was previously only available on XF 2.3+)
- Added detected list filter: show hidden/ignored
- Added message on user-edit screen if the user is being hidden/ignored
- Added: Browser logging with device type (limited to common 98%+)
- Added: Link to AdBlock history from "AdBlock Tracker Log" in admin
- Added: AdBlock History to user edit tab on user edit page of admin
- Fix: Lightly adjusted columns on "AdBlock Tracker Log" page to make it a bit more legible
- Added: overlay to AdBlock history for username for username (IP shows for Guest only)
We use essential cookies to make this site work, and optional cookies to enhance your experience.