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: Richard Smolenski

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


Topics I'm Subscribed To

Viewing 3 topics - 1 through 3 (of 3 total)
Topic Count Last Reply
Custom Gated Profile Page

By:  Richard Smolenski in: Community Forum

voices: 1
replies: 0

3 years, 11 months ago  Richard Smolenski

Auto Login Code Question

By:  Richard Smolenski in: Community Forum

voices: 3
replies: 5

4 years, 1 month ago  Jason (Lead Developer)

Change Coupon Code Description

By:  Richard Smolenski in: Community Forum

voices: 2
replies: 2

4 years, 2 months ago  Richard Smolenski

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

Topics I've Started

Viewing 3 topics - 1 through 3 (of 3 total)
Topic Count Last Reply
Custom Gated Profile Page

By:  Richard Smolenski in: Community Forum

voices: 1
replies: 0

3 years, 11 months ago  Richard Smolenski

Auto Login Code Question

By:  Richard Smolenski in: Community Forum

voices: 3
replies: 5

4 years, 1 month ago  Jason (Lead Developer)

Change Coupon Code Description

By:  Richard Smolenski in: Community Forum

voices: 2
replies: 2

4 years, 2 months ago  Richard Smolenski

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

My Latest Replies (From Various Topics)

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Monday Nov 12th, 2012 at 6:38 pm #31379
<?php
add_action('ws_plugin__s2member_during_configure_user_registration', 's2_auto_login_after_registration');
function s2_auto_login_after_registration($vars = array()) {
	if (!is_admin() && $vars['processed'] === 'yes') {
		wp_new_user_notification($vars['user_id'], $vars['pass']);
		wp_set_auth_cookie($vars['user_id'], false, is_ssl());
		c_ws_plugin__s2member_login_redirects::login_redirect($vars['login']);
	}
}

Also, I use Gmail SMTP, which is how I can verify that the receipts went out or not. Might that be a potential cause?

Posted: Monday Nov 12th, 2012 at 10:10 am #31313

Cristián,

Unfortunately, I did not have logging enabled when this occurred, but when I deleted the s2hacks.php file, the receipts began to send out again.

Yes, I am using Paypal Pro Forms. Every transaction that occurred when the s2hacks file was on the server did not send a receipt and every transaction since I removed it has.

If it helps, I have another mu-plugins file, which is a contextual translation to remove the “for X months” from coupon code entries, which was confusing my users.

That code follows.

<?php
add_filter('ngettext_with_context', 's2_n_contextual_translation', 10, 5);
function s2_n_contextual_translation($translated = NULL, $original_single = NULL, $original_plural = NULL, $number = NULL, $context = NULL)
    {
        if($context === 's2member-front' && $original_single === 'for %1$s %2$s')
            /* Ex: `good for 1 month`. Using `%1$s` and `%2$s`. */
            $translated = '';
        /**/
        else if($context === 's2member-front' && $original_plural === 'for %1$s %3$s')
            /* Ex: `good for 2 months`. Using `%1$s` and `%3$s`. */
            $translated = '';
        /**/
        return $translated;
        
    }
?>
Posted: Saturday Oct 20th, 2012 at 1:13 am #29109

Thanks!

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.