10625 pointsLike some sort of WPMU DEV GodMindblowingly helpful memberLifetime member
Sales & Support Lead
—
16th November 2010 (1 year ago)
#
Hiya,
You could do this, but you'd have to create some new code for MarketPress to do so. If you take a look at the included plugins with 'upgrades' (in the upgrades plugin folder) you can see how the plugins are registered conditionally on matching the unique key.
Follow this format and you should be able to make it work. Alternatively you could post your project on the Job Board and a developer could handle it: http://premium.wpmudev.org/wpmu-jobs/
@masonjames - thanks, I'm testing code for this today. Looks pretty straight forward. Place the plugin in the proper directory within "Upgrades" and create the conditions to enable access to the menu items.
I wonder if a developer could take a look and make sure I'm not missing anything here...
I placed the file marketpress.php and the entire directory 'marketpress-includes' inside of the upgrade-plugins directory. Then I located the init of the MarketPress class inside of marketpress.php and wrapped the upgrades_register_feature around it.
//###########################Register MarketPress as an Upgrade################
//register premium features
upgrades_register_feature('xxxxxxxxblahblahblah', 'MarketPress', 'A complete e-commerce solution.');
if (upgrades_active_feature('xxxxxxxxblahblahblah') == 'active'){
global $mp;
$mp = new MarketPress();
}
//###########################Register MarketPress as an Upgrade################
It seems to be working out just great! Am I missing any functionality here? Thanks in advance.
I only needed to place the proper marketpress files and directories into the mu-plugins directory as normal. I then edited the marketpress.php file. I did a search for the 'new MarketPress' and wrapped the code like the following.....
//###########################Register MarketPress as an Upgrade################
//register premium features
upgrades_register_feature('xxxxxxxxblahblahblah', 'MarketPress', 'A complete e-commerce solution.');
if (upgrades_active_feature('xxxxxxxxblahblahblah') == 'active'){
global $mp;
$mp = new MarketPress();
}
//###########################Register MarketPress as an Upgrade################
and It works perfectly with the 'Upgrades' plugin. Just create a package as you normally would in 'Upgrades' and you are good to go.
Responses (5)
Sales & Support Lead — 16th November 2010 (1 year ago) #
Hiya,
You could do this, but you'd have to create some new code for MarketPress to do so. If you take a look at the included plugins with 'upgrades' (in the upgrades plugin folder) you can see how the plugins are registered conditionally on matching the unique key.
Follow this format and you should be able to make it work. Alternatively you could post your project on the Job Board and a developer could handle it:
http://premium.wpmudev.org/wpmu-jobs/
Hope this helps. Thanks!
Member — 16th November 2010 (1 year ago) #
@masonjames - thanks, I'm testing code for this today. Looks pretty straight forward. Place the plugin in the proper directory within "Upgrades" and create the conditions to enable access to the menu items.
I wonder if it could be this simple....
Member — 16th November 2010 (1 year ago) #
I wonder if a developer could take a look and make sure I'm not missing anything here...
I placed the file marketpress.php and the entire directory 'marketpress-includes' inside of the upgrade-plugins directory. Then I located the init of the MarketPress class inside of marketpress.php and wrapped the upgrades_register_feature around it.
//###########################Register MarketPress as an Upgrade################
//register premium features
upgrades_register_feature('xxxxxxxxblahblahblah', 'MarketPress', 'A complete e-commerce solution.');
if (upgrades_active_feature('xxxxxxxxblahblahblah') == 'active'){
global $mp;
$mp = new MarketPress();
}
//###########################Register MarketPress as an Upgrade################
It seems to be working out just great! Am I missing any functionality here? Thanks in advance.
Gregg
Member — 16th November 2010 (1 year ago) #
Update - Resolved.....
I only needed to place the proper marketpress files and directories into the mu-plugins directory as normal. I then edited the marketpress.php file. I did a search for the 'new MarketPress' and wrapped the code like the following.....
//###########################Register MarketPress as an Upgrade################
//register premium features
upgrades_register_feature('xxxxxxxxblahblahblah', 'MarketPress', 'A complete e-commerce solution.');
if (upgrades_active_feature('xxxxxxxxblahblahblah') == 'active'){
global $mp;
$mp = new MarketPress();
}
//###########################Register MarketPress as an Upgrade################
and It works perfectly with the 'Upgrades' plugin. Just create a package as you normally would in 'Upgrades' and you are good to go.
Sales & Support Lead — 17th November 2010 (1 year ago) #
Awesome!
Glad you got it sorted Brayne.
Also, thanks for posting your results here as I'm sure others will be interested :D
Become a member