Support » Plugin: User Registration & User Profile - Profile Builder » Lost Password Link not displaying in widget

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author adispiac

    (@adispiac)

    For the link to appear you need to fill in the Password Recovery page URL, in the Profile Builder Login Widget settings (Appearance -> Widgets).

    Thanks adispiac, but I’ve already done this.

    This is the code that the links below the widget’s form should be using

    <p class="login-register-lost-password">
    <a href="http://bmwn.qcca.org.au/register/">Register</a>
    |
    <a href="http://bmwn.qcca.org.au/password-recovery/"></a>
    </p>

    So the issue isn’t the URL, but the label for the URL isn’t there.

    I think I’ve found the problem.

    It’s in line 208 of login.php

    $login_form .= '<a href="'. esc_url($lostpassword_url) .'">'. apply_filters('wppb_login_lostpass_text', __('Lost your password?','profilebuilder')) .'</a>';

    If I change the bit where it translates the string, i.e. change
    __('Lost your password?','profilebuilder')
    to
    'Lost your password?'

    The string is displayed in the login widget.

    However, I don’t know enough about php or the wordpress api to know why this string is being returned empty by the __ function. The site is in English.

    In profilebuilder.pot, there are two similar strings defined – both “Lost your password” and “Lost your password?” (with a question mark) – could that be the source of the bug?

    Hello,

    I can not duplicate your bug.
    Maybe ‘Lost your password?’ is translated in a empty string.

    Try not to edit in Profile Builder and let the code like this:
    __('Lost your password?','profilebuilder')

    We made a custom plugin for you that should fix this issue.

    Email me here and I’ll attach it for you.

    hi Cristophor – email sent.

    I’ve just done a fresh install of the plugin, but no change.

    Check your e-mail and let us know if it worked.

    Wow – thanks Cristophor – that is great service!

    Is there a way to donate to you guys?

    Glad I could help!

    You’re too kind with offering to donate, but it’s not necessary. I’m sure there are better causes which need money.

    You have already helped us with your review on our plugin, thank you!
    Profile Builder – Reviews

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Lost Password Link not displaying in widget’ is closed to new replies.