Updated: Premium Lite

The Premium Lite plugin has been updated. The new version contains a fix for a problem that was keeping some people from adding packages.

Thanks,

Andrew

  • Bloggproffs
    • Flash Drive

    A quick question regarding this plugin.. dosent this code mean that the user gets ads on his site?

    <?php

    if ($premium_show_ads == ‘1’:wink:{

    ?>

    AD CODE GOES HERE

    <?php

    }

    ?>

    or is it perhaps me that is missenterpeting the variable name? as i see it, i premium_show_ads is set to 1 (yes) show the ads! ?

    if this is the case, would it be hard to simply switch it around so that if user is premium, dont show the ads? now i thougt this was the main idea behind the plugn.

    Best regards from sweden

  • Luke
    • The Crimson Coder

    I would think that if that condition is met, then the end user isn’t premium and therefore ads are shown.

    Meaning that premium show ads means to show it if the user isn’t premium.

    Guess the only way to know is to try it.

    But hey, at least Andrew isn’t using variable names like fred, bob, or foreach ($cat as $dog). lol

    My best guess for the variable name is that premium dictates it as part of the premium plugin, and then show_ads being whether or not to show them. But, I’m guessing at this point.

  • Andrew
    • Champion of Loops
      My best guess for the variable name is that premium dictates it as part of the premium plugin, and then show_ads being whether or not to show them. But, I’m guessing at this point.

    That’s exactly it. show_ads could easily be used by another plugin so I wanted to avoid any possible conflicts. 90% of my plugins have the plugin name in most variables.

    Thanks,

    Andrew