7 years ago
Topic

Hi

We had to hack the plugins\cck_storage_location\joomla_user\joomla_user.php file for the following reasons:

  • send the activation email according to the group, not to the Joomla user configuration panel. Depending on the group of the new user, the email is sent or not.
  • modify the order of the variables in the email message in the following call:

    $body = JText::sprintf( 'COM_CCK_EMAIL_REGISTERED_WITH_ACTIVATION_BODY',
    $data['activate'],
    $data['siteurl'],
    $data['username'],
    $data['password_clear']
    );

instead of the original call
$body = JText::sprintf( 'COM_CCK_EMAIL_REGISTERED_WITH_ACTIVATION_BODY',
$data['name'],
$data['sitename'],
$data['activate'],
$data['siteurl'],
$data['username'],
$data['password_clear']
);

Is there another way to customize the activation email without this hack please ?

thanks

cyril

Get a VIP membership
4229 Posts
Kadministrator
7 years ago
4
Level 1

Hi,

I don't think there is currently any other option, message is obviously hardcoded.

4229 Posts
Kadministrator
7 years ago
3
Level 2

Actually, you can disable email sending, then send email by yourself

7 years ago
2
Level 3

Thanks Klas, we will study this way

cyril

4229 Posts
Kadministrator
7 years ago
1
Level 4

Did it work? If yes, please mark as solved.

7 years ago
0
Level 5

Yes, it's working, thanks Klas

The activation token in the email as well as the possibility to deactivate the native joomla registration email in the user storage plugin is something not as known as it should be 

thanks again

cyril

Get a VIP membership