Community Support Forums — WordPress® ( Users Helping Users ) — 2011-12-20T09:50:29-05:00 http://www.primothemes.com/forums/feed.php?f=40&t=13085 2011-12-20T09:50:29-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13085&p=57821#p57821 <![CDATA[s2Member v111220 / Source Code: s2member\i...]]>
s2Member v111220
Source Code: s2member\includes\classes\user-new-in.inc.php
Docs updated: December 20, 2011, 9:50 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — December 20th, 2011, 9:50 am


]]>
2011-12-07T01:03:37-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13085&p=55503#p55503 <![CDATA[s2Member v111206 / Source Code: s2member\i...]]>
s2Member v111206
Source Code: s2member\includes\classes\user-new-in.inc.php
Docs updated: December 7, 2011, 1:03 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — December 7th, 2011, 1:03 am


]]>
2011-11-05T19:26:25-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13085&p=51877#p51877 <![CDATA[s2Member v111105 / Source Code: s2member\i...]]>
s2Member v111105
Source Code: s2member\includes\classes\user-new-in.inc.php
Docs updated: November 5, 2011, 8:26 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — November 5th, 2011, 7:26 pm


]]>
2011-10-29T20:35:24-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13085&p=49972#p49972 <![CDATA[s2Member v111029 / Source Code: s2member\i...]]>
s2Member v111029
Source Code: s2member\includes\classes\user-new-in.inc.php
Docs updated: October 29, 2011, 9:35 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 29th, 2011, 8:35 pm


]]>
2011-10-17T15:39:32-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13085&p=47766#p47766 <![CDATA[s2Member v111017 / Source Code: s2member\i...]]>
s2Member v111017
Source Code: s2member\includes\classes\user-new-in.inc.php
Docs updated: October 17, 2011, 1:39 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 17th, 2011, 3:39 pm


]]>
2011-10-11T14:35:28-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13085&p=46167#p46167 <![CDATA[s2Member v111011 / Source Code: s2member\i...]]>
s2Member v111011
Source Code: s2member\includes\classes\user-new-in.inc.php
Docs updated: October 11, 2011, 12:35 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 11th, 2011, 2:35 pm


]]>
2011-10-03T15:47:52-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13085&p=44297#p44297 <![CDATA[s2Member v111003 / Source Code: s2member\i...]]>
s2Member v111003
Source Code: s2member\includes\classes\user-new-in.inc.php
Docs updated: October 3, 2011, 1:47 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 3rd, 2011, 3:47 pm


]]>
2011-10-03T03:41:25-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13085&p=43004#p43004 <![CDATA[s2Member v111002 / Source Code: s2member\i...]]>
s2Member v111002
Source Code: s2member\includes\classes\user-new-in.inc.php
Docs updated: October 3, 2011, 1:41 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — October 3rd, 2011, 3:41 am


]]>
2011-09-27T05:26:51-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13085&p=41250#p41250 <![CDATA[s2Member v110927 / Source Code: s2member\i...]]>
s2Member v110927
Source Code: s2member\includes\classes\user-new-in.inc.php
Docs updated: September 27, 2011, 3:26 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 27th, 2011, 5:26 am


]]>
2011-09-26T21:03:27-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13085&p=40006#p40006 <![CDATA[s2Member v110926 / Source Code: s2member\i...]]>
s2Member v110926
Source Code: s2member\includes\classes\user-new-in.inc.php
Docs updated: September 26, 2011, 7:03 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 26th, 2011, 9:03 pm


]]>
2011-09-17T16:20:51-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13085&p=38148#p38148 <![CDATA[s2Member v110915 / Source Code: s2member\i...]]>
s2Member v110915
Source Code: s2member\includes\classes\user-new-in.inc.php
Docs updated: September 17, 2011, 2:20 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 17th, 2011, 4:20 pm


]]>
2011-09-14T01:28:03-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13085&p=36729#p36729 <![CDATA[s2Member v110913 / Source Code: s2member\i...]]>
s2Member v110913
Source Code: s2member\includes\classes\user-new-in.inc.php
Docs updated: September 13, 2011, 11:28 pm

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 14th, 2011, 1:28 am


]]>
2011-09-13T12:03:08-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13085&p=35457#p35457 <![CDATA[s2Member v110912 / Source Code: s2member\i...]]>
s2Member v110912
Source Code: s2member\includes\classes\user-new-in.inc.php
Docs updated: September 13, 2011, 10:03 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — September 13th, 2011, 12:03 pm


]]>
2011-08-15T15:14:20-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13085&p=31578#p31578 <![CDATA[s2Member v110815 / Source Code: s2member\i...]]>
s2Member v110815
Source Code: s2member\includes\classes\user-new-in.inc.php
Docs updated: August 15, 2011, 4:14 pm

Open for public discussion.
(!-- s-words :: --)Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code jQuery(window).load(function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli'+location.hash).addClass('hilite'); }); jQuery(window).bind('hashchange', function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli').removeClass('hilite'); jQuery('olli'+location.hash).addClass('hilite'); }); [ full view ]s2member\includes\classes\user-new-in.inc.php ?php /** * New User handlers ( inner processing routines ). * * Copyright: © 2009-2011 * {@link http://www.websharks-inc.com/ WebSharks, Inc.} * ( coded in the USA ) * * Released under the terms of the GNU General Public License. * You should have received a copy of the GNU General Public License, * along with this software. In the main directory, see: /licensing/ * If not, see: {@link http://www.gnu.org/licenses/}. * * @package s2Member\New_Users * @since 3.5 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_user_new_in" ) ) { /** * New User handlers ( inner processing routines ). * * @package s2Member\New_Users * @since 3.5 */ class c_ws_plugin__s2member_user_new_in { /** * Callback adds Custom Fields to `/wp-admin/user-new.php`. * * We have to buffer because `/user-new.php` has NO Hooks. * * @package s2Member\New_Users * @since 3.5 * * @attaches-to: ``ob_start("c_ws_plugin__s2member_user_new_in::_admin_user_new_fields");`` * * @return str Output buffer. */ public static function _admin_user_new_fields ( $buffer = FALSE ) { global $pagenow ; /* The current admin page file name. */ /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_before_admin_user_new_fields" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ if (is_blog_admin ( ) && $pagenow === "user-new.php" && current_user_can ( "create_users" ) ) { $_p = c_ws_plugin__s2member_utils_strings:: trim_deep ( stripslashes_deep ( $_POST ) ) ; /**/ $unfs = 'div style="margin:25px 0 25px 0; height:1px; line-height:1px; background:#CCCCCC;"/div' . "\n" ; /**/ $unfs .= 'h3 style="position:relative;"img src="' . esc_attr ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "dir_url" ] ) . '/images/large-icon.png" title="s2Member ( a Membership management system for WordPress® )" alt="" style="position:absolute; top:-15px; right:0; border:0;" /s2Member Configuration & Profile Fields' . ( ( is_multisite ( ) ) ? ' ( for this Blog )' : '' ) . '/h3' . "\n" ; /**/ $unfs .= 'table class="form-table"' . "\n" ; /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_before" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ if ( is_multisite ( ) ) /* Multisite Networking is currently lacking these fields; we pop them in. */ { eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_before_first_name" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ $unfs .= 'tr' . "\n" ; $unfs .= 'thlabel for="ws-plugin--s2member-user-new-first-name"First Name:/label/th' . "\n" ; $unfs .= 'tdinput type="text" name="ws_plugin__s2member_user_new_first_name" id="ws-plugin--s2member-user-new-first-name" value="' . esc_attr ( $_p [ "ws_plugin__s2member_user_new_first_name" ] ) . '" class="regular-text" //td' . "\n" ; $unfs .= '/tr' . "\n" ; /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_after_first_name" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_before_last_name" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ $unfs .= 'tr' . "\n" ; $unfs .= 'thlabel for="ws-plugin--s2member-user-new-last-name"Last Name:/label/th' . "\n" ; $unfs .= 'tdinput type="text" name="ws_plugin__s2member_user_new_last_name" id="ws-plugin--s2member-user-new-last-name" value="' . esc_attr ( $_p [ "ws_plugin__s2member_user_new_last_name" ] ) . '" class="regular-text" //td' . "\n" ; $unfs .= '/tr' . "\n" ; /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_after_last_name" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ } /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_before_subscr_gateway" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ $unfs .= 'tr' . "\n" ; $unfs .= 'thlabel for="ws-plugin--s2member-user-new-s2member-subscr-gateway"Paid Subscr. Gateway:/label a href="#" tabindex="-1"[?]/a/th' . "\n" ; $unfs .= 'tdselect name="ws_plugin__s2member_user_new_s2member_subscr_gateway" id="ws-plugin--s2member-user-new-s2member-subscr-gateway" style="width:25em;"option value=""/option' . "\n" ; foreach ( apply_filters ( "ws_plugin__s2member_profile_s2member_subscr_gateways" , array ( "paypal" = "PayPal® ( code: paypal )" ) , get_defined_vars ( ) ) as $gateway = $gateway_name ) $unfs .= 'option value="' . esc_attr ( $gateway ) . '"' . ( ( $gateway === $_p [ "ws_plugin__s2member_user_new_s2member_subscr_gateway" ] ) ? ' selected="selected"' : '' ) . '' . esc_html ( $gateway_name ) . '/option' . "\n" ; $unfs .= '/select' . "\n" ; $unfs .= '/td' . "\n" ; $unfs .= '/tr' . "\n" ; /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_after_subscr_gateway" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_before_subscr_id" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ $unfs .= 'tr' . "\n" ; $unfs .= 'thlabel for="ws-plugin--s2member-user-new-s2member-subscr-id"Paid Subscr. ID:/label a href="#" tabindex="-1"[?]/a/th' . "\n" ; $unfs .= 'tdinput type="text" name="ws_plugin__s2member_user_new_s2member_subscr_id" id="ws-plugin--s2member-user-new-s2member-subscr-id" value="' . format_to_edit ( $_p [ "ws_plugin__s2member_user_new_s2member_subscr_id" ] ) . '" class="regular-text" //td' . "\n" ; $unfs .= '/tr' . "\n" ; /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_after_subscr_id" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_before_custom" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ $unfs .= 'tr' . "\n" ; $unfs .= 'thlabel for="ws-plugin--s2member-user-new-s2member-custom"Custom Value:/label a href="#" HTTP_HOST" ] ) ) . '\\\'\\\' attribute of your Shortcode. This Custom Value, MUST always start with your domain name. However, you can also pipe delimit additional values after your domain, if you need to.\\n\\nFor example:\n' . c_ws_plugin__s2member_utils_strings:: esc_sq ( esc_attr ( $_SERVER [ "HTTP_HOST" ] ) ) . '|cv1|cv2|cv3\'); return false;" tabindex="-1"[?]/a/th' . "\n" ; $unfs .= 'tdinput type="text" name="ws_plugin__s2member_user_new_s2member_custom" id="ws-plugin--s2member-user-new-s2member-custom" value="' . format_to_edit ( $_p [ "ws_plugin__s2member_user_new_s2member_custom" ] ) . '" class="regular-text" //td' . "\n" ; $unfs .= '/tr' . "\n" ; /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_after_custom" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_before_registration_ip" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ $unfs .= 'tr' . "\n" ; $unfs .= 'thlabel for="ws-plugin--s2member-user-new-s2member-registration-ip"Registration IP:/label a href="#" tabindex="-1"[?]/a/th' . "\n" ; $unfs .= 'tdinput type="text" name="ws_plugin__s2member_user_new_s2member_registration_ip" id="ws-plugin--s2member-user-new-s2member-registration-ip" value="' . format_to_edit ( $_p [ "ws_plugin__s2member_user_new_s2member_registration_ip" ] ) . '" class="regular-text" //td' . "\n" ; $unfs .= '/tr' . "\n" ; /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_after_registration_ip" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ if ( ! is_multisite ( ) || !c_ws_plugin__s2member_utils_conds:: is_multisite_farm ( ) || is_main_site ( ) ) /* ^ Will change once Custom Capabilities are compatible with a Blog Farm. */ { eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_before_ccaps" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ $unfs .= 'tr' . "\n" ; $unfs .= 'thlabel for="ws-plugin--s2member-user-new-s2member-ccaps"Custom Capabilities:/label a href="#" tabindex="-1"[?]/a/th' . "\n" ; $unfs .= 'tdinput type="text" name="ws_plugin__s2member_user_new_s2member_ccaps" id="ws-plugin--s2member-user-new-s2member-ccaps" value="' . format_to_edit ( $_p [ "ws_plugin__s2member_user_new_s2member_ccaps" ] ) . '" class="regular-text" onkeyup="if(this.value.match(/[^a-z_0-9,]/)) this.value = jQuery.trim (jQuery.trim (this.value).replace (/[ \-]/g, \'_\').replace (/[^a-z_0-9,]/gi, \'\').toLowerCase ());" //td' . "\n" ; $unfs .= '/tr' . "\n" ; /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_after_ccaps" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ } /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_before_auto_eot_time" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ $unfs .= 'tr' . "\n" ; $unfs .= 'thlabel for="ws-plugin--s2member-user-new-auto-eot-time"Automatic EOT Time:/label a href="#" tabindex="-1"[?]/a' . ( ( $auto_eot_time ) ? 'br /small( a href="http://www.world-time-zones.org/zones/greenwich-mean-time.htm" target="_blank" rel="external"Universal Time / GMT/a )/small' : '' ) . '/th' . "\n" ; $unfs .= 'tdinput type="text" name="ws_plugin__s2member_user_new_s2member_auto_eot_time" id="ws-plugin--s2member-user-new-auto-eot-time" value="' . format_to_edit ( $_p [ "ws_plugin__s2member_user_new_s2member_auto_eot_time" ] ) . '" class="regular-text" //td' . "\n" ; $unfs .= '/tr' . "\n" ; /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_after_auto_eot_time" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ if (c_ws_plugin__s2member_list_servers:: list_servers_integrated ( ) ) /* Only if integrated with s2Member. */ { eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_before_opt_in" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ $unfs .= 'tr' . "\n" ; $unfs .= 'thlabel for="ws-plugin--s2member-user-new-opt-in"Process List Servers:/label a href="#" tabindex="-1"[?]/a/th' . "\n" ; $unfs .= 'tdlabelinput type="checkbox" name="ws_plugin__s2member_user_new_opt_in" id="ws-plugin--s2member-user-new-opt-in" value="1"' . ( ( $_p [ "ws_plugin__s2member_user_new_opt_in" ] ) ? ' checked="checked"' : '' ) . ' / Yes, send a mailing list confirmation email to this new User./label/td' . "\n" ; $unfs .= '/tr' . "\n" ; /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_after_opt_in" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ } /**/ if ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "custom_reg_fields" ] ) /* Now, do we have Custom Fields? */ if ( $fields_applicable = c_ws_plugin__s2member_custom_reg_fields:: custom_fields_configured_at_level ( "any" , "administrative" ) ) { $unfs .= 'tr' . "\n" ; $unfs .= 'td colspan="2"' . "\n" ; $unfs .= 'div style="height:1px; line-height:1px; background:#CCCCCC;"/div' . "\n" ; $unfs .= '/td' . "\n" ; $unfs .= '/tr' . "\n" ; /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_before_custom_fields" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ foreach ( json_decode ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "custom_reg_fields" ] , true ) as $field ) { eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_during_custom_fields_before" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ if ( in_array ( $field [ "id" ] , $fields_applicable ) ) /* Field applicable? */ { $field_var = preg_replace ( "/[^a-z0-9]/i" , "_" , strtolower ( $field [ "id" ] ) ) ; $field_id_class = preg_replace ( "/_/" , "-" , $field_var ) ; /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; if ( apply_filters ( "_ws_plugin__s2member_during_admin_user_new_fields_during_custom_fields_display" , true , get_defined_vars ( ) ) ) { if ( ! empty ( $field [ "section" ] ) && $field [ "section" ] === "yes" ) /* Starts a new section? */ $unfs .= 'trtd colspan="2"div class="ws-plugin--s2member-user-new-divider-section' . ( ( ! empty ( $field [ "sectitle" ] ) ) ? '-title' : '' ) . '"' . ( ( ! empty ( $field [ "sectitle" ] ) ) ? $field [ "sectitle" ] : '' ) . '/div/td/tr' ; /**/ $unfs .= 'tr' . "\n" ; $unfs .= 'thlabel for="ws-plugin--s2member-user-new-' . esc_attr ( $field_id_class ) . '"' . ( ( preg_match ( "/^(checkbox|pre_checkbox)$/" , $field [ "type" ] ) ) ? ucwords ( preg_replace ( "/_/" , " " , $field_var ) ) : $field [ "label" ] ) . ':/label/th' . "\n" ; $unfs .= 'td' . c_ws_plugin__s2member_custom_reg_fields:: custom_field_gen ( __FUNCTION__ , $field , "ws_plugin__s2member_user_new_" , "ws-plugin--s2member-user-new-" , "" , ( ( preg_match ( "/^(text|textarea|select|selects)$/" , $field [ "type" ] ) ) ? "width:99%;" : "" ) , "" , "" , $_p , $_p [ "ws_plugin__s2member_user_new_" . $field_var ] , "administrative" ) . '/td' . "\n" ; $unfs .= '/tr' . "\n" ; } unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ } /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_during_custom_fields_after" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ } /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_after_custom_fields" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ $unfs .= 'tr' . "\n" ; $unfs .= 'td colspan="2"' . "\n" ; $unfs .= 'div style="height:1px; line-height:1px; background:#CCCCCC;"/div' . "\n" ; $unfs .= '/td' . "\n" ; $unfs .= '/tr' . "\n" ; } /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_before_notes" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ $unfs .= 'tr' . "\n" ; $unfs .= 'thlabel for="ws-plugin--s2member-user-new-s2member-notes"Administrative Notes:/label a href="#" tabindex="-1"[?]/abr /br /smallThese Notations are private; Users/Members will never see any of these notes./small/th' . "\n" ; $unfs .= 'tdtextarea name="ws_plugin__s2member_user_new_s2member_notes" id="ws-plugin--s2member-user-new-s2member-notes" rows="5" wrap="off" spellcheck="false" style="width:99%;"' . format_to_edit ( $_p [ "ws_plugin__s2member_user_new_s2member_notes" ] ) . '/textarea/td' . "\n" ; $unfs .= '/tr' . "\n" ; /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_after_notes" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_after" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ $unfs .= '/table' . "\n" ; /**/ $unfs .= 'div style="margin:25px 0 25px 0; height:1px; line-height:1px; background:#CCCCCC;"/div' . "\n" ; /**/ $buffer = preg_replace ( "/(\\/table\)(\s*)(\p\s+class\s*\=\s*['\"]submit['\"]\s*\)(\s*)(\input\s+type\s*\=\s*['\"]submit['\"]\s+name\s*\=\s*['\"]createuser['\"])/" , "$1 $2 \n" . $unfs . "$3 $4 $5" , $buffer ) ; } /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_after_admin_user_new_fields" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ return apply_filters ( "_ws_plugin__s2member_admin_user_new_fields" , $buffer , get_defined_vars ( ) ) ; } } } ? [ full view ]s2member\includes\classes\user-new-in.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

Statistics: Posted by System Robot — August 15th, 2011, 3:14 pm


]]>
2011-07-11T17:30:14-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13085&p=27748#p27748 <![CDATA[s2Member v110710 / Source Code: s2member\i...]]>
s2Member v110710
Source Code: s2member\includes\classes\user-new-in.inc.php
Docs updated: July 11, 2011, 6:30 pm

