s2Member Framework (Member Roles, Capabilities, Membership, PayPal Members) - Version 110709

Version Description

Download this release

Release Info

Developer PriMoThemes
Plugin Icon 128x128 s2Member Framework (Member Roles, Capabilities, Membership, PayPal Members)
Version 110709
Comparing to
See all releases

Code changes from version 110708 to 110709

includes/functions/pluggables.inc.php ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Pluggable functions within WordPress®.
4
+ *
5
+ * Copyright: © 2009-2011
6
+ * {@link http://www.websharks-inc.com/ WebSharks, Inc.}
7
+ * ( coded in the USA )
8
+ *
9
+ * Released under the terms of the GNU General Public License.
10
+ * You should have received a copy of the GNU General Public License,
11
+ * along with this software. In the main directory, see: /licensing/
12
+ * If not, see: {@link http://www.gnu.org/licenses/}.
13
+ *
14
+ * @package s2Member
15
+ * @since 110707
16
+ */
17
+ if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"]))
18
+ exit("Do not access this file directly.");
19
+ /**/
20
+ if (apply_filters ("ws_plugin__s2member_pluggable_wp_new_user_notification_ov", (!function_exists ("wp_new_user_notification"))))
21
+ {
22
+ /**
23
+ * New User notifications.
24
+ *
25
+ * The arguments to this function are passed through the class method.
26
+ *
27
+ * @package s2Member
28
+ * @since 110707
29
+ *
30
+ * @return null|class Return-value of class method.
31
+ */
32
+ function wp_new_user_notification () /* Accepts any number of arguments. */
33
+ {
34
+ $args = func_get_args (); /* Pulls the arguments passed in to this function. */
35
+ /**/
36
+ return call_user_func_array ("c_ws_plugin__s2member_email_configs::new_user_notification", $args);
37
+ }
38
+ $GLOBALS["WS_PLUGIN__"]["s2member"]["c"]["pluggables"]["wp_new_user_notification"] = true;
39
+ }
40
+ ?>
includes/menu-pages/code-samples/current-user-registration-ip.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php echo S2MEMBER_CURRENT_USER_REGISTRATION_IP; ?>
2
+ This may output something like: 123.456.789.111
3
+ ( or whatever the User's Registration IP address was )
4
+
5
+ ---- s2member Shortcode Equivalent ----
6
+
7
+ [s2Get constant="S2MEMBER_CURRENT_USER_REGISTRATION_IP" /]
includes/menu-pages/code-samples/current-user-value-for-pp-on0-os0-on1-os1.php ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!-- Identifies/Updates An Existing User/Member ( when/if applicable ) -->
2
+ <input type="hidden" name="on0" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON0; ?>" />
3
+ <input type="hidden" name="os0" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS0; ?>" />
4
+ <!-- Identifies The Customer's IP Address For Tracking -->
5
+ <input type="hidden" name="on1" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON1; ?>" />
6
+ <input type="hidden" name="os1" value="<?php echo S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS1; ?>" />
7
+ <!-- Controls Modify Behavior At PayPal® Checkout -->
8
+ <input type="hidden" name="modify" value="0" />
9
+
10
+ ---- s2member Shortcode Equivalents ----
11
+
12
+ [s2Get constant="S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON0" /]
13
+ [s2Get constant="S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS0" /]
14
+
15
+ [s2Get constant="S2MEMBER_CURRENT_USER_VALUE_FOR_PP_ON1" /]
16
+ [s2Get constant="S2MEMBER_CURRENT_USER_VALUE_FOR_PP_OS1" /]
includes/menu-pages/code-samples/leveln-file-downloads-allowed-days.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ Level #0 Users are allowed to download
2
+ <?php echo S2MEMBER_LEVEL0_FILE_DOWNLOADS_ALLOWED; ?> files
3
+ every <?php S2MEMBER_LEVEL0_FILE_DOWNLOADS_ALLOWED_DAYS; ?> days.
4
+
5
+ ---- s2member Shortcode Equivalent ----
6
+
7
+ [s2Get constant="S2MEMBER_LEVEL0_FILE_DOWNLOADS_ALLOWED_DAYS" /]
includes/menu-pages/code-samples/leveln-file-downloads-allowed.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ Level #0 Users are allowed to download
2
+ <?php echo S2MEMBER_LEVEL0_FILE_DOWNLOADS_ALLOWED; ?> files
3
+ every <?php S2MEMBER_LEVEL0_FILE_DOWNLOADS_ALLOWED_DAYS; ?> days.
4
+
5
+ ---- s2member Shortcode Equivalent ----
6
+
7
+ [s2Get constant="S2MEMBER_LEVEL0_FILE_DOWNLOADS_ALLOWED" /]
includes/menu-pages/code-samples/leveln-label.php ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
1
+ <?php echo S2MEMBER_LEVEL0_LABEL; ?>
2
+ This may output something like: Free
3
+ ( or whatever Label you've configured for Level #0 )
4
+
5
+ ---- s2member Shortcode Equivalent ----
6
+
7
+ [s2Get constant="S2MEMBER_LEVEL0_LABEL" /]
readme.txt CHANGED
@@ -1,7 +1,7 @@
1
  === s2Member® ( Membership w/ PayPal® ) ===
2
 
3
- Version: 110708
4
- Stable tag: 110708
5
  Framework: WS-P-110523
6
 
7
  SSL Compatible: yes
@@ -161,8 +161,11 @@ Please visit s2Member.com for [video tutorials](http://www.s2member.com/videos/)
161
 
162
  == Changelog ==
163
 
 
 
 
164
  = v110708 =
165
- * **(s2Member/s2Member Pro) Compatibility.** s2Member updated to support WordPress® v3.2.
166
  * **(s2Member Pro) Unlimited Membership Levels.** With s2Member Pro installed, you may now configure an unlimited number of Membership Levels. You can set the number of Membership Levels by adding this line to your /wp-config.php file: `define("MEMBERSHIP_LEVELS", 4);`. Feel free to change the default value of 4 to whatever you need. The miniumum allowed value is 1. The recommended maximum is 100. For further details, please check your Dashboard, under: `s2Member -> General Options -> Membership Levels/Labels`.
167
  * **(s2Member/s2Member Pro) Email Configuration.** Some new options are now available that allow site owners to customize the email that contains the Username/Password for new Users/Members. For further details, please check your Dashboard, under: `s2Member -> General Options -> Email Configuration`.
168
  * **(s2Member/s2Member Pro) Bug fix.** A problem with certain email addresses routed through the `wp_mail()` function, containing special characters in the "Name" portion. The issue was related to the way in which `wp_mail()` handles recipient addresses in the format `"Name" <address>`. s2Member now strips double quotes dynamically ( i.e. internally ), so that `wp_mail()` and the PHPMailer class can deal with this format on their own. This bug fix should also prevent seemingly random `500 Internal Server Error` messages during checkout. One symptom of this bug was to find "Premature end of script headers" inside your Apache error log, followed by an error code of `500` reported in the browser. These issues have been corrected in this release of s2Member.
1
  === s2Member® ( Membership w/ PayPal® ) ===
2
 
3
+ Version: 110709
4
+ Stable tag: 110709
5
  Framework: WS-P-110523
6
 
7
  SSL Compatible: yes
161
 
162
  == Changelog ==
163
 
164
+ = v110709 =
165
+ * **(s2Member/s2Member Pro) Email Configuration ( bug fix ).** New file `/s2member/includes/functions/pluggables.inc.php` was missing in the last release, weird. This release adds the missing file that implements this new feature included in the previous Changelog. FEATURE: Some new options are now available that allow site owners to customize the email that contains the Username/Password for new Users/Members. For further details, please check your Dashboard, under: `s2Member -> General Options -> Email Configuration`.
166
+
167
  = v110708 =
168
+ * **(s2Member/s2Member Pro) Compatibility.** s2Member and s2Member Pro have both been updated to support WordPress® v3.2.
169
  * **(s2Member Pro) Unlimited Membership Levels.** With s2Member Pro installed, you may now configure an unlimited number of Membership Levels. You can set the number of Membership Levels by adding this line to your /wp-config.php file: `define("MEMBERSHIP_LEVELS", 4);`. Feel free to change the default value of 4 to whatever you need. The miniumum allowed value is 1. The recommended maximum is 100. For further details, please check your Dashboard, under: `s2Member -> General Options -> Membership Levels/Labels`.
170
  * **(s2Member/s2Member Pro) Email Configuration.** Some new options are now available that allow site owners to customize the email that contains the Username/Password for new Users/Members. For further details, please check your Dashboard, under: `s2Member -> General Options -> Email Configuration`.
171
  * **(s2Member/s2Member Pro) Bug fix.** A problem with certain email addresses routed through the `wp_mail()` function, containing special characters in the "Name" portion. The issue was related to the way in which `wp_mail()` handles recipient addresses in the format `"Name" <address>`. s2Member now strips double quotes dynamically ( i.e. internally ), so that `wp_mail()` and the PHPMailer class can deal with this format on their own. This bug fix should also prevent seemingly random `500 Internal Server Error` messages during checkout. One symptom of this bug was to find "Premature end of script headers" inside your Apache error log, followed by an error code of `500` reported in the browser. These issues have been corrected in this release of s2Member.
s2member.php CHANGED
@@ -19,8 +19,8 @@
19
  */
20
  /* -- This section for WordPress® parsing. ------------------------------------------------------------------------------
21
 
22
- Version: 110708
23
- Stable tag: 110708
24
  Framework: WS-P-110523
25
 
26
  SSL Compatible: yes
@@ -72,7 +72,7 @@ if (realpath (__FILE__) === realpath ($_SERVER["SCRIPT_FILENAME"]))
72
  * @var str
73
  */
74
  if (!defined ("WS_PLUGIN__S2MEMBER_VERSION"))
75
- define ("WS_PLUGIN__S2MEMBER_VERSION", "110708");
76
  /**
77
  * Minimum PHP version required to run s2Member.
78
  *
@@ -102,7 +102,7 @@ if (!defined ("WS_PLUGIN__S2MEMBER_MIN_WP_VERSION"))
102
  * @var str
103
  */
104
  if (!defined ("WS_PLUGIN__S2MEMBER_MIN_PRO_VERSION"))
105
- define ("WS_PLUGIN__S2MEMBER_MIN_PRO_VERSION", "110708");
106
  /*
107
  Several compatibility checks.
108
  If all pass, load the s2Member plugin.
19
  */
20
  /* -- This section for WordPress® parsing. ------------------------------------------------------------------------------
21
 
22
+ Version: 110709
23
+ Stable tag: 110709
24
  Framework: WS-P-110523
25
 
26
  SSL Compatible: yes
72
  * @var str
73
  */
74
  if (!defined ("WS_PLUGIN__S2MEMBER_VERSION"))
75
+ define ("WS_PLUGIN__S2MEMBER_VERSION", "110709");
76
  /**
77
  * Minimum PHP version required to run s2Member.
78
  *
102
  * @var str
103
  */
104
  if (!defined ("WS_PLUGIN__S2MEMBER_MIN_PRO_VERSION"))
105
+ define ("WS_PLUGIN__S2MEMBER_MIN_PRO_VERSION", "110709");
106
  /*
107
  Several compatibility checks.
108
  If all pass, load the s2Member plugin.