vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Alternative image if adblocked (https://vborg.vbsupport.ru/showthread.php?t=280685)

RisingGlow 03-26-2012 05:46 PM

Alternative image if adblocked
 
how would i go about doing this. i heard that it involves doing it with div tag but i dont rly get it.

Brandon Sheley 03-26-2012 06:30 PM

Where did you hear that?

vbresults 03-26-2012 07:52 PM

Place a flash ad of the same dimensions on top of an image?

setishock 03-26-2012 10:10 PM

Hmm sensing if a viewer of your forum is running an ad blocker and make them look at a static image where the ad would have been?

RisingGlow 03-26-2012 10:29 PM

Quote:

Originally Posted by Brandon Sheley (Post 2313560)
Where did you hear that?

http://www.webmasterworld.com/webmaster/3996622.htm
Quote:

Originally Posted by setishock (Post 2313624)
Hmm sensing if a viewer of your forum is running an ad blocker and make them look at a static image where the ad would have been?

yes, exactly

setishock 03-26-2012 10:54 PM

I just dechipered your question. I have no clue as to how ro do that. Hopefully one of the guys will come back and give you an answer.

vbenhancer 03-27-2012 01:29 AM

it is really simple... it's basic CSS actually...

the DIV that contains your banner, you simply have to configure it via its css class to have an image of your choice as background-image... that way, the image will always be there, invisible when you have a banner, and shown when the banner is deactivated... because it is in the background.

RisingGlow 03-27-2012 01:47 AM

Quote:

Originally Posted by vbenhancer (Post 2313694)
it is really simple... it's basic CSS actually...

the DIV that contains your banner, you simply have to configure it via its css class to have an image of your choice as background-image... that way, the image will always be there, invisible when you have a banner, and shown when the banner is deactivated... because it is in the background.

ya i understand that but i dont know where to put it.
i've tried adding this:
Code:

.adblocked {
background-image:url('images/adblocked.png');
}

in additional.css
i then wrapped it around my adsense code with <div id=adblocked>
and it didnt work

vbenhancer 03-27-2012 02:04 AM

you created a class, but you use ID in your div... it has to be #adblocked in the class...

RisingGlow 03-27-2012 04:30 PM

didnt work. when the ad was blocked, so was the image

vbenhancer 03-27-2012 04:49 PM

hum, ok... i never evaluated how the blockers work... so it needs another wrapper around the ads block... with a different name etc... i suppose.. i would have to check it.

setishock 03-27-2012 08:50 PM

Ok then if the logic of how the blocker works being it blocks the ad code itself, then the alternate image code being inside the ad code, would be blocked also. Whew! Was that long winded or what?
Maybe put the alt image in the body background and use the z-index and position commands to park it where you want it.


All times are GMT. The time now is 04:22 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.01219 seconds
  • Memory Usage 1,730KB
  • 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
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (12)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