Open for public discussion.
(!-- s-words :: --)Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code jQuery(window).load(function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli'+location.hash).addClass('hilite'); }); jQuery(window).bind('hashchange', function(){ if(typeof location.hash === 'string' && location.hash.match(/^#/)) jQuery('olli').removeClass('hilite'); jQuery('olli'+location.hash).addClass('hilite'); }); [ full view ]s2member\includes\classes\user-new-in.inc.php ?php /** * New User handlers ( inner processing routines ). * * Copyright: © 2009-2011 * {@link http://www.websharks-inc.com/ WebSharks, Inc.} * ( coded in the USA ) * * Released under the terms of the GNU General Public License. * You should have received a copy of the GNU General Public License, * along with this software. In the main directory, see: /licensing/ * If not, see: {@link http://www.gnu.org/licenses/}. * * @package s2Member\New_Users * @since 3.5 */ if ( realpath ( __FILE__ ) === realpath ( $_SERVER [ "SCRIPT_FILENAME" ] ) ) exit ( "Do not access this file directly." ) ; /**/ if ( ! class_exists ( "c_ws_plugin__s2member_user_new_in" ) ) { /** * New User handlers ( inner processing routines ). * * @package s2Member\New_Users * @since 3.5 */ class c_ws_plugin__s2member_user_new_in { /** * Callback adds Custom Fields to `/wp-admin/user-new.php`. * * We have to buffer because `/user-new.php` has NO Hooks. * * @package s2Member\New_Users * @since 3.5 * * @attaches-to: ``ob_start("c_ws_plugin__s2member_user_new_in::_admin_user_new_fields");`` * * @return str Output buffer. */ public static function _admin_user_new_fields ( $buffer = FALSE ) { global $pagenow ; /* The current admin page file name. */ /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_before_admin_user_new_fields" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ if (is_blog_admin ( ) && $pagenow === "user-new.php" && current_user_can ( "create_users" ) ) { $_p = c_ws_plugin__s2member_utils_strings:: trim_deep ( stripslashes_deep ( $_POST ) ) ; /**/ $unfs = 'div style="margin:25px 0 25px 0; height:1px; line-height:1px; background:#CCCCCC;"/div' . "\n" ; /**/ $unfs .= 'h3 style="position:relative;"img src="' . esc_attr ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "c" ] [ "dir_url" ] ) . '/images/large-icon.png" title="s2Member ( a Membership management system for WordPress® )" alt="" style="position:absolute; top:-15px; right:0; border:0;" /s2Member Configuration & Profile Fields' . ( ( is_multisite ( ) ) ? ' ( for this Blog )' : '' ) . '/h3' . "\n" ; /**/ $unfs .= 'table class="form-table"' . "\n" ; /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_before" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ if ( is_multisite ( ) ) /* Multisite Networking is currently lacking these fields; we pop them in. */ { eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_before_first_name" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ $unfs .= 'tr' . "\n" ; $unfs .= 'thlabel for="ws-plugin--s2member-user-new-first-name"First Name:/label/th' . "\n" ; $unfs .= 'tdinput type="text" name="ws_plugin__s2member_user_new_first_name" id="ws-plugin--s2member-user-new-first-name" value="' . format_to_edit ( $_p [ "ws_plugin__s2member_user_new_first_name" ] ) . '" class="regular-text" //td' . "\n" ; $unfs .= '/tr' . "\n" ; /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_after_first_name" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_before_last_name" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ $unfs .= 'tr' . "\n" ; $unfs .= 'thlabel for="ws-plugin--s2member-user-new-last-name"Last Name:/label/th' . "\n" ; $unfs .= 'tdinput type="text" name="ws_plugin__s2member_user_new_last_name" id="ws-plugin--s2member-user-new-last-name" value="' . format_to_edit ( $_p [ "ws_plugin__s2member_user_new_last_name" ] ) . '" class="regular-text" //td' . "\n" ; $unfs .= '/tr' . "\n" ; /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_after_last_name" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ } /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_before_subscr_gateway" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ $unfs .= 'tr' . "\n" ; $unfs .= 'thlabel for="ws-plugin--s2member-user-new-s2member-subscr-gateway"Paid Subscr. Gateway:/label a href="#" tabindex="-1"[?]/a/th' . "\n" ; $unfs .= 'tdselect name="ws_plugin__s2member_user_new_s2member_subscr_gateway" id="ws-plugin--s2member-user-new-s2member-subscr-gateway" style="width:27.5em;"option value=""/option' . "\n" ; foreach ( apply_filters ( "ws_plugin__s2member_profile_s2member_subscr_gateways" , array ( "paypal" = "PayPal® ( code: paypal )" ) , get_defined_vars ( ) ) as $gateway = $gateway_name ) $unfs .= 'option value="' . esc_attr ( $gateway ) . '"' . ( ( $gateway === $_p [ "ws_plugin__s2member_user_new_s2member_subscr_gateway" ] ) ? ' selected="selected"' : '' ) . '' . esc_html ( $gateway_name ) . '/option' . "\n" ; $unfs .= '/select' . "\n" ; $unfs .= '/td' . "\n" ; $unfs .= '/tr' . "\n" ; /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_after_subscr_gateway" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_before_subscr_id" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ $unfs .= 'tr' . "\n" ; $unfs .= 'thlabel for="ws-plugin--s2member-user-new-s2member-subscr-id"Paid Subscr. ID:/label a href="#" tabindex="-1"[?]/a/th' . "\n" ; $unfs .= 'tdinput type="text" name="ws_plugin__s2member_user_new_s2member_subscr_id" id="ws-plugin--s2member-user-new-s2member-subscr-id" value="' . format_to_edit ( $_p [ "ws_plugin__s2member_user_new_s2member_subscr_id" ] ) . '" class="regular-text" //td' . "\n" ; $unfs .= '/tr' . "\n" ; /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_after_subscr_id" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_before_custom" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ $unfs .= 'tr' . "\n" ; $unfs .= 'thlabel for="ws-plugin--s2member-user-new-s2member-custom"Custom Value:/label a href="#" HTTP_HOST" ] ) ) . '\\\'\\\' attribute of your Shortcode. This Custom Value, MUST always start with your domain name. However, you can also pipe delimit additional values after your domain, if you need to.\\n\\nFor example:\n' . c_ws_plugin__s2member_utils_strings:: esc_sq ( esc_attr ( $_SERVER [ "HTTP_HOST" ] ) ) . '|cv1|cv2|cv3\'); return false;" tabindex="-1"[?]/a/th' . "\n" ; $unfs .= 'tdinput type="text" name="ws_plugin__s2member_user_new_s2member_custom" id="ws-plugin--s2member-user-new-s2member-custom" value="' . format_to_edit ( $_p [ "ws_plugin__s2member_user_new_s2member_custom" ] ) . '" class="regular-text" //td' . "\n" ; $unfs .= '/tr' . "\n" ; /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_after_custom" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_before_registration_ip" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ $unfs .= 'tr' . "\n" ; $unfs .= 'thlabel for="ws-plugin--s2member-user-new-s2member-registration-ip"Registration IP:/label a href="#" tabindex="-1"[?]/a/th' . "\n" ; $unfs .= 'tdinput type="text" name="ws_plugin__s2member_user_new_s2member_registration_ip" id="ws-plugin--s2member-user-new-s2member-registration-ip" value="' . format_to_edit ( $_p [ "ws_plugin__s2member_user_new_s2member_registration_ip" ] ) . '" class="regular-text" //td' . "\n" ; $unfs .= '/tr' . "\n" ; /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_after_registration_ip" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ if ( ! is_multisite ( ) || !c_ws_plugin__s2member_utils_conds:: is_multisite_farm ( ) || is_main_site ( ) ) /* ^ Will change once Custom Capabilities are compatible with a Blog Farm. */ { eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_before_ccaps" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ $unfs .= 'tr' . "\n" ; $unfs .= 'thlabel for="ws-plugin--s2member-user-new-s2member-ccaps"Custom Capabilities:/label a href="#" tabindex="-1"[?]/a/th' . "\n" ; $unfs .= 'tdinput type="text" name="ws_plugin__s2member_user_new_s2member_ccaps" id="ws-plugin--s2member-user-new-s2member-ccaps" value="' . format_to_edit ( $_p [ "ws_plugin__s2member_user_new_s2member_ccaps" ] ) . '" class="regular-text" onkeyup="if(this.value.match(/[^a-z_0-9,]/)) this.value = jQuery.trim (jQuery.trim (this.value).replace (/[ \-]/g, \'_\').replace (/[^A-Z_0-9,]/gi, \'\').toLowerCase ());" //td' . "\n" ; $unfs .= '/tr' . "\n" ; /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_after_ccaps" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ } /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_before_auto_eot_time" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ $unfs .= 'tr' . "\n" ; $unfs .= 'thlabel for="ws-plugin--s2member-user-new-auto-eot-time"Automatic EOT Time:/label a href="#" tabindex="-1"[?]/a' . ( ( $auto_eot_time ) ? 'br /small( a href="http://www.world-time-zones.org/zones/greenwich-mean-time.htm" target="_blank" rel="external"Universal Time / GMT/a )/small' : '' ) . '/th' . "\n" ; $unfs .= 'tdinput type="text" name="ws_plugin__s2member_user_new_s2member_auto_eot_time" id="ws-plugin--s2member-user-new-auto-eot-time" value="' . format_to_edit ( $_p [ "ws_plugin__s2member_user_new_s2member_auto_eot_time" ] ) . '" class="regular-text" //td' . "\n" ; $unfs .= '/tr' . "\n" ; /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_after_auto_eot_time" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ if (c_ws_plugin__s2member_list_servers:: list_servers_integrated ( ) ) /* Only if integrated with s2Member. */ { eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_before_opt_in" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ $unfs .= 'tr' . "\n" ; $unfs .= 'thlabel for="ws-plugin--s2member-user-new-opt-in"Process List Servers:/label a href="#" tabindex="-1"[?]/a/th' . "\n" ; $unfs .= 'tdlabelinput type="checkbox" name="ws_plugin__s2member_user_new_opt_in" id="ws-plugin--s2member-user-new-opt-in" value="1"' . ( ( $_p [ "ws_plugin__s2member_user_new_opt_in" ] ) ? ' checked="checked"' : '' ) . ' / Yes, send a mailing list confirmation email to this new User./label/td' . "\n" ; $unfs .= '/tr' . "\n" ; /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_after_opt_in" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ } /**/ if ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "custom_reg_fields" ] ) /* Now, do we have Custom Fields? */ if ( $fields_applicable = c_ws_plugin__s2member_custom_reg_fields:: custom_fields_configured_at_level ( "any" , "administrative" ) ) { $unfs .= 'tr' . "\n" ; $unfs .= 'td colspan="2"' . "\n" ; $unfs .= 'div style="height:1px; line-height:1px; background:#CCCCCC;"/div' . "\n" ; $unfs .= '/td' . "\n" ; $unfs .= '/tr' . "\n" ; /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_before_custom_fields" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ foreach ( json_decode ( $GLOBALS [ "WS_PLUGIN__" ] [ "s2member" ] [ "o" ] [ "custom_reg_fields" ] , true ) as $field ) { eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_during_custom_fields_before" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ if ( in_array ( $field [ "id" ] , $fields_applicable ) ) /* Field applicable? */ { $field_var = preg_replace ( "/[^a-z0-9]/i" , "_" , strtolower ( $field [ "id" ] ) ) ; $field_id_class = preg_replace ( "/_/" , "-" , $field_var ) ; /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; if ( apply_filters ( "_ws_plugin__s2member_during_admin_user_new_fields_during_custom_fields_display" , true , get_defined_vars ( ) ) ) { if ( ! empty ( $field [ "section" ] ) && $field [ "section" ] === "yes" ) /* Starts a new section? */ $unfs .= 'trtd colspan="2"div class="ws-plugin--s2member-user-new-divider-section' . ( ( ! empty ( $field [ "sectitle" ] ) ) ? '-title' : '' ) . '"' . ( ( ! empty ( $field [ "sectitle" ] ) ) ? $field [ "sectitle" ] : '' ) . '/div/td/tr' ; /**/ $unfs .= 'tr' . "\n" ; $unfs .= 'thlabel for="ws-plugin--s2member-user-new-' . esc_attr ( $field_id_class ) . '"' . ( ( preg_match ( "/^(checkbox|pre_checkbox)$/" , $field [ "type" ] ) ) ? ucwords ( preg_replace ( "/_/" , " " , $field_var ) ) : $field [ "label" ] ) . ':/label/th' . "\n" ; $unfs .= 'td' . c_ws_plugin__s2member_custom_reg_fields:: custom_field_gen ( __FUNCTION__ , $field , "ws_plugin__s2member_user_new_" , "ws-plugin--s2member-user-new-" , "" , ( ( preg_match ( "/^(text|textarea|select|selects)$/" , $field [ "type" ] ) ) ? "width:99%;" : "" ) , "" , "" , $_p , $_p [ "ws_plugin__s2member_user_new_" . $field_var ] , "administrative" ) . '/td' . "\n" ; $unfs .= '/tr' . "\n" ; } unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ } /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_during_custom_fields_after" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ } /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_after_custom_fields" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ $unfs .= 'tr' . "\n" ; $unfs .= 'td colspan="2"' . "\n" ; $unfs .= 'div style="height:1px; line-height:1px; background:#CCCCCC;"/div' . "\n" ; $unfs .= '/td' . "\n" ; $unfs .= '/tr' . "\n" ; } /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_before_notes" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ $unfs .= 'tr' . "\n" ; $unfs .= 'thlabel for="ws-plugin--s2member-user-new-s2member-notes"Administrative Notes:/label a href="#" tabindex="-1"[?]/abr /br /smallThese Notations are private; Users/Members will never see any of these notes./small/th' . "\n" ; $unfs .= 'tdtextarea name="ws_plugin__s2member_user_new_s2member_notes" id="ws-plugin--s2member-user-new-s2member-notes" rows="5" wrap="off" spellcheck="false" style="width:99%;"' . format_to_edit ( $_p [ "ws_plugin__s2member_user_new_s2member_notes" ] ) . '/textarea/td' . "\n" ; $unfs .= '/tr' . "\n" ; /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_after_notes" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_during_admin_user_new_fields_after" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ $unfs .= '/table' . "\n" ; /**/ $unfs .= 'div style="margin:25px 0 25px 0; height:1px; line-height:1px; background:#CCCCCC;"/div' . "\n" ; /**/ $buffer = preg_replace ( "/(\\/table\)(\s*)(\p\s+class\s*\=\s*['\"]submit['\"]\s*\)(\s*)(\input\s+type\s*\=\s*['\"]submit['\"]\s+name\s*\=\s*['\"]createuser['\"])/" , "$1 $2 \n" . $unfs . "$3 $4 $5" , $buffer ) ; } /**/ eval ( 'foreach(array_keys(get_defined_vars())as$__v)$__refs[$__v]=&$$__v;' ) ; do_action ( "_ws_plugin__s2member_after_admin_user_new_fields" , get_defined_vars ( ) ) ; unset ( $__refs , $__v ) ; /* Unset defined __refs, __v. */ /**/ return apply_filters ( "_ws_plugin__s2member_admin_user_new_fields" , $buffer , get_defined_vars ( ) ) ; } } } ? [ full view ]s2member\includes\classes\user-new-in.inc.php Source Code Documentation Packages ( Overview ) Classes Deprecated Todo Index Source Code(!-- :: s-words --)

Statistics: Posted by System Robot — July 11th, 2011, 5:30 pm


]]>
2011-07-09T06:10:14-05:00 http://www.primothemes.com/forums/viewtopic.php?t=13085&p=25380#p25380 <![CDATA[s2Member v111220 / Source Code: s2member\i...]]>
s2Member v111220
Source Code: s2member\includes\classes\user-new-in.inc.php
Docs updated: December 20, 2011, 9:50 am

Open for public discussion.
(!-- s-words :: --)n/a(!-- :: s-words --)

Statistics: Posted by System Robot — July 9th, 2011, 6:10 am


]]>