WordPress.org

Ready to get started?Download WordPress

Profiles

timbishop

Profile picture of timbishop
  • Member Since: March 1st, 2009
  • Posted a reply to "[Plugin: All in One Adsense and YPN] Donation code off by one?", on the site WordPress Support Forums:
    nareshg: view the source of your webpage and check the adsense ID is correct.

    5 years ago

  • Posted a reply to "[Plugin: All in One Adsense and YPN] Donation code off by one?", on the site WordPress Support Forums:
    Actually, $d_pct = intval($donation); Is probably all that's required for that line.

    5 years ago

  • Posted a reply to "[Plugin: All in One Adsense and YPN] Donation code off by one?", on the site WordPress Support Forums:
    How about this: $donation = get_option('ai_donation'); $d_pct = intval(round(intval($donation))); if($d_pct){ $d_rand = mt_rand(1,100); if($d_rand <=…

    5 years ago

  • Posted a reply to "[Plugin: All in One Adsense and YPN] Donation code off by one?", on the site WordPress Support Forums:
    Here's your code (trimmed down and tided a bit, but functionally identical): $donation = get_option('ai_donation');…

    5 years ago

  • Created a topic, [Plugin: All in One Adsense and YPN] Donation code off by one?, on the site WordPress Support Forums

    5 years ago