Community Support Forums — WordPress® ( Users Helping Users ) — 2011-11-04T01:15:28-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=15762 2011-11-04T01:15:28-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15762&p=50993#p50993 <![CDATA[Re: Role based registration form and registration form UI]]>
Regards,
Dilip

Statistics: Posted by Dilip Rajkumar — November 4th, 2011, 1:15 am


]]>
2011-11-03T13:17:58-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15762&p=50931#p50931 <![CDATA[Re: Role based registration form and registration form UI]]> 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:
<?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:
<?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:
<?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 :-)

Statistics: Posted by Jason Caldwell — November 3rd, 2011, 1:17 pm


]]>
2011-11-03T01:36:30-05:00 http://www.primothemes.com/forums/viewtopic.php?t=15762&p=50876#p50876 <![CDATA[Role based registration form and registration form UI]]>
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..

Statistics: Posted by Dilip Rajkumar — November 3rd, 2011, 1:36 am


]]>