Statistics: Posted by egleiser — March 23rd, 2011, 9:48 pm
%%sp_access_exp%% = Human readable expiration for %%sp_access_url%%.
Ex: ( link expires in %%sp_access_exp%% ).
You can also use these special Replacement Codes if you need them:
* %%sp_access_url%% = The full URL ( generated by s2Member ) where the Customer can gain access.
* %%sp_access_exp%% = Human readable expiration for %%sp_access_url%%. Ex: ( link expires in %%sp_access_exp%% ).
* %%txn_id%% = The PayPal® Transaction ID. PayPal® assigns a unique identifier for every purchase.
* %%amount%% = The full Amount that you charged for Specific Post/Page Access. This value will always be > 0.
* %%first_name%% = The First Name of the Customer who purchased Specific Post/Page Access.
* %%last_name%% = The Last Name of the Customer who purchased Specific Post/Page Access.
* %%full_name%% = The Full Name ( First & Last ) of the Customer who purchased Specific Post/Page Access.
* %%payer_email%% = The Email Address of the Customer who purchased Specific Post/Page Access.
* %%item_number%% = The Item Number. Ex: sp:13,24,36:72 ( translates to: sp:comma-delimited IDs:expiration hours ).
* %%item_name%% = The Item Name ( as provided by the desc="" attribute in your Shortcode, which briefly describes the Item Number ).
Custom Replacement Codes can also be inserted using these instructions:
* %%cv0%% = The domain of your site, which is passed through the `custom` attribute in your Shortcode.
* %%cv1%% = If you need to track additional custom variables, you can pipe delimit them into the `custom` attribute; inside your Shortcode, like this: custom="localhost|cv1|cv2|cv3". You can have an unlimited number of custom variables that track IP addresses, affiliate IDs, etc. In some cases you may need to use PHP code to insert a value into the custom field dynamically. Obviously, this is for advanced webmasters; but the functionality has been made available for those who need it.
This example uses cv1 to track a User's IP address:
( The IP address could be referenced using %%cv1%% )
custom="localhost|<?php echo $_SERVER["REMOTE_ADDR"]; ?>"
Statistics: Posted by Jason Caldwell — March 23rd, 2011, 4:29 pm
Statistics: Posted by egleiser — March 23rd, 2011, 9:19 am
Statistics: Posted by Jason Caldwell — March 23rd, 2011, 2:32 am
<?php
$time = s2member_registration_time (); // ... first registration time ( free or otherwise ).
$time = s2member_paid_registration_time (); // ... first "paid" registration and/or upgrade time.
$time = s2member_paid_registration_time ("level1"); // ... first "paid" registration or upgrade time at Level#1.
$time = s2member_paid_registration_time ("level2"); // ... first "paid" registration or upgrade time at Level#2.
$time = s2member_paid_registration_time ("level3"); // ... first "paid" registration or upgrade time at Level#3.
$time = s2member_paid_registration_time ("level4"); // ... first "paid" registration or upgrade time at Level#4.
?>
Statistics: Posted by Jason Caldwell — March 23rd, 2011, 2:26 am
To boil it all down…
How could I sell a Custom Capability to a current member without affecting their current membership level and so the Custom Capability also expires separate from their membership level?
*New* By default, a Checkout Button or Form generated by s2Member is designed to set and/or reset a Member's Custom Capabilities to the ones you specify in the Button/Form Code. However, starting with s2Member v3.5+, you can tell s2Member to (ADD) additional Custom Capabilities to any that already exist for a particular Member. This is accomplished on a per Form/Button basis by preceding your comma-delimited list of Custom Capabilities with a (+) sign. For further details on this topic, click the [?] icon next to the Custom Capabilities field in any Button/Form Generator supplied by s2Member.
[s2Member-PayPal-Button ... ccaps="+music,videos" level="<?php echo c_ws_plugin__s2member_user_access::user_access_level(); ?>" modify="2" /]
Statistics: Posted by Jason Caldwell — March 23rd, 2011, 2:21 am
egleiser wrote:
e page with with the modules to Free Subscriber or higher.
This would redirect to the "membership options" page. Correct?
On this page I would have links to purchase lvl. 1 access to the journal or create a lvl. 0 account.
egleiser wrote:
Also, I would like to display modules that have been purchased on a users "Login Welcome Page" as well as what their subscription status is. Could that be done?
egleiser wrote:
Is it possible to sell just Custom Capabilities after a user is logged in?
Example:
A user creates a free account.
Then decides he would like to buy a video module but not purchase a subscription.
Is it possible to create a PayPal button that simply adds adds a custom capability to a users current account?
egleiser wrote:
P.S. is it also possible to alert a user if the module is expiring soon? Or a subscription level?
Statistics: Posted by Cristián Lávaque — March 23rd, 2011, 1:50 am
Statistics: Posted by egleiser — March 22nd, 2011, 9:53 pm