Forum Replies Created

Viewing 15 replies - 16 through 30 (of 64 total)
  • Thread Starter The Author Jack Foreigner

    (@the-author-jack-foreigner)

    Actually, I do fiddle with my WordPress templates — child theme templates, that is — but a CSS option would be much more preferable, I think.

    I’m gonna have fun this weekend trying out the various methods you’ve so graciously provided…I’m truly grateful: please check your e-mail…. 😉

    Thread Starter The Author Jack Foreigner

    (@the-author-jack-foreigner)

    Beautiful!!

    Wow, so many feature requests fulfilled so quickly…it’s like you’re in the artisanal plugin business! 😉

    Well, if you are…maybe a future update should provide a lil’ “do not show this again” checkbox (along with instructions for turning the reminder back on!)….

    Okay, enough. Thanks again, truly.

    Thread Starter The Author Jack Foreigner

    (@the-author-jack-foreigner)

    P.P.S.

    Sorry, forgot to mark this thread “resolved”…thanks again!!!

    Thread Starter The Author Jack Foreigner

    (@the-author-jack-foreigner)

    Post Scriptum

    .postid-2702 .ABD_shortcode_4 { display: none !important; }

    —————–

    This is still limited as, if you use a shortcode in more than one place on your page, all instance of those shortcodes will be targeted. But I think it will work for what you are trying to do.

    S’okay, I’ll just have to create two instances of the same thing for different Post Categories…rahter inelegant as you mathematicians/programmers but good enough for us skript kiddiez! :-d

    Thread Starter The Author Jack Foreigner

    (@the-author-jack-foreigner)

    OMG, John…sometimes I really wish you weren’t so quick with the support — so that I can be forced to think things through a little more myself!! 😉

    Yes yes yes OF COURSE just add a <div> and style it…I feel like the Homer Simpson of WordPress.org!!! :-\

    Thanks, that really works…and thanks especially for the updates with more, erm, uh, “hooks” or whatever the CSS term is (selectors??)…now maybe you can answer a couple of VCR-programming questions I happen to have, too…. 😉

    Seriously, thanks a billion. I’m curious which option will prove best for my needs — but it’s nice to know I’ve got options!

    Thread Starter The Author Jack Foreigner

    (@the-author-jack-foreigner)

    Hi, John,

    Thanks ever so much for your time and thoughts — no need to rush, of course, so help only at your convenience!

    Okay, so, this is the thing:

    I’m trying to suppress display of the upper left-hand corner ad unit for only certain Post Categories. I’m fine with CSS when there are no ad-blockers enabled, targeting .first, but when there is an ad-blocker present, what ABD, your plugin, does is revert to the Ad Blocker Detected shortcode — quite logically, of course. But for my purposes, I can no longer target .first in this case — that class doesn’t exist under the .ABD_display_adblocker container (which I can’t simply target since that removes all ad units and I only want to suppress just one)….

    That’s the context around my “second question,” as you put it. Now the “first question” (my initial comment here) is related: for some reason, Post ID 2702 is a really bad misbehaving webpage and I’ve had many weird issues with it suddenly, even though it’s been fine since its creation back in May…anyhow, the upshot is that targeting categories isn’t possible when it comes to this one webpage (Post ID 2702)…blah blah blah….

    Okay, so just to summarize: I can’t use .ABD_display_adblocker as it suppresses all ad units. What could the alternative be?

    Thread Starter The Author Jack Foreigner

    (@the-author-jack-foreigner)

    Hi, John,

    Thanks so much for taking the time to respond — and in such detail, too!

    The “concept code” (“code mockup” or whatever it’s called) you provided is exactly what I had in mind. In particular,

    foreach( $category_ids_to_skip as $category_id ) {
    if( in_category( $category_id ) ) {
    // Uh oh! We have a match. One of the IDs
    // specified matches this posts’ categories. Do
    // whatever we are supposed to do when category
    // matches.

    caught my attention…now I really do I know better, but I’m gonna ask anyway, mostly out of sheer curiosity: what would the PHP be for “Uh oh! We have a match. One of the IDs specified matches this post’s categories. Do NOT output Ad Blocker Detected shortcode“???

    Now, John, I’ve been trying to make this thread as general as possible to possibly be of some benefit to others as well (and kudos for taking the initiative to respond at length for the reference of posterity!) but I think I’ll have to get “personal” here so that the context of my request makes better sense, as it sounds pretty ridiculous that I want to disable your plugin without actually disabling it!

    (The following is actually not all that important but provided in case it matters somehow.)

    See, the thing is, for certain Posts, I don’t want a particular ad unit showing (the upper left-hand corner one, to be exact). So I’ve got CSS to target it for specific Post Categories and specific Post IDs.

    But here’s the tricky thing: targeting .ABD_display works when there’s no ad-blocker enabled (so that I can suppress display of that particular upper left-hand corner ad unit), but when an ad-blocker is enabled, targeting .ABD_display_adblocker makes all ads disappear!

    Hence why I thought to abandon CSS and turn to PHP….

    Thread Starter The Author Jack Foreigner

    (@the-author-jack-foreigner)

    Incidentally, I should say that I’m only asking such questions because Ad Blocking Detector appears to strip or override Advanced Ads’ native Display Conditions (don’t show in this category, or on this page, etc.) and so I have to resort to targeting and intercepting this (ABD’s) plugin’s output in the CSS!

    Thread Starter The Author Jack Foreigner

    (@the-author-jack-foreigner)

    I guess what I’m really asking (thank you for your patience; not as articulate when it comes to coding) is: what CSS selectors (or whatever they’re called) does Ad-Blocking Detector offer??

    So far I can identify a few, like .first, .ABD_display, and #aswift_0_expand, but I need more to achieve one last thing….

    Thread Starter The Author Jack Foreigner

    (@the-author-jack-foreigner)

    Well, never mind: I guess when given enough time, I’ll eventually find a workaround!

    “Sorry for the bother,” as I’m wont to say these days….

    (But please do take a look at my new thread, which is related to this one: “Plugin Doesn’t Like My Page” — thanks!)

    The Author Jack Foreigner

    (@the-author-jack-foreigner)

    Ah, well, just deactivated and deleted Jetpack, then reinstalled it and reconnected to WordPress.com…this rectified the situation — whatever it was!

    The Author Jack Foreigner

    (@the-author-jack-foreigner)

    Same problem here…for example, at http://jack-foreigner.com/chinese-century-novels (but any webpage that’s a WordPress post on my site there has this same exact issue)…what gives??

    I had to restore my site due to either Bluehost hijinks (not uncommon, unfortunately) and/or an official Jetpack hack that’s now outdated and causing issues (http://jetpack.me/2013/06/10/moving-sharing-icons) and now I’ve got this same “invalid request signature” error all of a sudden….

    All advice appreciated!!

    Thread Starter The Author Jack Foreigner

    (@the-author-jack-foreigner)

    Basically, something like

    function ToBeOrNotToBe() {
    if category-id = array (a, b, c)
    then No-Ad-Blocking-Detector-Please
    else echo do_shortcode(‘[adblockingdetector id=”14″]’);
    }

    THANKS!!!

    The Author Jack Foreigner

    (@the-author-jack-foreigner)

    Okay, thanks for the clarification. 🙂

    Thread Starter The Author Jack Foreigner

    (@the-author-jack-foreigner)

    Thanks, whatwhatwhat, for the tip…I’m using the “Advanced Ads” and “Ad Blocking Detector” plugins quite satisfactorily!

Viewing 15 replies - 16 through 30 (of 64 total)