Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter webmasteral

    (@webmasteral)

    In classes/es-register.php
    I have made the following additions

    <div>
    <form class="es_widget_form">
    <!-- WSP Edit -->
    <?php global $current_user , $user_email; get_currentuserinfo(); ?>
    <!-- End -->
    <?php if( $es_desc <> "" ) { ?>
    <div class="es_caption"><?php echo $es_desc; ?></div>
    <?php } ?>
    <div class="es_msg"><span id="es_msg"></span></div>
    <?php if( $es_name == "YES" ) { ?>
    <div class="es_lablebox"><?php _e('Name', 'email-subscribers'); ?></div>
    <div class="es_textbox">
    <!-- WSP Edit -->
    <input class="es_textbox_class" name="es_txt_name" id="es_txt_name" value="<?PHP echo $current_user->display_name; ?>" maxlength="225" type="text">
    <!--End-->
    </div>
    <?php } ?>
    <div class="es_lablebox"><?php _e('Email *', 'email-subscribers'); ?></div>
    <div class="es_textbox">
    <!--WSP Edit-->
    <input class="es_textbox_class" name="es_txt_email" id="es_txt_email" onkeypress="if(event.keyCode==13) es_submit_page('<?php echo $url; ?>')" value="<?PHP echo $user_email; ?>" maxlength="225" type="text">
    <!--End-->
    </div>
    • This reply was modified 9 years, 9 months ago by webmasteral.
    Plugin Author storeapps

    (@storeapps)

    @webmasteral,

    Is it possible to have this plugin pull in the email address and name of the user if they are logged in?

    Nope.

    I have made the following additions

    Editing core plugin files is not really recommended as update for the next version will be difficult for you.

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

The topic ‘Allowing registered users to sign up’ is closed to new replies.