• I am using WP-PDA along with Adsenser. Some reason adsenser displays the default ads with the authors Publisher ID.

    I tried outputting the mThemeName variable and in both cases mobile view and web view it is equal to “Atahualpa333” which is my standard theme. Yet the ads display with the authors ID.

    Also I saw in the options table there was a variable for the pda-theme and settings. I set it to the same settings as my standard theme yet no effect on the mobile version.

    Has anyone implemented both successfully? Or perhaps is there an option or code I could put into the Theme Pages that would disable Adsenser from running when in Mobile mode?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Sorry, I don’t use WP-PDA or provide a mobile version of my blog. May be I should. Anyways, I will try to figure out why it doesn’t work for you from WP Codex. Is there a function like is_pda() or is_mobile()?

    Thread Starter nyshocka

    (@nyshocka)

    There is no WP Codex function for determining if the browser is a pda. the WP-PDA plugin creates an option array of all possible Mobile Browsers, then determines the users browser and determines if they are a mobile user or not.

    I think I will wait till WP comes up with some standard functions to determine the target browser.

    One thing you could try is to look at your database and check if there are ezAds options corresponding to a mobile version of the theme you are using. If so, you may want to copy over it. Either that or just edit the plugin php to put your adsense code where needed. Sorry, I don’t know how else I can help.

    Thread Starter nyshocka

    (@nyshocka)

    Well here is an idea.. I was thinking of for all plugins. And maybe this goes to the WordPress Gods…

    Perhaps a function to disable a plugin on a page.. Just a thought. I was thinking how I could manipulate your plugin no to filter the post content via the theme pages….

    Neat ideat! This is entirely possible. Try this code in the if block of whatever condition you want to disable the filter (in single.php, for instance)

    <?php
    global $ez_ad ;
    if (isset($ez_ad))
      remove_filter('the_content', array($ez_ad, 'ezAdSense_content'));
    ?>

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Easy AdSenser] Adsenser w/ WP-PDA Plugin’ is closed to new replies.