User tests: Successful: Unsuccessful:
This is a rework for j4 of this PR #20282
The user who are manually actived will receive a notification by email informing his account has been activated.
There is also the option of being able to manually send a reminder email to the user even though the account is already activated (in case the user do not login in the page after X time)
The mail template used is com_users.registration.user.admin_activated
Apply the PR and after run npm run build:js -- build/media_source/com_users/js
You can active a user, but not notification is sent.
You can active a user, but a notification is sent.
Please select:
Documentation link for docs.joomla.org
Page: Users:_Edit_Profile -> Document the new toolbar button
Page: Users -> Here just need mention that active the user will send a email with the notification.
No documentation changes for manual.joomla.org needed
Category | ⇒ | Administration com_users Language & Strings Repository NPM Change JavaScript |
Status | New | ⇒ | Pending |
Labels |
Added:
Language Change
NPM Resource Changed
PR-4.3-dev
|
Looking good - two small issues
Guessing that you need to copy the language strings from the site language file to the admin language file
or maybe the issue is that its not using the mail template
My bad, I totally forgot the "mail sent" notification.
The other issue is weird, that worked for me in local. I will do a fresh Joomla install and check from there, maybe I had some changes made in the repo I was using...but still weird, somehow the mailer is not loading the strings..
I will check later this
@brianteeman Okay you was right, the com_users.ini language loaded was only from the administrator part, as is expected.
So adding the follow:
// Load com_users site language strings
$language = $app->getLanguage();
$language->load('com_users', JPATH_SITE);
Fix the problem. But I really not like this solution. The best approch is just copy the strings to the administrator .ini language file. Is okay do it like this?
How do the other com_users admin emails do it?
Is it perhaps because you are not using the new mail templates?
Is it perhaps because you are not using the new mail templates?
I using it, yes:
$mailer = new \Joomla\CMS\Mail\MailTemplate('com_users.registration.user.admin_activated', $app->getLanguage()->getTag());
$mailer->addTemplateData($mailData);
$mailer->addRecipient($userMail);
How do the other com_users admin emails do it?
They have all the string in the administrator .ini file
They have all the string in the administrator .ini file
I cant see them
from here:
Those are not the email strings. These are
joomla-cms/language/en-GB/com_users.ini
Lines 11 to 25 in 92c0149
Right, I though you meant the one used in the actions in the administrator.
The first 2 strings are used in the users registration Model in the site part
The rest are actions triggered by a normal user, also in the site part.
When using the new button I expected to get a message saying "the email has been sent" or something like that
Done (new string added)
The email that is sent is just the language keys not the values
Done
Last changes all look good. One more thing
Done. And don't worry, while more corrections the better. Thank you for the help in this.
Last changes all look good. One more thing
Done. And don't worry, while more corrections the better. Thank you for the help in this.
Purely self motivated as I need this functionality and currently I just have an ugly hack
I have tested this item
Labels |
Added:
Documentation Required
|
Maybe hide the Send Activation Reminder
button when lastvisitDate
is not null. Currently, clicking on it appears to do nothing and no message.
Please do not merge, the branch is in 'freeze' state until Tuesday. Thank you!
@HLeithner It needs 2 human tests again as it has been changed after tests.
As we're in feature freeze, it's for 4.4.
4.4 doesn't get new features?
4.4 doesn't get new features?
@HLeithner I guess you wanted to ask about 4.3.
no 4.4 is a bridge release without new features like joomla 3.10
no 4.4 is a bridge release without new features like joomla 3.10
Ah, yes, I forgot, but now I remember.
So according to the extended definition of a feature to include anythingn that is not an error that means that nothing new will happen in Joomla until 2024?
5.0 is planned for mid October 2023
4.4 doesn't get new features?
Yes, you're right, as it's in parallel, i mixed it up. I mean of course 5.0.
Feature freeze your xcept for the priviliged few.
Yup, there are some exceptions, where the one or other already benefit from, by getting more time to finish a feature, sometimes till Beta 3.
A few months ago, the planned development was too fast, now it's too slow, one never can make it right....
just asking for consistency. noting that the guided tours is still not ready
Labels |
Added:
PR-4.4-dev
Removed: PR-4.3-dev |
I have tested this item ? unsuccessfully on 3edd0e6
At step 2 in the test I get this:
An error has occurred.
0 There is no "com_users.activate-user-send-email" asset of a "script" type in the registry.
Call stack
# Function Location
1 () JROOT/libraries/src/WebAsset/WebAssetRegistry.php:134
2 Joomla\CMS\WebAsset\WebAssetRegistry->get() JROOT/libraries/src/WebAsset/WebAssetManager.php:263
3 Joomla\CMS\WebAsset\WebAssetManager->useAsset() JROOT/libraries/src/WebAsset/WebAssetManager.php:197
4 Joomla\CMS\WebAsset\WebAssetManager->__call() JROOT/administrator/components/com_users/tmpl/user/edit.php:26
5 include() JROOT/libraries/src/MVC/View/HtmlView.php:415
6 Joomla\CMS\MVC\View\HtmlView->loadTemplate() JROOT/libraries/src/MVC/View/HtmlView.php:203
7 Joomla\CMS\MVC\View\HtmlView->display() JROOT/administrator/components/com_users/src/View/User/HtmlView.php:133
8 Joomla\Component\Users\Administrator\View\User\HtmlView->display() JROOT/libraries/src/MVC/Controller/BaseController.php:697
9 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/administrator/components/com_users/src/Controller/DisplayController.php:130
10 Joomla\Component\Users\Administrator\Controller\DisplayController->display() JROOT/libraries/src/MVC/Controller/BaseController.php:730
11 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:143
12 Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361
13 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/AdministratorApplication.php:150
14 Joomla\CMS\Application\AdministratorApplication->dispatch() JROOT/libraries/src/Application/AdministratorApplication.php:195
15 Joomla\CMS\Application\AdministratorApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:306
16 Joomla\CMS\Application\CMSApplication->execute() JROOT/administrator/includes/app.php:58
17 require_once() JROOT/administrator/index.php:32
This pull request has been automatically rebased to 5.1-dev.
Labels |
Added:
Feature
PR-5.0-dev
Removed: PR-4.4-dev |
I tried to solve the conflicts in this PR. @carlitorweb can you check if it is correct the way I did it?
I have tested this item ✅ successfully on 6f8fe41
Other than the minor cs issue this works perfectly!!!
Labels |
Added:
PR-5.1-dev
|
I have tested this item ✅ successfully on f5cf34a
This pull request has been automatically rebased to 5.2-dev.
Title |
|
I have tested this item ✅ successfully on f5cf34a
Works,
but the activated-email to the new user comes in the backend-language of the "Super User" who
click to the button"Activate & Send Email" or "Send Activation Reminder"-button,
and not in the default-language of the website as the registration-emails.
The registration-emails comes with this PR and without this PR in the default-language of the website.
default-language:
https://help.joomla.org/proxy?keyref=Help51:Languages:_Installed
Status | Pending | ⇒ | Ready to Commit |
RTC
Status | Ready to Commit | ⇒ | Pending |
Back to pending due to merge conflicts.
Labels |
Added:
PR-5.2-dev
Removed: PR-5.0-dev PR-5.1-dev |
Status | Pending | ⇒ | Ready to Commit |
Build | 4.3-dev | ⇒ | 5.2-dev |
RTC
@richard67 how can this be RTC when we have this comment #39650 (comment)
@richard67 how can this be RTC when we have this comment #39650 (comment)
@brianteeman Why does @Sieger66 then post a successful test result if it is not successful?
@carlitorweb Is it intended that the email goes out in the backend language of the admin user?
Status | Ready to Commit | ⇒ | Pending |
Back to pending due to necessary clarification.
Note: Remember when you install a new language and you want to use the mail template, is neccessary go to the Mail Template section, enter to the template you want to use and save it. Doing this, then the proper tag is generated in the language column of the mail_templates table. If not, always will fallback to en-GB
I have tested this item ? unsuccessfully on b13a47a
After your last commit the com_users.registration.user.admin_activated - email comes only with the two language-Strings in the email:
in subject is only "COM_USERS_EMAIL_ACTIVATED_BY_ADMIN_ACTIVATION_SUBJECT"
in body is only "COM_USERS_EMAIL_ACTIVATED_BY_ADMIN_ACTIVATION_BODY"
Then i go to the Mail Template section to "com_users.registration.user.admin_activated" email-template
and click to save in german and english language version.(Only this two languages are installed in the website)
Now the com_users.registration.user.admin_activated - email comes with the correct text but ever in the english language in the email!
The default-language of the website and the "administrator backend-language" have no affect to the language in this email.
I think that is not correct.
All other "registration-emails" for example:
com_users.registration.user.admin_activation
com_users.registration.admin.verification_request
comes in the default-language of the website.
default-language:
https://help.joomla.org/proxy?keyref=Help51:Languages:_Installed
@Sieger66 We have 2 default language param, one is for the administrator and the other is for the frontend. Right now, the email go out with the default language of the administrator.
If I understand well, what you looking for is, the email go out with the default language of the frontend, is this correct?
Yes, this is correct.
Ohh! I now see the default-language param for the administrator and
the email go out with the default language of the administrator.
In detail the "com_users.registration.user.admin_activated" email comes allways with this language with your last commit.
But the other emails comes in the language of the default-language param for the site.
I dont know is it intended and is it correct usecase.
Other small issue:
In the sent notification message in backend comes only the language-key:
COM_USERS_REGISTRATION_ACTIVATION_NOTIFY_SEND_MAIL_SUCCESS
and not the value(text).
I have tested this item ✅ successfully on c375030
Works as aspected.
@brianteeman : Now we need a second test.
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2024-07-31 16:23:58 |
Closed_By | ⇒ | carlitorweb |
Close due lack of interest
@carlitorweb would you please recover your branch? I added it for the next wednesday maintainer meeting
@carlitorweb would you please recover your branch? I added it for the next wednesday maintainer meeting
Done
Status | Closed | ⇒ | New |
Closed_Date | 2024-07-31 16:23:58 | ⇒ | |
Closed_By | carlitorweb | ⇒ |
Status | New | ⇒ | Pending |
@carlitorweb resolving the 2 conversations is needed before a test?
@carlitorweb resolving the 2 conversations is needed before a test?
yes, working on it
Okay, I think is ready.
@carlitorweb thanks for your work.
I'm unable to get an email (verification link) after the registration is send. In "Global Configuration > Server > Mail – Send Test Mail" no E-Mail arrived.
The Button "Activate and send e-mail" seems to work and changed to "Send Activation Reminder".
Sorry, no test.
For other test user: To be able to create a user account in the Frontend you have to open "User Options > Allow User Registration – Yes".
Test System Information:
Sample Data – Testing
PHP Built On Darwin Air.local 23.6.0 Darwin Kernel Version 23.6.0: Mon Jul 29 21:13:00 PDT 2024; root:xnu-10063.141.2~1/RELEASE_X86_64 x86_64
Database Type mysql
Database Version 8.0.35
Database Collation utf8mb4_unicode_ci
Database Connection Collation utf8mb4_0900_ai_ci
Database Connection Encryption None
Database Server Supports Connection Encryption Yes
PHP Version 8.3.8
Web Server Apache/2.4.58 (Unix) OpenSSL/1.1.1u mod_fastcgi/mod_fastcgi-SNAP-0910052141
WebServer to PHP Interface cgi-fcgi
Joomla! Version Joomla! 5.2.0-alpha4-dev Development [ Uthabiti ] 23-July-2024 16:01 GMT
Joomla Backward Compatibility Plugin Disabled
User Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:129.0) Gecko/20100101 Firefox/129.0
This pull request has been automatically rebased to 5.3-dev.
Title |
|
Labels |
Added:
PR-5.3-dev
Removed: PR-5.2-dev |
/me dancing with joy