Go Back   vb.org Archive > vBulletin Modifications > vBulletin 4.x Modifications > vBulletin 4.x Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Adblock Alert Details »»
Adblock Alert
Version: 0.3.2, by TheInsaneManiac TheInsaneManiac is offline
Developer Last Online: Feb 2022 Show Printable Version Email this Page

Category: Board Optimization - Version: 4.x.x Rating:
Released: 06-20-2013 Last Update: 08-14-2013 Installs: 59
Uses Plugins Auto-Templates
Additional Files Is in Beta Stage  
No support by the author.

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.

Download Now

File Type: zip Ablock Alert V0.2.0.zip (2.2 KB, 39 views)
File Type: zip Ablock Alert V0.3.0.zip (2.7 KB, 19 views)
File Type: zip Ablock Alert V0.3.1.zip (2.9 KB, 30 views)
File Type: zip Ablock Alert V0.3.2.zip (2.9 KB, 284 views)

Screenshots

File Type: png Adblock.png (52.7 KB, 0 views)
File Type: jpg Adblock.jpg (34.0 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
davidg, Marcin_J_

Comments
  #2  
Old 06-21-2013, 08:22 PM
Nirjonadda Nirjonadda is offline
 
Join Date: Dec 2011
Location: Italy
Posts: 739
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So Its manual Template Edits modifications? Please make sure your work up To-Do List than try to Release.:up:
Reply With Quote
  #3  
Old 06-21-2013, 10:32 PM
davidg davidg is offline
 
Join Date: Apr 2010
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

works fine with opera and firefox having adblock plus enabled
dont work with SuperBird browser having adblock plus and Chromeblock from Abine enabled
Reply With Quote
  #4  
Old 06-22-2013, 02:02 AM
TheInsaneManiac TheInsaneManiac is offline
 
Join Date: Feb 2008
Posts: 1,360
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Nirjonadda View Post
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 View Post
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?
Reply With Quote
Благодарность от:
CharlieDelta
  #5  
Old 06-22-2013, 04:25 PM
davidg davidg is offline
 
Join Date: Apr 2010
Posts: 114
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheInsaneManiac View Post
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.
Reply With Quote
  #6  
Old 08-13-2013, 10:52 AM
TheInsaneManiac TheInsaneManiac is offline
 
Join Date: Feb 2008
Posts: 1,360
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by davidg View Post
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!
Reply With Quote
  #7  
Old 08-13-2013, 01:46 PM
Bacon Butty Bacon Butty is offline
 
Join Date: Jun 2005
Posts: 309
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Looks great so far, well done. I will be sure to keep a close eye on this!
Reply With Quote
  #8  
Old 08-13-2013, 02:46 PM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
  #9  
Old 08-13-2013, 03:22 PM
Bacon Butty Bacon Butty is offline
 
Join Date: Jun 2005
Posts: 309
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and the navbar alert is working just great. How do I have the Red Box along the side as per screenshot and Demo?
Reply With Quote
  #10  
Old 08-13-2013, 07:14 PM
TheInsaneManiac TheInsaneManiac is offline
 
Join Date: Feb 2008
Posts: 1,360
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by final kaoss View Post
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 View Post
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?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:50 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05647 seconds
  • Memory Usage 2,345KB
  • Queries Executed 24 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (2)bbcode_code
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (3)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (6)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete