WordPress.org

Ready to get started?Download WordPress

Forums

Cimy User Extra Fields
[resolved] Remove "A password will be e-mailed to you." (14 posts)

  1. lcool
    Member
    Posted 3 years ago #

    The message at the bottom of the registration screen, "A password will be e-mailed to you." should be optional, since I am not emailing anyone their password.

    http://wordpress.org/extend/plugins/cimy-user-extra-fields/

  2. Marco Cimmino
    Member
    Plugin Author

    Posted 3 years ago #

    So kind to donate to have this option implemented?

  3. kirkpatrick
    Member
    Posted 3 years ago #

    Marco, Icool wasn't making an option request, it was a request for you to fix a silly error in your plugin. If the registrant sets their own password, sending that message is ugly design.

    Now, an option that you might ask to be paid for would be allowing duplicate emails (more than one user with the same email). Can that be done? I've gotten weird password messages and failures with several other plugins that purport to allow duplicate emails.

    If you achieve that successfully, I'll make a contribution, whether or not I use your plugin.

  4. Marco Cimmino
    Member
    Plugin Author

    Posted 3 years ago #

    silly error in your plugin

    Do you understand that most of the stuff that my plug-in does is an hack because WordPress doesn't allow certain things by design?

    So for you is obviously a silly error for me is hours of code to workaround what WordPress hasn't been design for.

    Hint:
    That message isn't printed by my plug-in, but by WordPress, so to remove it I need another hack that first thing comes to my mind is a JavaScript that hides it, this means:
    1. is not fault of my plug-in (see: wp-login.php if you do not believe me)
    2. is just another hack to workaround WordPress bad design
    3. works only for users with JavaScript enabled.

    Anyways go and use whatever you want, I don't need ignorant (but arrogant) users like you.

  5. kirkpatrick
    Member
    Posted 3 years ago #

    Yes, I see the problem, and I agree it isn't your "silly" error -- sorry. But that message remains ugly; I don't think it's such a big deal to inject css to make #reg_passmail disappear, conditionally on the form allowing password setting. (And if JS is disabled, nothing worse than what's going on now will occur.) It's all a hack; don't be upset by more hacking!

    And I would never have blasted you if you had just answered Icool respectfully.

  6. Marco Cimmino
    Member
    Plugin Author

    Posted 3 years ago #

    And I would never have blasted you if you had just answered Icool respectfully.

    Here the only non respectful person is you that speak with no knowledge of WordPress and blame a person that spent hours of his free time and gives away for FREE and OPEN SOURCE his code.

    Now if you want to be reasonable: donate some cash or send me a patch and I will include it in next release.

  7. penelopeelse
    Member
    Posted 3 years ago #

    Hi Marco

    Your plugin has saved my sanity, so I've no complaints!

    On this particular issue, I've edited wp-login in the root directory for a simple fix: I changed the text 'A password will be mailed to you' to 'We look forward to meeting you!' (see below). That seems to work fine - no code changes as such required.

    Obviously it will go on the list of 'things to check' when I next upgrade WordPress.

    <?php do_action('register_form'); ?>
    	<p id="reg_passmail"><?php _e('We look forward to meeting you!') ?></p>
  8. lcool
    Member
    Posted 3 years ago #

    Hi again - Marco, thank you for the plugin, I do not have development dollars for it though. I just edited the cimy_uef_register.css file for the plugin to make that text invisible:

    #reg_passmail {
    display: none;
    }

    If I had more time to get familiar with the plugin I would make it conditional myself :)

  9. Marco Cimmino
    Member
    Plugin Author

    Posted 2 years ago #

    #reg_passmail {
    display: none;
    }

    This works for you yes, but is not a real fix as people that do not have that option enabled maybe they prefer to keep the message.
    Real fix is a JavaScript code that is turned on only if the option is enabled, in my opinion.

    Will see if I will get back in the mood to workaround this.

  10. Marco Cimmino
    Member
    Plugin Author

    Posted 2 years ago #

    Actually no css file is also an option, just a separate one. Will see for a proper fix.

  11. 4plaay
    Member
    Posted 2 years ago #

    I did something similar to penelopeelse however the text I put in was "A confirmation email will be sent to you. Please follow the link to activate your new account." It works great and doesn't confuse my users :-)

  12. johnrhopkins
    Member
    Posted 2 years ago #

    Any progress on this? I just removed the message from the wp-login.php file for now.
    BTW: once I get this plugin working as I want, I'll be donating. Great work.

  13. startuplift
    Member
    Posted 2 years ago #

    Put the following code on your functions.php to get rid of the message on registration page. you do not need to touch the wp-login.php (so that you don't have to worry about future upgrades).

    function remove_password_email_text ( $text ) {
    	 if ($text == 'A password will be e-mailed to you.'){$text = '';}
    		return $text;
    	 }
    add_filter( 'gettext', 'remove_password_email_text' );

    Essentially you should be able to use a similar function on functions.php to get rid of any text

  14. Steven Chang
    Member
    Posted 2 years ago #

    startuplift, thanks for your code - I attempted to improve on it by checking we are only doing the text filter on wp-login.php page:

    function remove_password_email_text ( $text ) {
    	if(basename($_SERVER["SCRIPT_NAME"])=='wp-login.php' && $text == 'A password will be e-mailed to you.'){
    		$text = '';
    	}
    	return $text;
    }
    add_filter( 'gettext', 'remove_password_email_text' );

    Of course, if you have a different file name for your login page this won't work.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic