Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to update Activation link


  • dave8528
    Participant

    @dave8528

    Hi,
    Currently my Buddypress’ Activation message links the login to ordinary wp-login which I need it to go to http://mydomain.com/my-account/ where I have all my new registration and login.
    I have gone to: /plugins/buddypress/bp-themes/bp-default/registration/activate.php
    …and on line 23:

    
    <p><?php _e( 'Your account was activated successfully! Your account details have been sent to you in a separate email.', 'buddypress' ); ?></p>
    				<?php else : ?>
    					<p><?php 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() ) ); ?></p>
    

    Can somebody please help me to incorporate my link in this code?

    Thanks very much.

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

  • shanebp
    Moderator

    @shanebp

    Please don’t double post. Your other thread has been deleted.

    Unless you are specifically using the bp-default theme, you should create a template overload of this file:
    buddypress\bp-templates\bp-legacy\buddypress\members\activate.php
    And make your changes there.


    dave8528
    Participant

    @dave8528

    Hi @shanebp,
    I’m sorry for the duplication as I thought I had placed in a wrong section the first time and I could not remove it myself.

    As for your suggestion, this will still rout users to wp-login page vs where I need it to go to which is “my-account”. How do I change this: <a href="%s"> to be directed to the location I need?
    It seems ” %s ” is some sort of shortcode that takes the user to that location. Can I just do <a href="http://mydomain.com/my-account/"> instead?

    Thanks again!


    shanebp
    Moderator

    @shanebp

    You might want to google printf so that you understand what %s does.

    You can do this:
    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' ), 'http://mydomain.com/my-account/' ); ?>

    You can also replace the printf with:
    echo 'Your account was activated successfully! You can now <a href="http://mydomain.com/my-account/>log in</a> with the username and password you provided when you signed up.';


    dave8528
    Participant

    @dave8528

    Thanks for the tip. It worked perfectly. Now, should I remove the old folder as you suggested in “template orverload” ?

    Regards!


    shanebp
    Moderator

    @shanebp

    I never suggested you remove the ‘old’ folder.
    You mean this folder?
    buddypress\bp-templates\bp-legacy\buddypress\members\activate.php
    If so, no.
    And re-read the whole codex page so that you understand what a template overload is.


    dave8528
    Participant

    @dave8528

    My bad! I did not read the entire page 🙁
    Thanks again for all help.

    Cheers.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to update Activation link’ is closed to new replies.
Skip to toolbar