Giter VIP home page Giter VIP logo

pmpro-network's Introduction

License

Welcome to the Paid Memberships Pro - Member Network Sites GitHub Repository

Create a network site for the member as part of membership to the main site.

Allow a member to purchase one or more sites as part of membership. Once configured, the member can purchase membership at the network’s main site (the primary domain of the network) and specify the “Site Name” and “Site Title” for their new site on the network.

Any sites attached to a member will be deactivated when membership expires or cancels.

For more information please visit the Add On documentation page for this plugin.

Installation

For detailed installation steps, visit the documentation page.

  1. Download the current development ZIP file directly: https://github.com/strangerstudios/pmpro-network/archive/dev.zip

Please ensure that once installing this version of the plugin to remove -dev from the plugin's folder name.

Bugs

If you find an issue/bug, let us know by creating a detailed GitHub issue.

Support

This is a developer's portal for Paid Memberships Pro - Member Network Sites. We do not offer support on this channel. Any support related questions should be directed to our website.

Contributing to Paid Memberships Pro - Member Network Sites

We encourage and welcome any contribution to Paid Memberships Pro - Member Network Sites. Please read the guidelines for contributing to this repository.

There are various ways to the help development of Paid Memberships Pro - Member Network Sites:

  1. Report bugs/issues on GitHub.
  2. Work on any issues by submitting a Pull Request.

Here are some ways for non-developers to contribute to Paid Memberships Pro - Member Network Sites:

  1. Translate Paid Memberships Pro - Member Network Sites into your own language.
  2. Purchase a Plus membership to help fund ongoing development and bug fixes.

pmpro-network's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pmpro-network's Issues

Failed CC transaction does not re-enable Paypal button [Fix included]

While using dual payment methods (stripe and paypal), when incorrect info is found and the "processing…" message is removed, the credit card Submit button is re-enabled, but the Paypal button image stays disabled. To fix this, I needed to remove the "disabled" attribute from image type buttons as well. I modified stripeResponseHandler() in "/classes/gateways/class.pmprogateway_stripe.php":

 function stripeResponseHandler(status, response) {
                if (response.error) {
                    jQuery('.pmpro_btn-submit-checkout').removeAttr("disabled");
                     // re-enable the PayPal button
                    jQuery('input[type="image"]').removeAttr("disabled");

Detect if Multisite is not enabled.

We do already check if the plugin is being network activated, but we should also check if multisite is enabled when this is activated on a single site.

The checkout still adds fields for site/etc, but won't work.

Issue with site

Our Main site is at http://domain.com and our subsites are created using subdomain method.
Issue is if the site credits are 0 and the user registers(which is a level option to register without site) they get allocated a site http://.domain.com
how do we stop the dot!

Undefined Variable errors

I am experiencing these errors running PMPro 1.7.13.1 and Network Site Helper .3.2 running on my local host

Notice: Undefined variable: blogname in /Applications/MAMP/htdocs/beatstore-new/wp-content/plugins/pmpro-network-master/pmpro-network.php on line 72

Notice: Undefined variable: blogname in /Applications/MAMP/htdocs/beatstore-new/wp-content/plugins/pmpro-network-master/pmpro-network.php on line 81

Notice: Undefined variable: sitename in /Applications/MAMP/htdocs/beatstore-new/wp-content/plugins/pmpro-network-master/pmpro-network.php on line 95

Notice: Undefined variable: sitetitle in /Applications/MAMP/htdocs/beatstore-new/wp-content/plugins/pmpro-network-master/pmpro-network.php on line 110

Site Information not being returned after checkout

Hi Jason,

I am using the pmpro-network plugin with a Paypal Express gateway to allow users to signup and create a wordpress subsite.

I find that when a user is signs up they are directed to Paypal correctly but when being returned to the checkout page to to complete the payment the Site name and title information isn't being populated in the boxes. If you fill the details in the boxes it signs up successfully but if the user leaves it blank it assigns them access to the master site.

Do you know what would could cause this issue?

Kind Regards,

Michael

BUG: wpmu_new_blog is deprecated since version 5.1.0

When creating a new site, the server throws a PHP warning wpmu_new_blog is deprecated since version 5.1.0

function pmpron_new_blogs_settings($blog_id)
{
global $wpdb;
//change the default theme
/*
update_blog_option($blog_id, 'current_theme', 'Your Theme Name');
update_blog_option($blog_id, 'template', 'your-theme-directory');
update_blog_option($blog_id, 'stylesheet', 'your-theme-directory');
*/
//change the subtitle "blogdescription"
update_blog_option($blog_id, 'blogdescription', 'Change your subtitle');
//change the category 1 to "general" (pet peeve of mine)
$sqlQuery = "UPDATE " . $wpdb->prefix . $blog_id . "_terms SET name = 'General', slug = 'general' WHERE term_id = 1 LIMIT 1";
$wpdb->query($sqlQuery);
//make the blog public
$sqlQuery = "UPDATE $wpdb->blogs SET public = 1 WHERE blog_id = '" . $blog_id . "' LIMIT 1";
$wpdb->query($sqlQuery);
//add some other categories
/*
wls_add_category($blog_id, "Books", "books");
wls_add_category($blog_id, "Events", "events");
wls_add_category($blog_id, "Food", "food");
wls_add_category($blog_id, "News and Interest", "news");
*/
}
//actions
add_action( 'wpmu_new_blog', 'pmpron_new_blogs_settings' );

See: https://developer.wordpress.org/reference/hooks/wpmu_new_blog/

Moderators (Only):
https://www.paidmembershipspro.com/forums/topic/creating-a-site-returns-php-warnings-for-a-deprecated-hook/

Confusion

//set these values
define('PMPRO_NETWORK_MANAGE_SITES_SLUG', '/manage-sites/'); //change to relative path of your manage sites page if you are setting site credits > 1
$pmpro_network_non_site_levels = array(); // change to level id's that should not create a site: e.g. array('1','2','3')

I am confused with these statements.Please elaborate more about this.And is there page where the main site user can manage the membership with actions like suspense,deactivate ect ??

Newly registered user has access to the main site

When a user registers they have access to their newly created site and the 'main' site from which they registered. Is it possible to register the user so they are only given access to the new site?

can't use a cloning tool for multisite

No one's going to pay membership fees for an absolutely blank fresh install of wp with 2015 theme and no plugins. It needs to be set up with all the goodies. This requires cloning for the most part. Not all plugins can be mu-plugins and that wouldn't help with the settings on these plugins anyway. I've tried all the cloning tools that have a "set as default blog to be cloned" setting and either get white screen of death or a message saying "You will be reclaiming your site" even though I'm using a fresh email that's never registered or had a site.
I've got the multisite addons and everything is set up. Makes new blank blogs by itself without a problem but there needs to be some added value to them.

Malformed sitename allowed

In the function pmpron_addSite($sitename, $sitetitle) this line of code (currently line 271 in the file):

$blog_id = wpmu_create_blog($site, $path, $sitetitle, $current_user->ID, $meta);

At this point, from the checkout page the user could have put in "...." as the the site name -- and PMPro will just take that input and use it in the resulting call to wpmu_create_blog( ) .

I've already had one customer create a mal-formed multisite that is causing SSL errors.

Do you think the function should make a call to WP function wpmu_validate_blog_signup( )?

It seems like that would give the opportunity to return a WP_Error object and avoid this problem.

I'm really surprised that this hasn't come up much earlier across your user base, which makes me think I'm missing something -- but I stepped through the code and I can't see where the site name has any opportunity to be filtered before WP takes it and goes off to create the new blog.

I see a similar issue on username -- it's taking anything, no validation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.