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.

About: Elizabeth Alter

Sorry, I've not written a description yet. I'll get to it soon!


My Latest Replies (From Various Topics)

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Thursday Aug 16th, 2012 at 4:12 pm #22279

Thank you Raam and Cristian, the combination of your advice worked (I did notice extra space before the <?php tag). I really appreciate your help, and your product. Thanks again.

Posted: Wednesday Aug 15th, 2012 at 1:29 pm #22135

It’s the code I pulled from these forums. I have tried it both with and without the closing ?> tag.

<?php
add_action(&#039;ws_plugin__s2member_during_configure_user_registration&#039;, &#039;s2_auto_login_after_registration&#039;);
function s2_auto_login_after_registration($vars = array()) {
    if (!is_admin() &amp;&amp; $vars[&#039;processed&#039;] === &#039;yes&#039;) {
        wp_new_user_notification($vars[&#039;user_id&#039;], $vars[&#039;pass&#039;]);
        wp_set_auth_cookie($vars[&#039;user_id&#039;], false, is_ssl());
        wp_redirect(S2MEMBER_LOGIN_WELCOME_PAGE_URL . &#039;?first&#039;);
        exit();
    }
}
  • This reply was modified 4 years, 4 months ago by  Eduan. Reason: Added the code tags
Posted: Wednesday Aug 15th, 2012 at 11:27 am #22107

I love the Pro plugin and the possibility of an auto-login feature (much less confusing to sign-ups than just putting some yellow-background text above the reg. form). My problem is when I try to implement the hack for auto-login, I’m getting all kinds of problems when I try to login to my WP admin (see below, this is just a sample of over a dozen warnings that show up). Problem goes away as soon as I remove the s2hacks.php file. Any suggestions? Thanks.

Warning: Cannot modify header information – headers already sent by (output started at /nfs/c04/h01/mnt/62642/domains/laschoolreport.com/html/wp-content/mu-plugins/s2hacks.php:1) in /nfs/c04/h01/mnt/62642/domains/laschoolreport.com/html/wp-login.php on line 362

Warning: Cannot modify header information – headers already sent by (output started at /nfs/c04/h01/mnt/62642/domains/laschoolreport.com/html/wp-content/mu-plugins/s2hacks.php:1) in /nfs/c04/h01/mnt/62642/domains/laschoolreport.com/html/wp-login.php on line 374

Warning: Cannot modify header information – headers already sent by (output started at /nfs/c04/h01/mnt/62642/domains/laschoolreport.com/html/wp-content/mu-plugins/s2hacks.php:1) in /nfs/c04/h01/mnt/62642/domains/laschoolreport.com/html/wp-includes/pluggable.php on line 697

Warning: Cannot modify header information – headers already sent by (output started at /nfs/c04/h01/mnt/62642/domains/laschoolreport.com/html/wp-content/mu-plugins/s2hacks.php:1) in /nfs/c04/h01/mnt/62642/domains/laschoolreport.com/html/wp-includes/pluggable.php on line 698

Viewing 3 replies - 1 through 3 (of 3 total)

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.