Register Members List Search Today's Posts Mark Forums Read

Mod Options
Adblock Alert Details »
Adblock Alert
Mod Version: 5.0, by TheInsaneManiac (Coder/Designer) TheInsaneManiac is offline
Developer Last Online: Feb 2022 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.7.x Rating: (0 vote - 0 average) Installs: 4
Released: 25 Dec 2009 Last Update: 29 Dec 2009 Downloads: 44
Supported Uses Plugins Auto-Template Additional Files  

This is a port of my 3.8.x modification found HERE.

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.

1.) Upload the contents of the "upload" folder to your forums root directory.
2.) Import the product-adblockalert.xml.
3.) Mark Installed. =]

Import the product and select Allow Overwrite.

Template Edits
There are no template edits, however if nothing is working for you, chances are it can't find what it needs to to perform the automatic template edits. If this is the case, disable template edits for the modification via the AdminCP. Then perform these template edits.

In the headinclude template find:
<!-- CSS Stylesheet -->

After add:

Add the following code to the bottom of your navbar template:

Add the following code to the top of your footer template:

Q: Why did is it now working?
A: Make sure you uploaded everything and installed the mod. Also make sure it is enabled in the AdminCP.

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.

Added the ability to do manual template edits.
Fixed an issue with a 4.5 template edit.
Updated the AdminCP screenshot.

HTML is now allowed in both messages.
Changed the automatic template edit for the footer to something more common.

A customizable page used for the redirection system is now included with the modification.
Updated the AdminCP screenshot.

Added a redirection system. By enabling or disabling the cookie system you can have the redirection only happen once, or an unlimited amount of times. Also, choosing index only means the redirect will only happen on the index.
Updated the AdminCP screenshot.

Added usergroup permissions.
Fixed an issue which caused the alert to not display on all pages when wanted.
Updated the AdminCP screenshot.

Added an option to disable the cookie system.
Fixed the non caching of two templates.
Updated the AdminCP screenshot.

Option to change the alert message.
Option to change the alert color.
Option to change the alert alignment.
Option to only display alert on the forum index.
No more template edits

Complete rewrite.
Removed javascript popup and added a VBulletin style alert.
New Demo
New screenshot.

Fixed an issue where the alerts would sometimes pop up multiple times. This was due to the cookie relying on VBulletin sessions instead of times.

Disabled the checks for Internet Explorer since the script is unpredictable in IE.


Download Now

Only licensed members can download files, Click Here for more information.


Click image for larger version

Name:	Adblock Alert.jpg
Views:	224
Size:	117.8 KB
ID:	108101   Click image for larger version

Name:	Adblock Alert AdminCP.jpg
Views:	79
Size:	117.8 KB
ID:	108503  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Last Reply Alert: Add last reply alert under new reply button calorie vBulletin 3.6 Add-ons 29 02 Mar 2011 00:27

Old 25 Dec 2009, 10:00
TheInsaneManiac TheInsaneManiac is offline
Join Date: Feb 2008
I don't have 3.7.x to test this on, but I am pretty sure I ported it correctly and it should work. If it doesn't please alert me. I can't remember if the navbar hooks I'm using existed in 3.7.x. If that's the case then I will have to create a hook for the modification to use, which would mean one template edit.
Reply With Quote
Old 15 Sep 2010, 12:42
lubbie lubbie is offline
Join Date: May 2010
Is there anything for vb 4?
Reply With Quote
Old 17 Feb 2015, 07:45
TheInsaneManiac TheInsaneManiac is offline
Join Date: Feb 2008
Just an update, ABP has released new list which remove adblock warnings. However this script still works.

Originally Posted by lubbie View Post
Is there anything for vb 4?
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

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

New To Site? Need Help?

All times are GMT. The time now is 19:32.

Layout Options | Width: Wide Color: