Forum Replies Created

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter hugogogo

    (@hugogogo)

    perfect ?? thank you !

    Thread Starter hugogogo

    (@hugogogo)

    Hi ?? ok that’s great ! thank you for your answer

    Thread Starter hugogogo

    (@hugogogo)

    ok, i did some more research and i found what’s going on :

    in your file ‘/easy-login-woocommerce/includes/class-xoo-el-form-handler.ph’, in function ‘newuser_notification_email’, at line 782 you create the link of the message :

    $message .= ‘<‘ . network_site_url( “?action=reset_password&key=$key&login=” . rawurlencode( $user->user_login ), ‘login’ ) . “>\r\n”;

    and you use ‘<‘ and ‘>’ that (i suppose) some email clients interpret as an invalid html tag, so they delete it. If you want to show those brackets in the email, you could maybe consider using &lt; and &gt; ?

    anyway, removing them fixed the problem ??

    Thread Starter hugogogo

    (@hugogogo)

    for example, if i use your plugin for registration, i receive an email to create my password, with this content :
    “Username: <my user name> To set your password, visit the following address:” as you can see, no link :/

    if i use the wordpress registration page instead of your plugin, i get the same result. But if i deactivate your plugin, and i register with wordpress, the link in the email works again

    I tried on two different wordpress installation

    Thread Starter hugogogo

    (@hugogogo)

    Hi, thank you for your answer ?? I was not precise enough : I receive the emails, but the links are empty

    Thread Starter hugogogo

    (@hugogogo)

    even better, it shows the meta and edit field on focus instead of hover :

    // Hook into the admin_head action to inject CSS into the admin dashboard
    function custom_plugin_notes_css() {
      ?>
      <style>
    
      /* hide plugins column infos */
      .pnp_plugin_notes_col .pnp-show-note-wrapper ~ .pnp-add-note-wrapper {
        margin-top: -10px;
      }
      .pnp_plugin_notes_col .pnp-show-note-wrapper {
        visibility: hidden;
        padding-bottom: 0px;
      }
      .pnp_plugin_notes_col .pnp-show-note-wrapper .pnp-plugin-note {
        visibility: visible;
      }
      .pnp_plugin_notes_col .pnp-show-note-wrapper .pnp-plugin-note .pnp-note-meta {  
        display: none;
      }
    
      /* show them on hover */
      .pnp_plugin_notes_col .pnp-wrapper:focus .pnp-show-note-wrapper {
        visibility: visible;
        padding-bottom: 10px;
      }
      .pnp_plugin_notes_col .pnp-wrapper:focus .pnp-plugin-note .pnp-note-meta {
        display: block;
      }
      .pnp_plugin_notes_col .pnp-wrapper:focus .pnp-show-note-wrapper ~ .pnp-add-note-wrapper {
        margin-top: 0px;
      }
    
      /* replace "+ Add plugin note" with a simple "+" */
                    .pnp_plugin_notes_col .pnp-add-note-wrapper .pnp-add-note {
        color: transparent;
        position: relative;
      }
      .pnp_plugin_notes_col .pnp-add-note-wrapper .pnp-add-note::before {
        content: "+";
        position: absolute;
        color: blue;
        left: 10px;
      }
    
      </style>
      <?php
    }
    add_action('admin_head', 'custom_plugin_notes_css');
    
    function custom_plugin_notes_js() {
      ?>
      <script type="text/javascript">
        const notes_focus = document.querySelectorAll(".pnp_plugin_notes_col .pnp-wrapper");
        notes_focus.forEach(x => x.tabIndex = 0);
      </script>
      <?php
    }
    add_action('admin_footer', 'custom_plugin_notes_js');
    
    Thread Starter hugogogo

    (@hugogogo)

    and I also added this css to replace the text “+ Add plugin note” with a simple “+” :

    /* replace "+ Add plugin note" with a simple "+" */
    
    .pnp_plugin_notes_col .pnp-add-note-wrapper .pnp-add-note {
      color: transparent;
      position: relative;
    }
    .pnp_plugin_notes_col .pnp-add-note-wrapper .pnp-add-note::before {
      content: "+";
      position: absolute;
      color: blue;
      left: 10px;
    }
Viewing 7 replies - 1 through 7 (of 7 total)