Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

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

  • steigw
    Participant

    @steigw

    Good suggestion. Thank you


    steigw
    Participant

    @steigw

    @danbp had referenced a page with a plug in that wasn’t approved for the version of my wordpress (4.6). I went ahead and tried it and it works great. WP Simple Email Sender (shows as WP Single Email in settings).

    I’d love to figure out how to do it the right way, but this seems to fill the bill.


    steigw
    Participant

    @steigw

    It’s a staging site that doesn’t have public access, but I can put the code and info in here. Here is the complete code of the functions.php in the child theme. maybe I just put it all together wrong.

    <?php
    function nisarg_enqueue_styles() {
    
        $parent_style = 'nisarg-style';
    
        wp_enqueue_style( 'bootstrap', get_template_directory_uri().'/css/bootstrap.css' );
        wp_enqueue_style( 'font-awesome', get_template_directory_uri().'/font-awesome/css/font-awesome.min.css' );   
        wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
    
        wp_enqueue_style( 'nisarg-child-style',
            get_stylesheet_directory_uri() . '/style.css',
            array( $parent_style )
        );
    }
    add_action( 'wp_enqueue_scripts', 'nisarg_enqueue_styles' );
    ?>
    <?php
    function custom_wp_mail_from( $email ) {
            $handle = ‘accounts’;
    	$find = 'http://'; 
    	$replace = '';
    	$link = get_bloginfo( 'url' );
    	$domain = str_replace( $find, $replace, $link );
    	return $handle . '@' . $domain ;
    }
    add_filter( 'wp_mail_from', 'custom_wp_mail_from' );
    ?>

    The email link is:http://mydomain.com/activate/JA0BvkK1Q0DND10SYegdOtkTMemhGUF0/

    When I click on it immediately, I get all this:

    Fatal error: Uncaught exception ‘phpmailerException’ with message ‘Invalid address: ‘accounts’@mydomain.com’ in /homepages/25/d283441938/htdocs/clickandbuilds/staging/wp-includes/class-phpmailer.php:946 Stack trace: #0 /homepages/25/d283441938/htdocs/clickandbuilds/staging/wp-includes/pluggable.php(352): PHPMailer->setFrom(‘\xE2\x80\x98accounts\xE2\x80\x99@…’, ‘WordPress’) #1 /homepages/25/d283441938/htdocs/clickandbuilds/staging/wp-includes/pluggable.php(1726): wp_mail(‘webmaster@arlin…’, ‘[My Dev Sit…’, ‘New user regist…’) #2 /homepages/25/d283441938/htdocs/clickandbuilds/staging/wp-content/plugins/buddypress/bp-members/bp-members-functions.php(2031): wp_new_user_notification(18) #3 /homepages/25/d283441938/htdocs/clickandbuilds/staging/wp-content/plugins/buddypress/bp-members/bp-members-screens.php(364): bp_core_activate_signup(‘JA0BvkK1Q0DND10…’) #4 [internal function]: bp_core_screen_activation(”) #5 /homepages/25/d283441938/htdocs/clickandbuilds/staging/wp-includes/plugin.php(524): cal in /homepages/25/d283441938/htdocs/clickandbuilds/staging/wp-includes/class-phpmailer.php on line 946

    If I wait a while, then I get the normal webpage and it says “invalid activation key”. I don’t understand the significance of an immediate click on the link in the email vs. waiting a few more seconds, but it definitely matters.


    steigw
    Participant

    @steigw

    only broken with that custom code, which I found in another post and worked for their theme/bp/wp setup. To try @danbp’s suggestions, I’ll need to find examples where more code is provided.


    steigw
    Participant

    @steigw

    Maybe my problem is that I’m not defining the checkbox properly. I just noticed that I’m getting an error message that says “checkboxes require at least one option”

    I’d like the checkbox marked by default. Is there a way to put that into the option box? Maybe getting this part right will cause the rest of it to work.


    steigw
    Participant

    @steigw

    I’m working through this same issue and followed @danbp coding suggestions and have two problems.

    1) Even though checkbox is required, I can still create accounts without checking it.

    2) clicking the link on it causes a black float box to pop up, with two different lines of text. The first says “click this link” and the second says “Online Privacy Statement”.

    Click this link is linked to my “about us” page. How and why this is happening I have no idea. I certainly didn’t type this in anywhere.

    The “online Privacy Statement” links to my Privacy Statement, but I don’t call it “online privacy statement”, so where do those words come from?

    I’m running WP 4.6 and BP 2.6.2.

    What I typed is this:

    By checking this box you agree with our <a href='https://my-website.com/user-agreement'>terms</a>

    Requirement is “Required” and Visibility is “only me” and it’s enforced.

    When I click “Save”, the text I typed is changed to:

    By checking this box you agree with our terms

    Requirement stays OK, but the Visibility resets to “everyone” and isn’t enforced. See all those backslashes? A new pair (front & back of URL) are added every time I click the save button. You can see I clicked it a lot!

    Am I doing something wrong?


    steigw
    Participant

    @steigw

    Agreeable allows people to create the account, even if they leave the box unchecked. I see a number of support issues all reporting this problem on wordpress.org and the developers website is shutdown.

    Any other plug in suggestions? This is exactly what I’m looking for.


    steigw
    Participant

    @steigw

    Thanks for the tip; I’ll check out!

Viewing 8 replies - 1 through 8 (of 8 total)
Skip to toolbar