Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.7 > vBulletin 3.7 Add-ons
Adblock Alert Details »»
Adblock Alert
Version: 5.0, by TheInsaneManiac TheInsaneManiac is offline
Developer Last Online: Feb 2022 Show Printable Version Email this Page

Category: Board Optimization - Version: 3.7.x Rating:
Released: 12-24-2009 Last Update: 12-28-2009 Installs: 6
Uses Plugins Auto-Templates
Additional Files  
No support by the author.

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.


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


Upgrading
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:
$adblockalertheadinclude


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


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


FAQ
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.


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

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

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

3.0
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.

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

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

2.0
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

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

1.2
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.

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

1.0
Release.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #2  
Old 12-25-2009, 09:00 AM
TheInsaneManiac TheInsaneManiac is offline
 
Join Date: Feb 2008
Posts: 1,360
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
  #3  
Old 09-15-2010, 11:42 AM
lubbie lubbie is offline
 
Join Date: May 2010
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there anything for vb 4?
Reply With Quote
  #4  
Old 02-17-2015, 06:45 AM
TheInsaneManiac TheInsaneManiac is offline
 
Join Date: Feb 2008
Posts: 1,360
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just an update, ABP has released new list which remove adblock warnings. However this script still works.

Quote:
Originally Posted by lubbie View Post
Is there anything for vb 4?
Yes
https://vborg.vbsupport.ru/showthread.php?t=299371
Reply With Quote
Reply

Thread Tools

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 07:53 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.05527 seconds
  • Memory Usage 2,228KB
  • Queries Executed 17 (?)
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
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (4)post_thanks_box
  • (4)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (4)post_thanks_postbit_info
  • (3)postbit
  • (4)postbit_onlinestatus
  • (4)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete