Upgrades Plug-in

In the Upgrades plug-in, there’s an option of Disable Ads, so that people can purchase credits to disable ads on their blogs.

But how do I place the Ads on their blog? Is Upgrades plug-in compatible with Simple Ads plug-in? Are they related?

  • Andrew
    • Champion of Loops

    Hiya,

    But how do I place the Ads on their blog?

    You have to use the upgrades_show_ads() function like so:

    <?php

    if ( upgrades_show_ads() == 1 ) {

    ?>

    ad code goes here

    <?php

    }

    ?>

    Is Upgrades plug-in compatible with Simple Ads plug-in? Are they related?

    I’m afraid not.

    Thanks,

    Andrew

  • Ken
    • Site Builder, Child of Zeus

    Also, I would like to have something like ‘Premium Support’ so bloggers can purchase credits for getting 1-1 premium support. Of course, I will manage the support system, but how do I create an custom Upgrade like that?

    Is it possible to increase the Storage Upgrade further?

    Thanks.

  • Andrew
    • Champion of Loops

    Is there any solution to this?

    We’re working on a plugin for this. I’m not sure when it will be released though.

    Also, I would like to have something like ‘Premium Support’ so bloggers can purchase credits for getting 1-1 premium support. Of course, I will manage the support system, but how do I create an custom Upgrade like that?

    Well, the credits system is already in place. So all you need is a support system that would allow them to ‘spend’ credits. Basically you will need a custom or modified support system. As this is a rather custom request I’m afraid we really can’t be of much assistance.

    Is it possible to increase the Storage Upgrade further?

    It can be done but is10GB not enough? What kind of files are your users going to be uploading?

    Thanks,

    Andrew

  • Ken
    • Site Builder, Child of Zeus

    Thanks for your good reply Andrew.

    As I already stated, I am not concerned about the support system as it will be my responsibility, but my question is, how to utilize the credit system in such manner? How do I create a new Package with the custom name?

  • Andrew
    • Champion of Loops

    Hiya,

    You really don’t have to create a new package. Users purchase credits to spend on packages but you can easily allow them to spend credits on other stuff. Just deduct the credits from their account. There’s no need to setup a package for something like that.

    Thanks,

    Andrew

  • Ken
    • Site Builder, Child of Zeus

    @Andrew,

    All right. Thanks for the info. I can wait.

    But as I asked before, is it very difficult to create a new Package for my own custom service like Premium Support? Creating a new custom Package would be make work much easier for me.

    THanks.

  • Ken
    • Site Builder, Child of Zeus

    Andrew,

    I obviously know how to create a new Package. What I am asking is, how to create my own custom package.

    The default packages contains Ad Removal, Privacy and Storage Increase. But how do I add my own custom service like Premium Support in the list?

  • joshmac
    • Site Builder, Child of Zeus

    I believe I know what you are asking. If you are just looking to create a simple plugin where people can upgrade to receive premium support, you will need to create a plugin with the hook similar to this:

    //register premium support

    upgrades_register_feature(‘md5generatedcode’, ‘Support’, ‘Premium Support.’:wink:;

    if (upgrades_active_feature(‘md5generatedcode’:wink: == ‘active’:wink: {

    if (get_premium_support == ‘1’:wink: {

    }

    }

    //add additional code

    add_action(‘xxxxxx’, ‘xxxxxx’:wink:;

  • Aaron
    • Ex Staff

    But since I’m not a developer or a coder to create a plug-in, can anyone tell me how to create my own custom Package in the Upgrades plug-in?

    If you can’t do it yourself with the plugin documentation or examples provided here, you will really need to hire a coder to do that for you.

  • Andrew
    • Champion of Loops

    Hiya,

    While creating a new package, how do I charge users only annually for specific Upgrades?

    I’m afraid that’s not possible at the moment.

    Also, what do I do if I need decimal amount for Upgrades? (like $0.5)

    Packages are paid for with credits and only whole credits can be used. So you would need to configure your cost per credit so that a single credit costs $0.50 and then set the upgrade package to cost 1 credit.

    Thanks,

    Andrew

  • Ken
    • Site Builder, Child of Zeus

    I have asked before about creating a custom package like Premium Support.

    Will it work if I create a new Package and set the Name, description and credits, but not set the Plug-ins.

    In the Package Create page, there are fields like Name, Descriptions, Credits for a month, 3 months and a year. Then there are fields like Plugin One, Plugin Two and so on, which allows me to set the service.

    Will the custom package work if I leave the Plugins field blank?

    The credits will still be deducted and I will be able to see the subscribers to that Package. Right?

    Hope you get what I mean to say.

    THanks.

  • Andrew
    • Champion of Loops

    Will the custom package work if I leave the Plugins field blank?

    Technically it should.

    The credits will still be deducted and I will be able to see the subscribers to that Package. Right?

    You can see how many blogs are subscribed to a particular package via the admin panel. However, you’ll have to run a db query to get a list of blogs that are subscribed.

    Thanks,

    Andrew

  • Andrew
    • Champion of Loops

    Hiya,

    Here’s an example query:

    “SELECT blog_ID FROM wp_upgrades_package_status WHERE package_ID = ‘PID’ AND package_expire > ‘TIME'”

    PID = package id

    TIME = time stamp

    Hope that helps. I’m afraid this is getting into custom coding though. So this is really all the assistance we can provide on this.

    Thanks,

    Andrew

  • Ken
    • Site Builder, Child of Zeus

    Thanks @Andrew. It helped a lot.

    If possible, can you please add the function to see which blog(s) is subscribed to specific Upgrades in the plug-in on it’s further releases?

    It would be a lot useful for many sites.

    Thanks.

  • Ken
    • Site Builder, Child of Zeus

    @Andrew,

    Can you please tell me where should I place the code? I have created premium_support.php file in the folder and I am confused whether to place the code into Functions, Output Functions or Page Output Functions.

    I am aware that you don’t provide custom coding support, but please just explain where to place the code you gave before.

    Thanks a lot.

  • Andrew
    • Champion of Loops

    Hi Kenneth,

    I didn’t provide you with any code. I just provided you with a query.

    I am confused whether to place the code into Functions, Output Functions or Page Output Functions.

    Those sections really don’t mean anything. They’re just there to help me keep code organized.

    I’m afraid if you need assistance with this you’ll really need to hire a developer.

    Thanks,

    Andrew