PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Role based registration form and registration form UI

s2Member Plugin. A Membership plugin for WordPress®.

Role based registration form and registration form UI

Postby Dilip Rajkumar » November 3rd, 2011, 1:36 am

I am working on s2members pro which is bought by our client. I am facing 2 problems,

1. s2Members pro has its own registration form and its css I like to customize the registration form to my theme. How can I do that?? Please help.
2. Also I need to have 2 registration forms for 2 roles for example I am having 2 roles one is student and another is Teacher. Either I should have a role field while registering or 2 fields in Membership login as Student register and teacher register. I am confuse how to achieve this. Please help me to do this.

Please help me..
User avatar
Dilip Rajkumar
Registered User
Registered User
 
Posts: 2
Joined: November 3, 2011

Re: Role based registration form and registration form UI

Postby Jason Caldwell » November 3rd, 2011, 1:17 pm

Thanks for your inquiry, and for your purchase.
1. s2Members pro has its own registration form and its css I like to customize the registration form to my theme. How can I do that?? Please help.


How can I prevent s2Member Pro from loading it's default CSS?

You can create this directory and file: /wp-content/mu-plugins/s2-hacks.php
( these are MUST USE plugins, see: http://codex.wordpress.org/Must_Use_Plugins )
Code: Select all
<?php
add_action 
("ws_plugin__s2member_after_loaded", "remove_s2_pro_css");
function remove_s2_pro_css ()
    {
        remove_action ("ws_plugin__s2member_during_css", "c_ws_plugin__s2member_pro_css_js::css");
    }
?>

Or, you could remove only specific action Hooks; based on Payment Gateway.
Code: Select all
<?php
add_action 
("ws_plugin__s2member_after_loaded", "remove_s2_pro_css");
function remove_s2_pro_css ()
    {
        remove_action ("ws_plugin__s2member_during_css", "c_ws_plugin__s2member_pro_alipay_css_js::alipay_css");
        remove_action ("ws_plugin__s2member_during_css", "c_ws_plugin__s2member_pro_authnet_css_js::authnet_css");
        remove_action ("ws_plugin__s2member_during_css", "c_ws_plugin__s2member_pro_ccbill_css_js::ccbill_css");
        remove_action ("ws_plugin__s2member_during_css", "c_ws_plugin__s2member_pro_clickbank_css_js::clickbank_css");
        remove_action ("ws_plugin__s2member_during_css", "c_ws_plugin__s2member_pro_google_css_js::google_css");
        remove_action ("ws_plugin__s2member_during_css", "c_ws_plugin__s2member_pro_paypal_css_js::paypal_css");
    }
?>



How can I selectively load s2Member's CSS/JavaScript libraries, based on the Page displayed?

You can create this directory and file: /wp-content/mu-plugins/s2-hacks.php
( these are MUST USE plugins, see: http://codex.wordpress.org/Must_Use_Plugins )
Code: Select all
<?php
add_action 
("ws_plugin__s2member_after_loaded", "remove_s2_css");
function remove_s2_css ()
    {
        if (!is_page (array (1, 2, 3))) /* See <http://codex.wordpress.org/Conditional_Tags> */
            {
                remove_action ("wp_print_styles", "c_ws_plugin__s2member_css_js_themes::add_css");
                remove_action ("wp_print_scripts", "c_ws_plugin__s2member_css_js_themes::add_js_w_globals");
            }
    }
?>

There are more tips like in our FAQ, and throughout our support forums.

2. Also I need to have 2 registration forms for 2 roles for example I am having 2 roles one is student and another is Teacher. Either I should have a role field while registering or 2 fields in Membership login as Student register and teacher register. I am confuse how to achieve this. Please help me to do this.

VideoPlease see this video tutorial:
http://www.s2member.com/free-registrati ... vel-video/
If you have questions, please DO let us know :-)
~ Jason Caldwell / Lead Developer
& Zeitgeist Movie Advocate: http://www.zeitgeistmovie.com/

Is the s2Member plugin working for you? Please rate s2Member at WordPress.org.
You'll need a WordPress.org account ( comes in handy ). Then rate s2Member here Image
.
User avatar
Jason Caldwell
Lead Developer
Lead Developer
 
Posts: 4045
Joined: May 3, 2010
Location: Georgia / USA

Re: Role based registration form and registration form UI

Postby Dilip Rajkumar » November 4th, 2011, 1:15 am

Thank you very much for your reply I will try and let you know.

Regards,
Dilip
User avatar
Dilip Rajkumar
Registered User
Registered User
 
Posts: 2
Joined: November 3, 2011


Return to s2Member Plugin

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

cron