vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Board Optimization - Adblock Alert (https://vborg.vbsupport.ru/showthread.php?t=299371)

TheInsaneManiac 06-20-2013 10:00 PM

Adblock Alert
 
1 Attachment(s)
This is a minor port of my 3.8.x modification found HERE.

Demo
http://www.consolediscussions.com/forum/


To purchase and view more information on our pro version of Adblock Alert, please visit my
Products & Services!

The pro version has the following features, and includes free updates:
Redirect users of abp
Early Access New Features
All Future Updates To PRO


To-Do
Enable/Disable
[S]Auto Template[/S]
Link into default notification system
Usergroup settings
Redirect if ABP detected
[S]Cookie system to only display message once per session[/S]
Color of message
Index only option
Add location of message
[S]New type of alert style[/S]

This is a minor port, I am working now to fully port everything over along with a premium version.

I use Google Adsense on my website and considering Google Adsense is not malicious, I feel no need for adblocking software of any kind.

Therefor I have created this system which will alert members that ads are used to support the server. Wait... What's that? You don't want to annoy a member with constant alerts? No worries! This system works off of cookies, so once the member views the alert, they won't be bothered by it anymore.


Installation
1.) Upload the contents of the "upload" folder to your forums root directory.
2.) Perform template edits
3.) Mark Installed. =]


Template Edits
Code:

In the navbar template find:
                        {vb:raw notices}
                </ol>
        </form>
</vb:if>

After add:
Code:

<script type="text/javascript" src="abp/adblock_detector.js"></script>
<script type="text/javascript">
if (document.getElementById("TestAdBlock") == undefined)
{
        document.write('<br /><div style="background-color: yellow; border-width: 2px; border-style: dashed; border-color: red;"><center><font color="red"><strong>Adblock Plus</strong> detected! Please help support Console Discussions, by disabling ad-blocking software.</font></center></div>');
}
</script>


FAQ
Q: Why is it not working?
A: Make sure you uploaded everything and installed the mod. Also make sure template edits are completed.

Q: How does this work?
A: I've used adblocking software against them. I've made a fake advertisement which is never displayed on the forums, but is within the coding. Since the soul purpose of adblocking software is to of course... block ads. It blocks this advertisement, in which the script checks to see if the advertisement loaded. If not, the alert is displayed.


Changelog
0.3.2
Color now fades when hovering over alert

0.3.1
Cookie system brought to free edition

0.3.0
Changed Alert Style

0.2.0
Auto Template Edit

0.1.0
Release.

Nirjonadda 06-21-2013 08:22 PM

So Its manual Template Edits modifications? Please make sure your work up To-Do List than try to Release.:up:

davidg 06-21-2013 10:32 PM

works fine with opera and firefox having adblock plus enabled
dont work with SuperBird browser having adblock plus and Chromeblock from Abine enabled

TheInsaneManiac 06-22-2013 02:02 AM

Quote:

Originally Posted by Nirjonadda (Post 2429667)
So Its manual Template Edits modifications? Please make sure your work up To-Do List than try to Release.:up:

I've already almost completed the Auto Templates by going through a hook. I'm going to try to put the final touches on the cookie script and see where we can go from there. Hopefully will release it shortly.

Quote:

Originally Posted by davidg (Post 2429681)
works fine with opera and firefox having adblock plus enabled
dont work with SuperBird browser having adblock plus and Chromeblock from Abine enabled

I've never heard of that browser, I've tested it in all the known ones, what is it doing in SuperBird? Any screenshots?

davidg 06-22-2013 04:25 PM

Quote:

Originally Posted by TheInsaneManiac (Post 2429695)
I've already almost completed the Auto Templates by going through a hook. I'm going to try to put the final touches on the cookie script and see where we can go from there. Hopefully will release it shortly.


I've never heard of that browser, I've tested it in all the known ones, what is it doing in SuperBird? Any screenshots?


sorry i dont have screenshots i still did a fast test with IE8 and Superbird and the addon is not working with them(maybe is only me) but works fine with Opera and Firefox.
SuperBird is Chromium based.

TheInsaneManiac 08-13-2013 10:52 AM

Quote:

Originally Posted by davidg (Post 2429794)
sorry i dont have screenshots i still did a fast test with IE8 and Superbird and the addon is not working with them(maybe is only me) but works fine with Opera and Firefox.
SuperBird is Chromium based.

I've changed the design and a little of the coding, it appears to be showing in those browsers for me now.

Also 0.3.1 is now released! Cookies are added to remember if a users clicks the close button, and will not show the alert again until cookies are cleared. Coming soon is a redirect option, permissions, and more!

Bacon Butty 08-13-2013 01:46 PM

Looks great so far, well done. I will be sure to keep a close eye on this!

final kaoss 08-13-2013 02:46 PM

Just something I thought about, what does google think about these messages being displayed to not use adblock, because they have a section that someone can use to report a site for "encouraging users to click ads"?

While your default text doesn't exactly say that, what would happen if a user submitted your site to the adsense guidelines for that rule?

Bacon Butty 08-13-2013 03:22 PM

Installed and the navbar alert is working just great. How do I have the Red Box along the side as per screenshot and Demo?

TheInsaneManiac 08-13-2013 07:14 PM

Quote:

Originally Posted by final kaoss (Post 2438658)
Just something I thought about, what does google think about these messages being displayed to not use adblock, because they have a section that someone can use to report a site for "encouraging users to click ads"?

While your default text doesn't exactly say that, what would happen if a user submitted your site to the adsense guidelines for that rule?

I've already clarified with them, their response was they in no way endorse or support Adblock Plus, and as long as you aren't encouraging to click the advertisements, then they do not care.

They despise abp, remember a few months back they removed abp off Google Play and Chrome market place?


Quote:

Originally Posted by Bacon Butty (Post 2438669)
Installed and the navbar alert is working just great. How do I have the Red Box along the side as per screenshot and Demo?

Did you install the 0.3.1 version?


All times are GMT. The time now is 10:02 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01307 seconds
  • Memory Usage 1,747KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete