vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Adsense/adblock script with vbulletin? (https://vborg.vbsupport.ru/showthread.php?t=308153)

neya 02-10-2014 12:46 PM

Adsense/adblock script with vbulletin?
 
Hello,

I've seen several sites that detect adblock and kindly ask the user to disable it to support the website.

I would like to intregate this onto my vb forum. The most common responses to this question (as i've been searching for solutions for a few hours) are;

Quote:

PEOPLE ARE FREE TO BLOCK ADS, JUST AS YOU ARE FREE TO DISPLAY THEM
.

Please don't give me this. It's my forum, my website, I do what I want on it.
A small image with some text isnt going to hinder the browsing experience, anyway.
Not to mention it's simply a request, if they don't like it they are free to visit another forum that doesnt have this.

Anywho, to get down to the point.. i've seen reddit with this, wallbase.. and some others.
I've found the code (or so I think) that does this, but I have no coding experience so I dont know how to make it work with vbulletin. (I'm currently using VB 4.2)

This is the script i've found on wallbase;

Code:

<div class="dontblockpls">
        <script src="http://static.wallbase.cc/front/6/js/areas/home.js"></script><script type="text/javascript" async="" src="http://www.google-analytics.com/ga.js"></script><script async="" src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
        <!-- wbcc-home -->
        <ins class="adsbygoogle" style="display:inline-block;width:728px;height:90px" data-ad-client="ca-pub-2509768188512843" data-ad-slot="2059058536"></ins>
        <script>
        (adsbygoogle = window.adsbygoogle || []).push({});
        </script>
    </div>

An example of this can be found at http://wallbase.cc

Any help would be appreciated, I have searched google for hours and hours with no result, so I figured this would be the best place to ask. Thank you.

Zachery 02-10-2014 05:25 PM

Generally they do with with an image, or text behind the placeholder div for the ad itself.

Max Taxable 02-10-2014 05:28 PM

Quote:

Originally Posted by neya (Post 2480183)
Please don't give me this. It's my forum, my website, I do what I want on it..

It's MY computer though, MY registry, MY resources and MY internet connection you're using to deliver unwanted crap to MY screen.

Is the other side of that pancake.

There are a couple of anti-adblock Mods available here at vBorg however.

I googled it for ya.

Zachery 02-10-2014 08:55 PM

Quote:

Originally Posted by Max Taxable (Post 2480227)
It's MY computer though, MY registry, MY resources and MY internet connection you're using to deliver unwanted crap to MY screen.

Is the other side of that pancake.

There are a couple of anti-adblock Mods available here at vBorg however.

I googled it for ya.

You have the choice to use, or not use their website. If you use a website often, and not seeing ads, then you're only helping to not pay your fair share.

Max Taxable 02-10-2014 10:24 PM

Quote:

Originally Posted by Zachery (Post 2480260)
You have the choice to use, or not use their website. If you use a website often, and not seeing ads, then you're only helping to not pay your fair share.

Nonsense. There is NO requirement on the part of visitors or users to financially support sites. Not morally, not any way whatsoever.

If people want to let adverts run on their browsers, more power to them. It doesn't happen on mine and hasn't since around 2005.

ForceHSS 02-10-2014 10:52 PM

Quote:

Originally Posted by Max Taxable (Post 2480278)
Nonsense. There is NO requirement on the part of visitors or users to financially support sites. Not morally, not any way whatsoever.

If people want to let adverts run on their browsers, more power to them. It doesn't happen on mine and hasn't since around 2005.

Agree, I block all ads showing in my browser I even don't want to see ads on my own site, but if others do, that's up to them I never force anyone to see ads

Zachery 02-10-2014 11:47 PM

If you think the internet can run without ads, I think you're being a bit crazy.

ForceHSS 02-11-2014 12:52 AM

Ads are everywhere does not mean we can't block seeing them if we wish

TheLastSuperman 02-11-2014 01:05 AM

I block all ads, I only enable them when working on a clients site. Sites can run all the ads they wish but I like many others above simply don't want to see them.

ozzy47 02-11-2014 01:28 AM

I also block the ads, can't stand them, and if I go to a site that has added them via some sort of workaround, guess which button I hit in the browser. :p

Max Taxable 02-11-2014 01:48 AM

Quote:

Originally Posted by Zachery (Post 2480292)
If you think the internet can run without ads, I think you're being a bit crazy.

I don't think that at all Zachary and never have. Are you erecting a straw man - or somewhere, did I actually even hint at something like this?

But I KNOW FOR SURE it can damn well run just fine without ads on MY dime! It's none of my affair or concern what other folks do.

neya 02-11-2014 07:27 AM

What is wrong with you people? If you want to state your opinion fight it out elsewhere.

This is an argument that never ends once it begins, it's pointless to even discuss it at all.

Request to lock thread

Max Taxable 02-11-2014 01:25 PM

Quote:

Originally Posted by neya (Post 2480370)
What is wrong with you people? If you want to state your opinion fight it out elsewhere.

This is an argument that never ends once it begins, it's pointless to even discuss it at all.

Request to lock thread

I at least gave you some help. There are some add-ons and plugins here at vBorg that do what you're wanting, I provided a search link to them.

Maybe next time you shouldn't initiate the debate in your OP, if you don't want to see one.

TheLastSuperman 02-11-2014 07:27 PM

Quote:

Originally Posted by neya (Post 2480370)
What is wrong with you people? If you want to state your opinion fight it out elsewhere.

This is an argument that never ends once it begins, it's pointless to even discuss it at all.

Request to lock thread

Argument? Just some discussion is all ;).

Quote:

Originally Posted by Max Taxable (Post 2480406)
I at least gave you some help. There are some add-ons and plugins here at vBorg that do what you're wanting, I provided a search link to them.

Maybe next time you shouldn't initiate the debate in your OP, if you don't want to see one.

Debate? Like I said above seems like discussion and nothing more... if you make it more then so be it else just smile and share thoughts on the subject :cool:.

neya 02-11-2014 09:18 PM

Quote:

Originally Posted by Max Taxable (Post 2480406)
I at least gave you some help. There are some add-ons and plugins here at vBorg that do what you're wanting, I provided a search link to them.

Maybe next time you shouldn't initiate the debate in your OP, if you don't want to see one.

Yes, thanks for that. But those are unfortunately the results I stumbled upon myself. I will just have to make do with the 'warning' message plugin.

And I suppose you are right, but then again people would have said these things even if I hadnt said anything nethertheless. Appreciate the help regardless.

Max Taxable 02-11-2014 09:30 PM

Quote:

Originally Posted by neya (Post 2480498)
Yes, thanks for that. But those are unfortunately the results I stumbled upon myself. I will just have to make do with the 'warning' message plugin.

With several mods of this nature coded FOR vBulletin available here, you're saying you checked them out and none of them meet your needs?

Quote:

And I suppose you are right, but then again people would have said these things even if I hadnt said anything nethertheless. Appreciate the help regardless.
You don't know that. For the most part nobody cares or comments about the principles behind a modification especially in a help thread. They typically just help. Unless baited.


All times are GMT. The time now is 01:46 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.01089 seconds
  • Memory Usage 1,763KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (12)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (16)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete