Skip to:
Content
Pages
Categories
Search
Top
Bottom

Broken Link After Successful Activation


  • vpsgeneral
    Participant

    @vpsgeneral

    After a user successfully activates their account this is what they see right after activation.

    Everything is working correctly but the link for log-in it displays is broken.. you’ll notice it looks to be a syntax error. How can I correct this? Or what file do I need to edit it to fix the a href link?

    Screenshot of what the user sees:
    broken link

    BP Version 3.1.0
    WordPress 4.9.6

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

  • vpsgeneral
    Participant

    @vpsgeneral

    I noticed when signing in as a test user.. when editing your profile the gravatar link is broken as well. Looks to be a site wide issue with internal buddypress links.

    broken links


    Varun Dubey
    Participant

    @vapvarun

    @vpsgeneral I am able to replicate the issue, you can edit

    bp-templates/bp-nouveau/buddypress/members/activate.php

    Replace sprintf with printf

    sprintf(
    							__( 'Your account was activated successfully! You can now <a href="%s">log in</a> with the username and password you provided when you signed up.', 'buddypress' ),
    							wp_login_url( bp_get_root_domain() )
    						)

    with

    printf(
    							__( 'Your account was activated successfully! You can now <a href="%s">log in</a> with the username and password you provided when you signed up.', 'buddypress' ),
    							wp_login_url( bp_get_root_domain() )
    						)

    Varun Dubey
    Participant

    @vapvarun

    For Gravatar, you will need to modify

    bp-templates/bp-nouveau/buddypress/members/single/profile/change-avatar.php

    Replace

    esc_html_e( 'Your profile photo will be used on your profile and throughout the site. If there is a <a href="https://gravatar.com">Gravatar</a> associated with your account email we will use that, or you can upload an image from your computer.', 'buddypress' );
    with
    _e( 'Your profile photo will be used on your profile and throughout the site. If there is a <a href="https://gravatar.com">Gravatar</a> associated with your account email we will use that, or you can upload an image from your computer.', 'buddypress' );


    vpsgeneral
    Participant

    @vpsgeneral

    Thanks @vapvarun

    The first correction you suggested, the code did make the link work! The only thing is it added a “216” to the text.

    Account active

    The 2nd suggestion for the gravatar did not work. I’m still seeing the same broken link as noted in the original post.

    I copied and pasted the code as you suggested but it did not work for the gravatar link.

    Is there something else wrong or did I miss something?

    Thanks for your help I really appreciate it. 🙂


    vpsgeneral
    Participant

    @vpsgeneral

    UPDATE.

    The gravatar link page is working correctly.. I copy and pasted the code in the wrong part of the php file.. The gravatar code you suggested is working correctly! The only thing now is the “216” text in the activation text.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.
Skip to toolbar