Community Support Forums — WordPress® ( Users Helping Users ) — 2011-11-03T11:43:06-05:00 http://www.primothemes.com/forums/feed.php?f=36&t=15420 2011-11-03T11:43:06-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15420&p=50911#p50911 <![CDATA[Re: Keeping s2member roles during upgrades]]> Very welcome. Thanks for reporting back on this!
dwdutch wrote:
I just did an upgrade and this fix worked wonderfully. Thanks for the info and the clarification on mu-plugins :)

Statistics: Posted by Jason Caldwell — November 3rd, 2011, 11:43 am


]]>
2011-11-02T18:02:46-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15420&p=50838#p50838 <![CDATA[Re: Keeping s2member roles during upgrades]]>

Statistics: Posted by dwdutch — November 2nd, 2011, 6:02 pm


]]>
2011-10-25T16:02:06-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15420&p=48783#p48783 <![CDATA[Re: Keeping s2member roles during upgrades]]> Sure, thanks for the follow-up, much appreciated!

Note, /wp-content/mu-plugins/ = MUST USE plugins, and this does not require you to have a Multisite installation. MUST USE plugins are an easy way to inject your own code ( i.e. custom plugins ). See: http://codex.wordpress.org/Must_Use_Plugins

Statistics: Posted by Jason Caldwell — October 25th, 2011, 4:02 pm


]]>
2011-10-24T12:46:40-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15420&p=48669#p48669 <![CDATA[Re: Keeping s2member roles during upgrades]]>
By the way, I don't have a multi-user installation of WordPress so I don't have a mu-plugins directory. I just placed the recommended line in my own hacks file.

Statistics: Posted by dwdutch — October 24th, 2011, 12:46 pm


]]>
2011-10-08T19:54:00-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15420&p=45162#p45162 <![CDATA[Re: Keeping s2member roles during upgrades]]> Thanks for the heads up on this thread Cristián.

Yes, you may create this directory and file to lock-in your Roles/Capabilities for s2Member.
/wp-content/mu-plugins/s2-hacks.php
Code:
<?php
add_filter
("ws_plugin__s2member_lock_roles_caps", "__return_true");
?>
* This will prevent future upgrades from resetting/re-configuring your Roles/Caps.

In addition, this will disable the Reset Roles/Capabilities button in the Dashboard, under:
s2Member -> General Options -> Membership Levels/Labels. Actually, the button is not disabled completely, but clicking the button does no good, because s2Member will simply return a message indicating that Roles/Capabilities have been locked by this Filter.

Statistics: Posted by Jason Caldwell — October 8th, 2011, 7:54 pm


]]>
2011-10-05T01:53:56-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15420&p=44856#p44856 <![CDATA[Re: Keeping s2member roles during upgrades]]> Statistics: Posted by Cristián Lávaque — October 5th, 2011, 1:53 am


]]>
2011-10-04T14:18:14-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15420&p=44824#p44824 <![CDATA[Keeping s2member roles during upgrades]]>
I've noticed that on the past couple of upgrades, however, the S2Member roles are "reset" so, that any added capabilities are cleared and I have to remember to go back in to re-assign this capability to those group of users.

Is it possible that future upgrades can simply "retain" the existing assignments allocated to the roles?

Statistics: Posted by dwdutch — October 4th, 2011, 2:18 pm


]]>