Page 1 of 1

new ccap deleting old ccaps

PostPosted: April 1st, 2011, 3:02 pm
by yolle555
Hi!
when a user buys an access to a particular section on my page, he gets a custom capability. if he buys more of them, he has effectively more ccaps. up until now I was manually adding the ccaps because the plugin wasn't working correctly. with the new version of s2member it works and automatically upgrades the user and adds the ccap. the problem is that it overwrites all the other ccaps that particular user had. anyone knows solution to this?
thanks

Re: new ccap deleting old ccaps

PostPosted: April 1st, 2011, 3:09 pm
by Cristián Lávaque
Sure. :)

Next to the Custom Capabilities field when you create the modification button, you'll see a [?] link that gives some extra information:

Optional. This is VERY advanced. For full details, see:
s2Member -> API Scripting -> Custom Capabilities.

*ADVANCED TIP: You can specifiy a list of Custom Capabilities that come with this purchase. Or, you could tell s2Member to (ADD) Custom Capabilities to any that already exist for a particular Member. Just start your list of Custom Capabilities with a (+) sign.

So instead of setting a Member's full set of Custom Capabilities to:
music,videos,archives,gifts

You could (ADD) new ones to any that already exist:
+calendar,forums,tools

Or to prevent any changes, (ADD) nothing:
+