Page 1 of 1

Auto Custom Capabilities

PostPosted: September 29th, 2011, 3:28 am
by meiguoacademies
From the Dashboard menu: s2Member >>> PayPal Buttons >>> PayPal Buttons for Level #1 Access (or for any other level of access), my question is: Is it possible to use "%%current_user_login%%" in the "Custom Capabilities" entry box, so that when a user purchases and registers their username, they automatically are given custom access to a page made up of their username? Thanks!

Re: Auto Custom Capabilities

PostPosted: October 1st, 2011, 3:48 am
by Cristián Lávaque
It needs a little custom coding to achieve since s2Member doesn't do it by default.

If you search the forum for my hack to login automatically after registration, you'll find the code you could use for this, just add a line that gives the user the custom capability. viewtopic.php?f=4&t=14211#p31548