• Resolved aib20

    (@aibtreger)


    Hello,

    The code below no longer works for me. Can you please suggest how to modify it?

    __( ‘From your account dashboard you can edit your <a href=”%1$s”> profile details</a>, edit your <a href=”%2$s”> password</a> and check your <a href=”%3$s”>results</a>.’, ‘user-registration’ ),

                            esc_url( ur_get_endpoint_url( ‘edit-profile’ ) ),

                            esc_url( ur_get_endpoint_url( ‘edit-password’ ) ),

                            esc_url( ur_get_endpoint_url( ‘my-results’ ) )

                );

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Amrit Kumar Shrestha

    (@shresthauzwal)

    Hi @aibtreger,

    The code appears to be incomplete, which might be why it’s not working for you. Could you please try the following code snippet instead?

    echo sprintf( __( 'From your account dashboard you can edit your <a href="%1$s"> profile details</a>, edit your <a href="%2$s"> password</a> and check your <a href="%3$s">results</a>.', 'user-registration' ),

    esc_url( ur_get_endpoint_url( 'edit-profile' ) ),

    esc_url( ur_get_endpoint_url( 'edit-password' ) ),

    esc_url( ur_get_endpoint_url( 'my-results' ) )

    );

    Best Regards!

    Thread Starter aib20

    (@aibtreger)

    Hello Amrit!

    Thank you for your answer. This is the code inserted. Sadly, it doesn’t work. Instead when I enter my account, I see that a critical error has occured

    /* translators: 1 profile details url, 2: change password url */
    echo wp_kses_post( echo sprintf( __(‘From your account dashboard you can edit your profile details ( %1$s ), edit your password ( %2$s ) and check your results ( %3$s ).’, ‘user-registration’ ), esc_url( ur_get_endpoint_url( ‘edit-profile’ ) ), esc_url( ur_get_endpoint_url( ‘edit-password’ ) ), esc_url( ur_get_endpoint_url( ‘my-results’ ) ) );

    Plugin Support Amrit Kumar Shrestha

    (@shresthauzwal)

    Hi @aibtreger,

    We suspect that the issue might be related to how the code was added. Could you please share a screenshot showing where and how you added the code snippet?

    We’ll review it and get back to you accordingly.

    Best regards!

    Thread Starter aib20

    (@aibtreger)

    Hello, Amrit,

    I noticed that the code has changed slightly, and I can no longer enter the previous one because it causes an error. Earlier, my dashboard displayed the following information: “From your account dashboard, you can edit your profile details, change your password, and check your results” where “profile detsils”, “password” and “results” were links to the respective tags.

    I wish I could attach a screenshot of the code in dashboard.php, but unfortunately, I cannot (what a shame).

    Anyway, the account dashboard looks good, but I wish it displayed the previous information.

    Cheers!

    Plugin Support Amrit Kumar Shrestha

    (@shresthauzwal)

    Hi @aibtreger,

    You can use a browser extension like Awesome Screenshot and share the link here. Alternatively, you can upload the screenshot to your website and add the image URL using the image block feature in this forum.

    Also, we’re a bit unclear about the details of your previous and new dashboards. If you could clarify what has changed between the old and new content, it would help us assist you better.

    Best regards!

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

The topic ‘The old code’ is closed to new replies.