Can't install Membership 2 Pro on my trial membership

I'm attempting to install this on a local installation of WordPress for testing at localhost:8888 using MAMP. It says it was previously installed at this domain "by the user Sue(s*e@s*b*st*dios.com)". So, nobody else can test this plugin locally?

  • Rupok

    Hi Aaron, hope you had a wonderful day.

    This is happening because of your Trial membership. Trials are limited to one time per WordPress site. This means that once a domain is registered with WPMU DEV, it is impossible to use the same domain with a free trial account at any time in the future. As localhost is a very common domain, so I assume, someone might have registered this before for his trial account, and as a result, you can't register it anymore.

    However, this can be solved easily by creating virtual host in your local system. If you are in Windows and using XAMPP, you can check this tutorial: https://delanomaloney.com/2013/07/10/how-to-set-up-virtual-hosts-using-xampp/
    If you are using Mac, you can check this tutorial: http://www.joostrap.com/blog/setting-up-local-virtual-hosts-in-mamp

    So you can create a virtual domain like http://www.anything.dev locally and run your site there. You should be able to register that site in your Trial Account.

    Please let us know if you have any confusion. We will be glad to help.

    Have a nice day. Cheers!
    Rupok

  • Aaron

    OK, I've got things up and running per the instructions you sent so that my local site has a unique name. Now I can't figure out how to activate the pro version of Membership 2. In the "help" page, it says "this is the free version ... have checked out the pro version?" But then I see here and in the dashboard that the pro version is installed to my local site. How do I fix this?

    I want to be able to install and test the Coupon add-on.

    While I'm at it I may as well explain my ultimate goal here. I need to prototype a video streaming + product registration system.

    Customer would buy a book at a brick and mortar store or on Amazon or our online store. The book would contain a key code and instructions to create an account at our site. The user would then enter the code and this would unlock access to the videos tied to that book; the videos would stream from Wistia onto our pages. As the customer purchases more books that have streaming video content, they would be able to use the account they created to register those books and unlock more videos.

    Im trying to use the coupon feature as the registration system. The coupons would be unique to each book title, not each customer. Not a fool proof protections system but that's ok.

    If membership 2 works for us, we'll definitely subscribe for a long period of time.

  • Kasia Swiderska

    Hello Aaron,

    Could you check if you can easily install themes and plugins from the WordPress repository - what I mean by that is if WordPress is not asking you for the FTP credentials? If its not asking and you can install plugin from repo then please try removing Membership plugin you already have installed (remove membership directory from wp-content/plugins/ and try installing again from WPMU DEV Dashboard. Let me know how it goes.

    kind regards,
    Kasia

  • Aaron

    Thank you. I have Membership 2 Pro installed and the Coupon plugin activated!

    I wonder if you could help me figure out a way to an image (either as the featured image of a protected page or an image that is somehow assigned to a specific membership) to a membership and display that image in the Account page next to each membership a user has purchased. Also, I'd like to be able to add a link to each listed membership on the account page. Alternatively, I could create an "account overview" page where a list of all memberships that a user has purchased would live, again with an image representing each membership as well as linking to each piece of content protected by that membership. I am a theme developer, so I think I can take care of the coding, I just need a push in the right direction if possible. Thanks so much!

  • Rupok

    Hi Aaron, hope you had a wonderful day.

    I'm afraid, there is no native way for adding images per membership. But you can do this with custom jQuery. For doing this, you will need to create a MU Plugin. For creating a MU Plugin, create a folder named "mu-plugins" inside your "wp-content" folder. Then inside that "mu-plugins" folder, create a file with any name and with a .php extension. Now paste the code inside that file and save.

    <?php
    add_action( 'wp_footer', 'add_membership_content' );
    function add_membership_content() {
        ?>
        <script type="text/javascript">
          jQuery(document).ready(function() {
    		jQuery('#account-membership td:contains("Hacked Membership")').append('<img src="http://example.com/one.jpg" />');
    		jQuery('#account-membership td:contains("Dripped Hacked")').append('<img src="http://example.com/two.jpg" />');
          });
        </script>
        <?php
    }

    In my test site, I've two Membership "Dripped Hacked" and "Hacked Membership". So please replace with your Membership Plan names in code above or add more.

    For getting more idea on mu plugins, you can go through this article: http://premium.wpmudev.org/manuals/wpmu-manual-2/using-mu-plugins/

    Please let us know if you have any further inquiry. We will be glad to help.

    Have a nice day. Cheers!
    Rupok

  • Aaron

    Thanks so much! That worked really well. I wonder if you can help me with something else. I want to tweak the registration sequence. Users will land at a page that has a login form. That page will also have a button that says "create new account". Currently, when I click on it, it takes us to the page that has the list of available memberships. You have to choose a membership in order to proceed to the account creation form. What I want to do is skip the membership selection process and go right to the account creation form. Any hints?

  • Nithin

    Hi Aaron,

    Hope you are doing good today. :slight_smile:

    What I want to do is skip the membership selection process and go right to the account creation form. Any hints?

    If I'm not mistaken, you are using it along BuddyPress plugin, right? Membership 2 supports BuddyPress form, where you can enable the BuddyPress register form once you click register, and then the registered user can go to memberships page to select their particular membership. You can enable this under Membership 2 > Add-ons > BuddyPress integration, and enable Use BuddyPress registration.

    Please let us know if you need any further help. Have a nice day. :slight_smile:

    Kind Regards,
    Nithin