Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

Reply
 
Thread Tools
Ablock Alert Details »»
Ablock 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.8.x Rating:
Released: 12-10-2009 Last Update: 12-28-2009 Installs: 32
Uses Plugins Auto-Templates
Additional Files  
No support by the author.

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.

Download Now

File Type: zip Ablock Alert 4.0.zip (4.3 KB, 50 views)
File Type: zip Ablock Alert 4.5.zip (4.4 KB, 35 views)
File Type: zip Ablock Alert 5.0.zip (4.9 KB, 244 views)

Screenshots

File Type: jpg Adblock Alert.jpg (117.8 KB, 0 views)
File Type: jpg Adblock Alert AdminCP.jpg (117.8 KB, 0 views)

Show Your Support

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

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

Quote:
Originally Posted by Taurus1 View Post
Yes, I am aware of that! I will enable it again now. Here is the link:

http://creativx.net/forums/
By looking at your template I can tell the adblock_script did not load. Check your footer template and make sure <!-- end wrap --> is found somewhere along in the footer.

If it's not found add it towards the bottom of the footer template. If you do not find it, please post back and I will modify the product so that you can insert template hooks in your templates to allow your customized template to find the locations easier.
Reply With Quote
  #23  
Old 12-26-2009, 02:24 PM
Taurus1's Avatar
Taurus1 Taurus1 is offline
 
Join Date: Dec 2009
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheInsaneManiac View Post
By looking at your template I can tell the adblock_script did not load. Check your footer template and make sure <!-- end wrap --> is found somewhere along in the footer.

If it's not found add it towards the bottom of the footer template. If you do not find it, please post back and I will modify the product so that you can insert template hooks in your templates to allow your customized template to find the locations easier.
OK, I couldn't find that. I added it at the bottom of my footer template. So now, what should I do?

Thanks for your help!!
Reply With Quote
  #24  
Old 12-26-2009, 02:34 PM
TheInsaneManiac TheInsaneManiac is offline
 
Join Date: Feb 2008
Posts: 1,360
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Taurus1 View Post
OK, I couldn't find that. I added it at the bottom of my footer template. So now, what should I do?

Thanks for your help!!
Nothing. You did it! Congrats. Be sure to mark installed. =]
Attached Images
File Type: jpg Screenshot.jpg (53.4 KB, 0 views)
Reply With Quote
  #25  
Old 12-26-2009, 02:43 PM
Taurus1's Avatar
Taurus1 Taurus1 is offline
 
Join Date: Dec 2009
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by TheInsaneManiac View Post
Nothing. You did it! Congrats. Be sure to mark installed. =]
LOL....thanks a lot mate! Awesome! Marked it Installed yesterday already! One small thing though. Is there a way to increase the font size for the notification?
Reply With Quote
  #26  
Old 12-26-2009, 05:49 PM
linuxututs linuxututs is offline
 
Join Date: Oct 2009
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This looks like a GREAT Mod, but doesn't appear to be working for me.
Can someone who has an adblock app install in their web browser please confirm it for me.

My Site.

Thanks a million,
Reply With Quote
  #27  
Old 12-26-2009, 06:51 PM
TheInsaneManiac TheInsaneManiac is offline
 
Join Date: Feb 2008
Posts: 1,360
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Taurus1 View Post
LOL....thanks a lot mate! Awesome! Marked it Installed yesterday already! One small thing though. Is there a way to increase the font size for the notification?
Yea, I can't remember if I ever had enabled html for that box. Try just
Code:
<font size="8">Message</font>
Just change the 8 to what size you want. Again, not tested as I don't know if I ever fixed the HTML issue.


Quote:
Originally Posted by linuxututs View Post
This looks like a GREAT Mod, but doesn't appear to be working for me.
Can someone who has an adblock app install in their web browser please confirm it for me.

My Site.

Thanks a million,
No yours doesn't work either. You seem to be having the same issue as Tauras1. I don't know why you guys styles don't have them, cause all of mine except the VBulletin default style has them. Anyway for now just use this temporary fix:
https://vborg.vbsupport.ru/showpost....3&postcount=21

In the new update I change the template edits and also enable hooks so that you guys can place the hook in the templates where they need to go.
Reply With Quote
  #28  
Old 12-26-2009, 07:03 PM
linuxututs linuxututs is offline
 
Join Date: Oct 2009
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah, I had already found that fix, but doesn't seem to do any good.

I re-implemented it though. ( Maybe just my adblocker, no way of telling )

Thanks for the quick reply to Mate.
Reply With Quote
  #29  
Old 12-26-2009, 07:21 PM
cindy helmond cindy helmond is offline
 
Join Date: Feb 2006
Location: The Netherlands
Posts: 334
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice one !! but in the demo i was wonder this hack ?

Affiliates with pics and links ..can i get the name of the hack ?
thx
Reply With Quote
  #30  
Old 12-26-2009, 11:26 PM
Taurus1's Avatar
Taurus1 Taurus1 is offline
 
Join Date: Dec 2009
Posts: 648
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by linuxututs View Post
This looks like a GREAT Mod, but doesn't appear to be working for me.
Can someone who has an adblock app install in their web browser please confirm it for me.

My Site.

Thanks a million,
Doesn't seem to work mate. Nice forum you have there! Mind telling me what mod you are using for your "Advanced forum statistics'?? Thanks!!

Quote:
Originally Posted by TheInsaneManiac View Post
Yea, I can't remember if I ever had enabled html for that box. Try just
Code:
<font size="8">Message</font>
Just change the 8 to what size you want. Again, not tested as I don't know if I ever fixed the HTML issue.
Tried that, doesn't work. Then it don't show up at all.
Reply With Quote
  #31  
Old 12-27-2009, 05:36 AM
TheInsaneManiac TheInsaneManiac is offline
 
Join Date: Feb 2008
Posts: 1,360
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by cindy helmond View Post
nice one !! but in the demo i was wonder this hack ?

Affiliates with pics and links ..can i get the name of the hack ?
thx
This is an English speaking board, please speak it properly so I can understand you.

Quote:
Originally Posted by Taurus1 View Post
Doesn't seem to work mate. Nice forum you have there! Mind telling me what mod you are using for your "Advanced forum statistics'?? Thanks!!

Tried that, doesn't work. Then it don't show up at all.
The one that shows the latest posts is my unreleased modification. If you mean the one that shows the last members of 24 hours, that's Cyb's mod.

Hmmm I guess I didn't fix the html issue. I'll fix that in the next release. For now try:
Code:
<font size=\"8\">Message</font>
Quote:
Originally Posted by linuxututs View Post
Yeah, I had already found that fix, but doesn't seem to do any good.

I re-implemented it though. ( Maybe just my adblocker, no way of telling )

Thanks for the quick reply to Mate.
As I just told Taurus1, HTML is acting funky right now due to me using quotations to display the alert. Will be fixed in the next version. If you want to try something to fix it, try opening the product and finding:
var alertmessage="$vboptions[adblock_alert_message]"

Change to:
var alertmessage=$vboptions[adblock_alert_message]

Or

var alertmessage='$vboptions[adblock_alert_message]'
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 11:31 AM.


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.07883 seconds
  • Memory Usage 2,355KB
  • Queries Executed 26 (?)
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
  • (3)bbcode_code
  • (11)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
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (6)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)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_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