Edit user validation email

Hi

In the language file of User validation email there is  three %s item that the first and third are the name of  site and the second is user validation link:

//

Please confirm your email address by clicking on the link below:

%s  ---->the name of site

If you can't click on the link, copy and paste it to your browser manually.

%s  -----> the link
%s  ------>the name of site

//

I want to change the order of them and have the link and at last the name of site like this:

//

Please confirm your email address by clicking on the link below:

%s----> the link

If you can't click on the link, copy and paste it to your browser manually.

%s----> the the name of site

 

//

How can I do this?

  • The code that sends the validation email is in the file uservalidationbyemail/lib/functions.php. The line

    $body = elgg_echo('email:validate:body', array($user->name, $site->name, $link, $site->name, $site->url));

    creates the email body.

    If you want to change the order of the arguments or don't want to use any of them you would to have modify the array entries accordingly.

Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking