vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Varying advertising (https://vborg.vbsupport.ru/showthread.php?t=308562)

Jinovich 02-18-2014 07:20 PM

Varying advertising
 
So:

I want to increase advertising on my forum for guests only. That bit is the easy bit.

However:

I would like to do the following capture those who adblock in a 1/10 ratio of page loads and display them a message asking them kindly to not block our adverts then let them resume after 10 secs.

I imagine 99% of that will just be jQuery and divs.

I would also like to remove all adverts from the site after we have hit our monthly target.

I would ideally like to create this as a plugin as I would need to query whether the target has been met for the month or not before deciding what to serve.

Any advice on how to implement something like that? I don't think their are template hooks for the ad locations vB provide by default.

Videx 02-20-2014 04:14 PM

There are a few modifications here related to Adblock. I don't use any so I can't recommend anything specific, but if none of them work they may at least give you ideas.

Search for "adblock" in the titles.


All times are GMT. The time now is 08:04 PM.

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.01398 seconds
  • Memory Usage 1,702KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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