The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Block Google Adsense Ads on Error Pages & More by BOP5 Details »» | ||||||||||||||||||||||||||
Block Google Adsense Ads on Error Pages & More by BOP5
Developer Last Online: Aug 2023
Brought to you by BirdOPrey5.com. (Formerly Qapla.com) I have been made aware that vBulletin 3 and 4 Administrators who use Google Adsense ads in positions like the header, navbar, and/or footer are getting warnings from Google that ads are appearing on error pages (such as "No Permission" pages) which lack any real content, in violation of Adsense Terms of Service. Google threatens to suspend your Adsense account if this is not fixed. Put simply this mod attempts to kill Adsense ads from loading in the easiest possible way. When an error page is detected the plugin will search for the code "adsbygoogle.js" which all current Adsense ads call on to load. If found it will delete the filename so the file is never called by the browser and never loaded on the page, thereby preventing the Adsense Ads from showing. If you find it useful please consider making a donation using the Support Developer option to the right of this post, below my avatar. :up: There are no real instructions and no options. Install the mod from Product Manager in the Admin CP and it is active. Disable the mod from Product Manager to turn it off or uninstall it to remove it. No permanent changes are made to your site or files. This only works for Google Adsense. If there is demand I may be able to block ads from additional sources if you can provide me with sample ad code for those ad providers. Should work on just about all versions of VB 3.8.x and 4.x.x and PHP 5 and 7 currently available. Tested on VB 4.2.5 and PHP 7.0.x. 2.0.0 Update As of version 2.0.0 released 29th March 2018 you can now also specify a list of pages on which to block ads by going to Admin CP -> Settings -> Options -> Block Adsense Ads on Error Pages & More by BOP5. By default register and sendmessage (the Contact Us page) are on the block ads list. ------------------------------------------------------ Please "Mark as Installed" if you use this. Download Now
Show Your Support
|
2 благодарности(ей) от: | ||
Alan_SP, In Omnibus |
Comments |
#2
|
||||
|
||||
Reserved.
|
#3
|
||||
|
||||
Quickly tested, everything works as it should, ads are blocked.
|
Благодарность от: | ||
BirdOPrey5 |
#4
|
|||
|
|||
Works just fine out of the box on error pages.
What about pages like Settings or Private Messages? Shouldn't those also be blocked, technically? |
#5
|
||||
|
||||
Private Messages are content. It doesn't need to be public content to qualify to have ads. But the settings pages, registration pages, some others, probably could be added.
|
Благодарность от: | ||
djbaxter |
#6
|
|||
|
|||
I have a feature request.
Starting February 15 " Chrome will remove all ads from sites that have a "failing" status in the Ad Experience Report" https://developers.google.com/web/up.../12/better-ads One of the violation is "30%" rule. https://www.betterads.org/mobile-ad-...igher-than-30/ I am worried about threads with short single posts. Could it be possible to remove ads on threads with thin content ? less than x words ? |
#7
|
|||
|
|||
Thanks for this mod - nice to see some awesome coders here still supporting vb3.8x.
Any chance you can also incorporate the sendmessage.php page into your mod to disable Adsense there? Since, I just got an email from Google telling me: Quote:
|
#8
|
|||
|
|||
it doesnt works on vb 4 . i can still see adsense showing on deleted posts
edite : Sorry . it works fine . juts I had adsense integrated with DFP . so it doesnt included that code . so i changed it with another 'name' BTW : anyway to integrate this plugin with other pages : like /sendmessage.php /private.php ..ect ? Thanks |
#9
|
||||
|
||||
Version 2.0 released, allows blocking of specific pages using their THIS_SCRIPT constant. Setup to block by default on register and sendmessage pages. (sendmessage is the "contact us" page.)
If this mod is helping your site place consider making a donation using the "Support Developer" link below the Avatar in the first post. |
#10
|
|||
|
|||
Thanks BirdOPrey5.
Any chance of expanding the plugin and include DFP and an option to block ads before some date based on the last post of a thread? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|