View Full Version : Board Optimization - Ablock Alert
TheInsaneManiac
12-10-2009, 10:00 PM
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.
abdobasha2004
12-11-2009, 04:36 PM
very nice idea !
saadessa
12-11-2009, 06:24 PM
very nice hack >>>>thank you
Brandon Sheley
12-11-2009, 06:45 PM
nice idea, but that style on your demo gives me a headache :(
yahooooh
12-11-2009, 06:55 PM
there are strange issue in your site
i login through facebook connect and it make me as user that already registered in your forums
it is: Arachnothor
and i see that i get all permission he has and also i see the e-mail of him as it in his cp
i think u have bad issue and i advise u to disable facebook connect hack that you use
TheInsaneManiac
12-11-2009, 07:35 PM
there are strange issue in your site
i login through facebook connect and it make me as user that already registered in your forums
it is: Arachnothor
and i see that i get all permission he has and also i see the e-mail of him as it in his cp
i think u have bad issue and i advise u to disable facebook connect hack that you use
You don't have to login to see it. I just disabled it for now, but thanks. I'll check into that.
Kolbi
12-12-2009, 02:10 PM
I´m using a adblock tool but no message appears visiting your demo.
Nickfrikscape
12-12-2009, 02:11 PM
nicely done installed.
TheInsaneManiac
12-12-2009, 06:40 PM
I?m using a adblock tool but no message appears visiting your demo.
As I said in previous posts, I don't have it enabled anymore. I'm working on new features. Possibly instead of an alert popping up, just a notification from VBulletin.
I just posted a different demo, it's the same concept, but it's not running VBulletin. I use it for testing purposes.
Bouncer222
12-13-2009, 07:06 PM
Anyone who uses this mod, I suggest you check ASAP if your site is accessible via Internet Explorer, because my site won't show up using this mod through internet explorer, this is a serious issue which should be fixed or uninstall this mod, I uninstalled this mod and I'm going to try a different one at https://vborg.vbsupport.ru/showthread.php?t=207466&highlight=adblocker
Instead.
ChopSuey
12-13-2009, 10:14 PM
Q: Why did is it now working?
What kind of question is that?
TheInsaneManiac
12-14-2009, 06:49 AM
Anyone who uses this mod, I suggest you check ASAP if your site is accessible via Internet Explorer, because my site won't show up using this mod through internet explorer, this is a serious issue which should be fixed or uninstall this mod, I uninstalled this mod and I'm going to try a different one at https://vborg.vbsupport.ru/showthread.php?t=207466&highlight=adblocker
Instead.
Works fine for me in IE, I just think you are trying to advertise a modification that is no longer supported nor working. I'll do some more tests in older IE versions later today when I wake up, but the newest version of IE works fine.
Anyway the modification that you are referring to does not work thanks to the newest version of Adblock patching it. See the thing is, that modification would block access to your website, which is what Adblock frowns apon. So by not blocking access and only showing an alert which displays once, maybe Adblock would be a little more considerate of those websites out there trying to make an honest living. If not then the developer is an ***.
andrew67
12-16-2009, 06:31 AM
A bit of feedback.......
I maintain and update a "largeish"( Is that a word ? ) VBulletin forum and have installed your modification today at the owners request. Unfortunately it hasnt been succesful and a number of members without adblocking software have complained of receiving the popup multiple times.
After having a bit of a play around with multiple browsers, I also received it using IE8 even though I had no adblocker , but didnt receive it using Firefox with Adblocker Plus installed and enabled. Unfortunately I am going to have to uninstall or disable it unless a newer version becomes available which is more reliable. This isnt meant to be a criticism, just honest feedback from a large and busy site.
Thanks
Andrew67
TheInsaneManiac
12-17-2009, 05:26 AM
A bit of feedback.......
I maintain and update a "largeish"( Is that a word ? ) VBulletin forum and have installed your modification today at the owners request. Unfortunately it hasnt been succesful and a number of members without adblocking software have complained of receiving the popup multiple times.
After having a bit of a play around with multiple browsers, I also received it using IE8 even though I had no adblocker , but didnt receive it using Firefox with Adblocker Plus installed and enabled. Unfortunately I am going to have to uninstall or disable it unless a newer version becomes available which is more reliable. This isnt meant to be a criticism, just honest feedback from a large and busy site.
Thanks
Andrew67
This modification uses auto templates. If you are having trouble with parts of the modification, make sure you have all the search related parts found in the modification such as:
<!-- CSS Stylesheet --> (headinclude)
<!-- /content area table --> (footer)
TheInsaneManiac
12-25-2009, 07:11 AM
1.5 released. No more javascript alert. It now uses VBulletin style notices.
can u add a option to redirect user to donate/subscription page
this for vb4 will be awesome
TheInsaneManiac
12-25-2009, 02:44 PM
can u add a option to redirect user to donate/subscription page
this for vb4 will be awesome
Done with the redirection system; however for 4.0 I can't do unless someone has a 4.0 board I can use, cause I don't have the money for the upgrade.
Taurus1
12-25-2009, 11:25 PM
Everything uploaded correctly, and imported. (latest version also) Nothing is showing up. I would really like this to work. Thanks!
TheInsaneManiac
12-26-2009, 02:40 AM
Everything uploaded correctly, and imported. (latest version also) Nothing is showing up. I would really like this to work. Thanks!
What is the link to your site? You are aware that by default the modification is disabled for admins, super mods, and mods right?
Taurus1
12-26-2009, 03:15 AM
What is the link to your site? You are aware that by default the modification is disabled for admins, super mods, and mods right?
Yes, I am aware of that! I will enable it again now. Here is the link:
http://creativx.net/forums/
TheInsaneManiac
12-26-2009, 01:29 PM
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.
Taurus1
12-26-2009, 02:24 PM
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!!
TheInsaneManiac
12-26-2009, 02:34 PM
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. =]
Taurus1
12-26-2009, 02:43 PM
Nothing. You did it! Congrats. Be sure to mark installed. =]
:eek::eek: 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?
linuxututs
12-26-2009, 05:49 PM
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 (http://www.linuxtuts.net/).
Thanks a million,
TheInsaneManiac
12-26-2009, 06:51 PM
:eek::eek: 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
<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.
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 (http://www.linuxtuts.net/).
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.php?p=1938593&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.
linuxututs
12-26-2009, 07:03 PM
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.
cindy helmond
12-26-2009, 07:21 PM
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
Taurus1
12-26-2009, 11:26 PM
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 (http://www.linuxtuts.net/).
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!!
Yea, I can't remember if I ever had enabled html for that box. Try just
<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.
TheInsaneManiac
12-27-2009, 05:36 AM
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.
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:
<font size=\"8\">Message</font>
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]'
Taurus1
12-27-2009, 06:40 AM
Hmmm I guess I didn't fix the html issue. I'll fix that in the next release. For now try:
<font size=\"8\">Message</font>
OK! That did it! Works great now mate! I would suggest changing the fontsize to 6 though, nearly got blinded.....lol
PS: Looks even better with the <blink></blink> codes around it!!
Thank you very much!!! :up:
linuxututs
12-27-2009, 07:36 AM
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]'
Tried both Mate. Still no luck. :(
If you come up with some more ideas, I'll be glad to help solve the problem with you Mate.
Been up for over 26 hours now, so I'm going to bed right now, but will be back soon.
Thanks, and keep up the GREAT work Mate.
Cheers,
TheInsaneManiac
12-27-2009, 06:19 PM
Tried both Mate. Still no luck. :(
If you come up with some more ideas, I'll be glad to help solve the problem with you Mate.
Been up for over 26 hours now, so I'm going to bed right now, but will be back soon.
Thanks, and keep up the GREAT work Mate.
Cheers,
Alright lets just see if we can't get the whole product itself to work for now, I'll fix html for you in the next update. Make sure you have <!-- end wrap --> in the bottom of your footer, and change your Alert Message to something with no html in it. Just for testing changing it to like Testing the product or something, just to make sure it all displays.
I say this because you are using div tags to center, when you could just use <center> and fix everything. If you must use a div try this:
<div align=\"center\"><br>You are using adblocking software. Ads are a general way to cover server costs. Please add our domain to your whitelist.</br><br>NOTE: You will only see this message once.</br> <br>Thank You, LinuxTuts</br></div>
OR
<center><br>You are using adblocking software. Ads are a general way to cover server costs. Please add our domain to your whitelist.</br><br>NOTE: You will only see this message once.</br> <br>Thank You, LinuxTuts</br><center>
In reality you don't even need to center it because the product has an option in the AdminCP to center it for you. So really you should just enable that and change your code to:
You are using adblocking software. Ads are a general way to cover server costs. Please add our domain to your whitelist.<br>NOTE: You will only see this message once.</br> <br>Thank You, LinuxTuts</br>
45wheelgun
01-10-2010, 01:09 AM
I love this! Marked "installed", and nominated! PM me a paypal address and I will buy you a beer.
TheInsaneManiac
01-13-2010, 01:38 PM
I love this! Marked "installed", and nominated! PM me a paypal address and I will buy you a beer.
PM sent. Donations are always welcome. Not required, but welcome. =]
Also keep in mind I am taking suggestions. =]
vijayninel
01-30-2010, 09:05 AM
Thanks. Installed.
aaronrand
02-01-2010, 06:47 PM
Since install, I have been getting an error only in IE, with browser that doesnt block ads.
somehow the bottom row of links (contact us, admin panel, etc) is missing but only on the homepage, not on sub forum pages.
Any idea how to fix this?
tsuehpsyde
02-06-2010, 05:32 PM
FWIW, I put two newlines in the text box for "Alert Message" and it causes the alert to disappear. Not a huge problem, but a problem none the less. :)
BirdOPrey5
06-24-2010, 01:02 PM
I went to the demo with ad-block enabled and got no alert or message whatsoever... Is there a working demo anywhere?
BirdOPrey5
06-24-2010, 01:43 PM
Sorry installed then uninstalled...
First the directions in the top post and the readme file are different- completely different template edits- I ended up doing both just to cover my bases.
Next the message was only showing up to unregistered users in firefox only, in google chrome with ad block no message was displayed... to registered users I wasn't seeing any alerts even though I removed groups 5|6|7 from the 'whitelist'
I wish this worked better/as advertised but just too many issues to keep installed as a work in progress.
Numenorean7
07-26-2010, 01:01 AM
This product needs to be updated for vB4.
Ghostt
07-29-2010, 05:45 PM
I have a idea of a good improve for a feature.
Ad please an option that the user can close the Alert with an click on X.
Ghostt
07-31-2010, 01:09 PM
hmm today is the alert not showing anymore. does adblock changed something????!!!!1
/EDIT
ok i found out that the adblock filtered this:
example.com###adblockdiv
ive renamed the adblock div... but its not an solution to rename everytime...
they can also block:
|http://example.com/adblock_detector.js
how to fix it and make the alert unblockable?
my solution:
it is better to put the code of the js in the template and make an textgenerator to rename everytime the div ID?
lubbie
08-28-2010, 03:17 PM
Hello. Will there be a portation for vB 4?
psychonikeo
08-30-2010, 08:19 AM
It showed me the alert once even with the Alert Message Cookies set to yes..
Also tried on an different computer using the same account. Shows once, next refresh it's gone.
When logged out, it's not showing anymore too.. To bad :(
Ghostt
09-14-2010, 01:04 AM
This Mod Isnt Working! ALERT Is Not Apearing
vijayninel
09-14-2010, 01:52 AM
Suddenly stopped working for me. :(
Ghostt
09-19-2010, 09:04 PM
NO SUPPORT ??!! have to work please!!!
at demo board it is also not working!!
jayhawk785
12-09-2010, 01:27 PM
is this still in development?
Ghostt
12-12-2010, 06:13 PM
omg please fix wtf is that?
Ghostt
12-20-2010, 11:04 PM
hello... can someone bring it to work??
even demo site doesnt work!
its f**king suported or not?!!!
XFSImperial
12-30-2010, 11:33 PM
Don't even see it in the demo, maybe its been modified... That or adblock updated to block the alert notice heh.
pmcnamara
01-06-2011, 06:31 PM
on page 1 of reading comments, I was so happy I almost pissed myself.. by page 4 I was totally depressed.. so much potential...
BirdOPrey5
01-06-2011, 10:16 PM
It would be great if the original author could integrate the ad detection code from this mod: https://vborg.vbsupport.ru/showthread.php?t=254450 so it uses cookies and settings like the original mod here does.
Ghostt
04-14-2011, 03:24 PM
Please Fix This Mod It Is Supported So Do It Wtf Support
TheInsaneManiac
04-14-2011, 10:50 PM
It would be great if the original author could integrate the ad detection code from this mod: https://vborg.vbsupport.ru/showthread.php?t=254450 so it uses cookies and settings like the original mod here does.
With your permission I will.
Please Fix This Mod It Is Supported So Do It Wtf Support
I'll fix that. I'll turn of support for it.
Ghostt
04-14-2011, 11:03 PM
With your permission I will.
I'll fix that. I'll turn of support for it.
ok delete that crap addon to the graveyard please.
i have created a mutch nicer Vbulletin ANTI ADBlOCK ALERT Box (https://vborg.vbsupport.ru/showthread.php?t=262018) addon!
get it here: https://vborg.vbsupport.ru/showthread.php?t=262018
BirdOPrey5
04-14-2011, 11:22 PM
With your permission I will.
I'll fix that. I'll turn of support for it.
You have my permission, it is also marked "Reusable code" so anyone else is free to use it too in any vbulletin mod.
TheInsaneManiac
04-15-2011, 06:23 AM
ok delete that crap addon to the graveyard please.
i have created a mutch nicer Vbulletin ANTI ADBlOCK ALERT Box (https://vborg.vbsupport.ru/showthread.php?t=262018) addon!
get it here: https://vborg.vbsupport.ru/showthread.php?t=262018
You can't call it crap, when you just PMed me begging for me to update it. Why ask when you could have done it yourself? If you disrespect someone, you can expect them to do the same.
What goes around comes around. As far as deleting it... VBulletin staff does not delete modifications that are not supported. No one has to support their mods. If that was the case, VBulletin would barely have any great modifications. Look at AME, an unsupported mod, with a wonderfully coded plugin.
This mod still works, I use it on my 3.8 forums, but it will not work with 4.0.
As far as 4.0 goes, I'll implement BirdOPrey5's code into the cookie system and recode it to be able t0 have a nicer alert, than his javascript popup, which could annoy users.
Ghostt:
http://www.youtube.com/watch?v=M2lfZg-apSA
Ghostt
04-15-2011, 09:44 AM
You can't call it crap, when you just PMed me begging for me to update it. Why ask when you could have done it yourself? If you disrespect someone, you can expect them to do the same.
What goes around comes around. As far as deleting it... VBulletin staff does not delete modifications that are not supported. No one has to support their mods. If that was the case, VBulletin would barely have any great modifications. Look at AME, an unsupported mod, with a wonderfully coded plugin.
This mod still works, I use it on my 3.8 forums, but it will not work with 4.0.
As far as 4.0 goes, I'll implement BirdOPrey5's code into the cookie system and recode it to be able t0 have a nicer alert, than his javascript popup, which could annoy users.
Ghostt:
http://www.youtube.com/watch?v=M2lfZg-apSA
read the comments... the people have 3.8 like me and its not working so thats why its crap.
its also not working on your board so dont lie i have tested it. maybe you should update your ABP...
TheInsaneManiac
04-16-2011, 03:12 AM
My main board is 4.0. My car forum is 3.8 and it works fine. If someone who runs 3.8 and can't get it to work on their board, would let me send them test versions, then I may be able to fix it.
Ghostt
04-16-2011, 03:28 AM
wtf man how noob are you?
you link the not working v4.0 demo in your post.
and when i tested it a time ago where the demoboard was 3.8 it also dont worked. show me the working demo
Noerenberg
05-03-2011, 05:36 AM
Hi there, is this available for vb4 too?
Spinball
05-03-2011, 03:10 PM
Tried your site without Adblock Plus - saw the ads. Enabled it and there was no alert. So it's not working for me.
TheInsaneManiac
06-20-2013, 06:25 AM
Because I am not running vB3, I have not updated the modification to work with vB4 yet, however since I am back in the vB scene, expect an update to this, as I miss this modification. Just been so busy with other projects.
Look for a vB4 version soon!
Nice to see you back in the vB scene,not sure what updating this product would accomplish so many years on,but all the best for the future.
TheInsaneManiac
07-08-2013, 09:02 AM
Nice to see you back in the vB scene,not sure what updating this product would accomplish so many years on,but all the best for the future.
Pretty much just to recode and make it look better. Learned a good bit while I have been away.
4.x.x version done:
https://vborg.vbsupport.ru/showthread.php?t=299371
JalsaTime
09-18-2013, 04:18 AM
Hey There,
I have installed the mod 5.0 latest version on my forum board v3.8
But still doesn't work even after my Template edits (manually done)
JalsaTime
10-08-2013, 11:13 PM
Not working, I have tested it out.. Waste !!
TheInsaneManiac
11-24-2013, 09:02 PM
ABP has fixed the detection method in this version. I will have to port the 4.0 version to the 3.8 to fix the break. Right now I am being paid to work on another product, which is why 3.6 is unsupported at this time. When I get some extra time, I'll port it over. :)
For those of you needing something in the interim then you could try http://pagefair.com/ which is great for adblock detection/alerts or just measuring how may people are stealing from you with their adblockers (24% for me :( )
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.