[ABD] Anti Adblock 1.2.0

Any abandoned Extensions will be moved to this forum.

WARNING: Extensions in this forum are not currently being supported or maintained by the original Extension author. Proceed at your own risk.
Forum rules
IMPORTANT: Extension Development Forum rules

WARNING: Extensions in this forum are not currently being supported nor updated by the original Extension author. Proceed at your own risk.
User avatar
Ger
Recognised Extension Developer
Posts: 1853
Joined: Wed Jan 02, 2008 7:35 pm
Location: 192.168.1.100
Contact:

Re: [3.2][RC] Anti Adblock 1.0.0

Post by Ger » Tue Aug 21, 2018 1:24 pm

picaron wrote:
Tue Aug 21, 2018 12:45 pm
Warning: In case there is a previous version of this extension installed in the path /ext/Picaron/AntiAdblock, it is necessary to delete it completely by deleting all the saved data and files hosted on the server prior to the installation of the version 1.2.0, following the steps described in the README.md file included in the extension itself.
Extension Name: Anti Adblock
Author: Picaron

Extension Description:
This extension warns users who use Ad Blockers on our website.
It is fully configurable, being able to select the position and type of the warning message, the time to be displayed, the delay between the warnings and the option to close the message by means of a button with a countdown.
It includes the management of permissions of User Groups and Forums to be able to define when and to whom the warnings will be shown.
It is possible to create texts for as many languages as necessary.
The user who accesses our website and does not have the text of the warning defined in their language, will see the default warning in English.

Anti Adblock 1.2.0
Supported Templates: All.

Requirements:
  • phpBB >=3.2.4
  • PHP >=5.6
Spanish support:
http://www.phpbb-es.com

Download:
Download Anti Adblock 1.2.0

History:
  • 1.0.0 - First release. Code is based in antiblock.org.
  • 1.0.2 - Optimization of the code. Configuration options are included in the ACP.
  • 1.0.3
    - Added option for warning in upper part of the forum.
    - The configuration in the ACP is transferred to the EXTENSIONS tab.
    - Language management is included.
  • 1.0.4
    - Added javascript verification in the warning option at the top of the forum.
    - Added the management of forums and main pages where the Warning will be displayed.
  • 1.0.5
    - The permission management for Users Groups and Forums is added.
  • 1.2.0
    - The code is optimized.
    - The development of the extension in the path /ext/Picaron/AntiAdblock is abandoned.
Installation:
  1. Download the latest release.
  2. Unzip the downloaded release.
  3. Copy the content of /pikaron/antiadblock/ folder to /ext/pikaron/antiadblock/.
  4. Enable extension in the ACP.
  5. Configure by navigating in the ACP -> EXTENSIONS -> Anti Adblock
Screenshots:

Image

ACP
General Options
Image

New Language
Image

Editing Language
Image
clarification:
Entering into a debate about the ethics that each one has on the topic of advertising on web pages, is not the purpose of this thread.
I have limited myself to creating a tool that can be used by anyone who considers it. ;)

You might want to read up on Including CSS and JS since in this form your extension certainly won't get validated.

Apart from that, interesting extension. Your approach is a bit rough though; it makes the site unusable when an adblocker is active. Many sites just display a message instead; asking to disable the adblocker. You even might want to consider to show only the first post of topics with activated adblocker but completely disabling will probably just alienate the visitors.
My extensions:
Simple CMS, Feed post bot, Avatar Resize, Modbreak, Magic OGP, Live topic update, Modern Quote, Quoted Where (GDPR) and Autoresponder.
Newest: FAQ manager for 3.2

Like my work? Buy me a coffee to keep it coming. :ugeek:
-Available for custom work-

User avatar
</Solidjeuh>
Registered User
Posts: 1684
Joined: Tue Mar 29, 2016 3:45 am
Location: Aalst (Belgium)
Name: Andy Dm
Contact:

Re: [3.2][RC] Anti Adblock 1.0.0

