latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

s2member profile capabilities

Home Forums Community Forum s2member profile capabilities

This topic contains 1 reply, has 1 voice. Last updated by  marco bernardi 3 years, 2 months ago.

Topic Author Topic
Posted: Saturday Nov 2nd, 2013 at 11:45 am #60812

Hi all!
I have read a lot of documentations about creating different form on s2member. What i want is to use s2member to update in different time user data. So, i searched a lot but the best way i found is…adding capabilities to s2member-profile in a way i can use adding an action on ws_plugin__s2member_before_sc_profile_after_shortcode_atts
Problem is that when editing profile, in sc-profile-in.inc.php shortcode _atts are setting undefined…
$attr = shortcode_atts (array (), $attr); // Possible Attributes. None.

could be a nice way to define different page with different field showed/requested,depending on capabilities

there is a way to hack this in nice way?

thanks all
marco

List Of Topic Replies

Viewing 1 replies (of 1 total)
Author Replies
Author Replies
Posted: Sunday Nov 3rd, 2013 at 5:07 am #60818

i have found a way…
using a plugin written by dwelch (Custom Registration Field Show / Hide Settings, s2member-registration-custom)
and modifying the code
function DW_s2member_registration_hack(){
//Update Show/Hide List
add_action(‘ws_plugin__s2member_custom_fields_configured_at_level’,’DW_s2member_registration_hack::show_hide_my_ccap_levels’);

//Form Hooks
add_action(‘ws_plugin__s2member_pro_before_sc_authnet_form_after_shortcode_atts’,’DW_s2member_registration_hack::set_ccap_session’);
add_action(‘ws_plugin__s2member_pro_before_sc_paypal_form_after_shortcode_atts’,’DW_s2member_registration_hack::set_ccap_session’);

//added to edit profile
add_action(‘ws_plugin__s2member_before_sc_profile’,’DW_s2member_registration_hack::set_ccap_session’);

//Admin Menu
add_action(‘ws_plugin__s2member_during_add_admin_options_additional_pages’,’DW_s2member_registration_hack::admin_menu’);
}

you can define a lot of edit profile page with different showed field.

ty all
marco

Viewing 1 replies (of 1 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.