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
  #32  
Old 03-04-2018, 11:40 PM
adnedarn adnedarn is offline
 
Join Date: Jan 2007
Location: Tucson, Arizona
Posts: 192
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed this again, and had to do the template edits myself since the code was not added to the navbar template... so this means I uninstall the product, right? With the code manually entered and the product uninstalled, the yellow/red alert shows even without an adblocker running, and my ads are showing on the page fine. I'll also note that the product was showing my version was 0.3.1 even though the one I downloaded and installed was 0.3.2.
Thanks!
Reply With Quote
  #33  
Old 04-21-2018, 01:53 PM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

No. If you want it to work correctly, re-import the product XML file.
Reply With Quote
  #34  
Old 05-08-2018, 10:36 AM
Cem01 Cem01 is offline
 
Join Date: Nov 2016
Location: Istanbul, Turkey
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It works great! Thank you
Reply With Quote
  #35  
Old 05-12-2018, 12:56 PM
dany_danay dany_danay is offline
 
Join Date: Jul 2009
Posts: 142
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What adblocks detects?
Reply With Quote
  #36  
Old 06-09-2018, 09:09 PM
djbaxter djbaxter is offline
 
Join Date: Aug 2006
Location: Ottawa, Canada
Posts: 2,601
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Warning: Uninstalling this product does not undo the automatic template edits (or at least it didn't for me). You still need to go to the bottom of the navbar template and remove the notice.
Reply With Quote
Благодарность от:
furnival
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 06:32 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.04948 seconds
  • Memory Usage 2,294KB
  • Queries Executed 23 (?)
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
  • (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
  • (6)post_thanks_box
  • (3)post_thanks_box_bit
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (6)post_thanks_postbit_info
  • (5)postbit
  • (6)postbit_attachment
  • (6)postbit_onlinestatus
  • (6)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_postinfo_query
  • fetch_postinfo
  • 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