Thanks to @duderuud, @intgbh and @bzcomputers for their help and input
- Fixed injection point for custom themes so the notice shows on custom themes
- Fixed the notice JavaScript flash when the notice isn't to be shown on a non X page view
Oh, and something else, it seems that the notice cannot be closed. Can you please add that option too, just like with the overlay?
Really need the option to close that notice...
I really wish these theme developers would leave the comments in their code that existed in default XF themes; there's no reason to remove them.
Well, preferably with some sort of cookie so it only reappears after deleting temp internet files/cookies.
If that isn't possible for that session?
Edit: I want to avoid that the notice pops up too often...don't want to scare away users.
Yes. That will work. Thanks for the quick fix! Will test the update asapYou can set how many page views it'll appear, every 5, 6, 7, 10, 100, whatever. Good enough?
Yes. That will work. Thanks for the quick fix! Will test the update asap
View attachment 215239
- Added ability to close the notice for the end user
- Ability to close the overlay follows the option setting for "Allow user to close the anti-AdBlock overlay or notice "
- The overlay can now be made almost instantaneous on load (set timer to 0)
Our sandbox is on a separate server at xf2.avforums.com. Not locally.It won't work using "localhost" with AdBlock Plus, I tested. However, it does work with AdBlock Plus on a real domain. The reason is that JS files are served differently under development mode on localhost.
@Wutime
could you please add style properties for notice (top messge), so we could change background color, FA icon, text color...
Nop. I'm asking for notice, not for overlayYou can do this currently by editing template "wutime_adblock_script_detection". Styling settings are at the top in three sections: Dark, Light, Default.
Our sandbox is on a separate server at xf2.avforums.com. Not locally.
Anyway, I installed the latest version on our live https://www.avforums.com site and it's still not showing on Chrome, Firefox or Edge with Adblock installed.
Nop. I'm asking for notice, not for overlay
The standard Xenforo theme with a few small changes to implement our branding.What theme are you using?
Our sandbox is on a separate server at xf2.avforums.com. Not locally.
Anyway, I installed the latest version on our live https://www.avforums.com site and it's still not showing on Chrome, Firefox or Edge with Adblock installed.
We use essential cookies to make this site work, and optional cookies to enhance your experience.