Post by </Solidjeuh> » Tue Aug 21, 2018 1:44 pm

I agree with Ger. Blocking the whole forum is bad idea. Most visitors will just leave the forum instead of disabling the adblocker. (I'm one of them)
Register a free account & Play!!
~~~ https://www.solidjeuh.be ~~~

fagbutlil
I've Been Banned!
Posts: 77
Joined: Wed Mar 07, 2018 10:56 pm

Re: [3.2][RC] Anti Adblock 1.0.2

Post by fagbutlil » Thu Aug 23, 2018 7:25 am

I just leave a site that use add's if i want to see the adds i just go to facebook.

User avatar
david63
Registered User
Posts: 16324
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: [3.2][RC] Anti Adblock 1.0.2

Post by david63 » Thu Aug 23, 2018 8:14 pm

picaron wrote:
Thu Aug 23, 2018 7:57 pm
One question: What does a user run away from?
1.- To a website that contains advertising.
2.- To a website that requires payment of a fee to be able to use it.
3.- To a website that is free and has no advertising - which believe it or not is the still the majority of sites.
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
3Di
Former Team Member
Posts: 13907
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: [3.2][RC] Anti Adblock 1.0.2

Post by 3Di » Thu Aug 23, 2018 8:59 pm

it's a nice extension, as long as there is a switch in place.
I personally don't care about an advice if I can get rid of it asap.
Please PM me only to request paid works. Thx.
Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user
Extensions, Scripts, MOD porting, Update/Upgrades
👨‍🏫 | Take a tour to | The Studio | 👨‍🏫

KYPREO
Registered User
Posts: 86
Joined: Fri Feb 02, 2018 9:56 am
Contact:

Re: [3.2][RC] Anti Adblock 1.0.2

Post by KYPREO » Mon Aug 27, 2018 1:41 am

fagbutlil wrote:
Thu Aug 23, 2018 7:25 am
I just leave a site that use add's if i want to see the adds i just go to facebook.
Well that doesn't make any sense. Facebook runs ads and sponsored posts and through its cornering of the market has reduced the average CPM of banner ads and taken considerable traffic from third party websites like forums, in turn requiring them to run more banner ads and more intrusive kinds of ads to cover hosting costs.
phpBB user since 2002
www.AusRotary.com

User avatar
donsenilo
Registered User
Posts: 303
Joined: Wed Oct 08, 2014 6:23 pm
Name: Markus
Contact:

Re: [3.2][RC] Anti Adblock 1.0.3

Post by donsenilo » Mon Aug 27, 2018 2:19 pm

Hi

Why is the JavaScript-Warning gone ?

User avatar
donsenilo
Registered User
Posts: 303
Joined: Wed Oct 08, 2014 6:23 pm
Name: Markus
Contact:

Re: [3.2][RC] Anti Adblock 1.0.3

Post by donsenilo » Mon Aug 27, 2018 4:39 pm

picaron wrote:
Mon Aug 27, 2018 3:46 pm
I do not fully understand your question ... Let's see ... :roll:
The Javascript code is still present in a JS file that is generated dynamically from PHP ... :P
In 1.0.2 there was an option to warn people if they have disabled javascript. But in 1.0.3. its gone.

skybound
Registered User
Posts: 138
Joined: Wed Nov 12, 2003 7:11 am
Location: Port Elizabeth - South Africa
Contact:

Re: [3.2][RC] Anti Adblock 1.0.3

Post by skybound » Fri Aug 31, 2018 12:43 pm

Any chance it could include which specific forum it is active in? For example, I don't really mind if members block ads for most of our site, but then I do want the message to display in the classifieds (personal sales) forum.

ngaia
Registered User
Posts: 296
Joined: Sat Apr 23, 2016 4:28 am

Re: [3.2][RC] Anti Adblock 1.0.4

Post by ngaia » Sat Nov 24, 2018 1:36 pm

i have this error, when i try to configure

HTTP 503

Service Unavailable


ReqID: 38153050589156827 • IP: 117.248.161.117 Security by Cachewall

User avatar
RomaamoR
Registered User
Posts: 176
Joined: Tue Feb 24, 2015 4:45 pm
Contact:

Re: [3.2][RC] Anti Adblock 1.0.4

Post by RomaamoR » Mon Dec 03, 2018 5:00 pm

Data entered in the ACP is not saved.
Image

User avatar
RomaamoR
Registered User
Posts: 176
Joined: Tue Feb 24, 2015 4:45 pm
Contact:

Re: [3.2][RC] Anti Adblock 1.0.4

Post by RomaamoR » Mon Dec 03, 2018 7:22 pm

Works. I did not clean the cache.

CamdenJaxx
Registered User
Posts: 3
Joined: Wed Dec 05, 2018 2:12 am

Re: [3.2][RC] Anti Adblock 1.0.4

Post by CamdenJaxx » Wed Dec 05, 2018 2:15 am

Leaving the debate alone, it would be great to assign what usergroups this is shown to. For example, if I have a role for those who have donated, it would be awesome to hide this notice for them. Also, it'd be great to not see this as an administrator of the site as well.

Any chance of adding this feature?

CamdenJaxx
Registered User
Posts: 3
Joined: Wed Dec 05, 2018 2:12 am

Re: [3.2][RC] Anti Adblock 1.0.4

Post by CamdenJaxx » Wed Dec 05, 2018 8:28 pm

I was able to put together a solution for now to alleviate myself from seeing the notice. For anyone wanting to hide this from your moderators and/or administrators, you can make two small file edits to be able to achieve this. Please note that one of these changes adds code to your functions.php file, which will most likely be updated, so these edits will need to be made again if you upgrade your forum software before this functionality is added to the extension itself.
Step 1

Edit: /ext/Picaron/AntiAdblock/styles/all/template/event/overall_header_content_before.html
Find (Near Line 1)

Code: Select all

<!-- IF ANTIADBLOCK_ACTIVE and ANTIADBLOCK_COOKIE and ANTIADBLOCK_MODO > 2 -->
To Hide From Admins Only
Replace With

Code: Select all

<!-- IF ANTIADBLOCK_ACTIVE and ANTIADBLOCK_COOKIE and ANTIADBLOCK_MODO > 2 and S_USER_IS_NOT_A -->
To Hide From Moderators & Admins
Replace With

Code: Select all

<!-- IF ANTIADBLOCK_ACTIVE and ANTIADBLOCK_COOKIE and ANTIADBLOCK_MODO > 2 and S_USER_IS_NOT_M -->
Step 2
Edit: /includes/functions.php

Find (Near Line 4457)

Code: Select all

		'S_USER_LOGGED_IN'		=> ($user->data['user_id'] != ANONYMOUS) ? true : false,
Replace With

Code: Select all

		'S_USER_IS_M'			=> ($auth->acl_get('m_')) ? true : false,
		'S_USER_IS_NOT_M'		=> ($auth->acl_get('m_')) ? false : true,
		'S_USER_IS_A'			=> ($auth->acl_get('a_')) ? true : false,
		'S_USER_IS_NOT_A'		=> ($auth->acl_get('a_')) ? false : true,
		'S_USER_LOGGED_IN'		=> ($user->data['user_id'] != ANONYMOUS) ? true : false,
Now, with any templated files, you can use conditional logic with regards to the user status:
  • S_USER_IS_M
    • User is a Moderator
  • S_USER_IS_NOT_M
    • User is not a Moderator
  • S_USER_IS_A
    • User is an Administrator
  • S_USER_IS_NOT_A
    • User is not an Administrator

User avatar
null2
Registered User
Posts: 472
Joined: Wed Jan 20, 2010 11:03 am

Re: [3.2][RC] Anti Adblock 1.0.4

Post by null2 » Thu Dec 06, 2018 12:26 pm

May I disable this extension for specific groups?
Sorry for my bad english. I'm from USA.

Locked

Return to “Abandoned Extensions”