Implemented Idea: Display notification when user clicks on 'Copy Token' button
- Dmitrijs Rekuns
-
Topic Author
- Offline
Less
More
- Posts: 182
- Thank you received: 8
3 weeks 6 days ago #3575
by Dmitrijs Rekuns
Idea: Display notification when user clicks on 'Copy Token' button was created by Dmitrijs Rekuns
I just wondering: a user clicks on 'Copy Token' button, the token is being copied into clipboard but the user does not know about that.
Maybe an alert like "The token has been copied" will be the solution.
Just an idea about further UX improvement.
Maybe an alert like "The token has been copied" will be the solution.
Just an idea about further UX improvement.
The topic has been locked.
- Ruud van Lent
-
- Offline
Less
More
- Posts: 1873
- Thank you received: 123
3 weeks 6 days ago #3576
by Ruud van Lent
Replied by Ruud van Lent on topic Idea: Display notification when user clicks on 'Copy Token' button
That is actually implemented.
When clicking the button a toast container is created. unfortunately the naming is to generic so when your template (like mine) is also using toast messages, it will (in my case) not display.
For the next version i have refactored that to a different method: even when the toast worked it was visually different from the toast on the template.
On my site you can see the new functionality: when clicked the button turn green and gives a "[check] Copied" text for 3 seconds.
still testing this, so if you have a better way to do this let me know.
When clicking the button a toast container is created. unfortunately the naming is to generic so when your template (like mine) is also using toast messages, it will (in my case) not display.
For the next version i have refactored that to a different method: even when the toast worked it was visually different from the toast on the template.
On my site you can see the new functionality: when clicked the button turn green and gives a "[check] Copied" text for 3 seconds.
still testing this, so if you have a better way to do this let me know.
The following user(s) said Thank You: Dmitrijs Rekuns
The topic has been locked.
- Ruud van Lent
-
- Offline
Less
More
- Posts: 1873
- Thank you received: 123
2 weeks 4 days ago #3597
by Ruud van Lent
Replied by Ruud van Lent on topic Idea: Display notification when user clicks on 'Copy Token' button
I have refactored this once again so it is in line with other extensions I have that have this clipbaord functionality.
So now when you click the copy button, it will display a message using Core Joomla messaging JS functionlity.When triggered, the site template will 'take' over and display the success (or error) message.
My site uses my own bootstrap template in which I have implemented toast messages. This way we make sure it will work on all templates and is in line with how your site messages you visitor.
You can test in in My Account > My Download Keys > click either one of the [Copy Token] buttons.
So now when you click the copy button, it will display a message using Core Joomla messaging JS functionlity.When triggered, the site template will 'take' over and display the success (or error) message.
My site uses my own bootstrap template in which I have implemented toast messages. This way we make sure it will work on all templates and is in line with how your site messages you visitor.
You can test in in My Account > My Download Keys > click either one of the [Copy Token] buttons.
The topic has been locked.
- Dmitrijs Rekuns
-
Topic Author
- Offline
Less
More
- Posts: 182
- Thank you received: 8
2 weeks 4 days ago #3598
by Dmitrijs Rekuns
Replied by Dmitrijs Rekuns on topic Idea: Display notification when user clicks on 'Copy Token' button
it is nice, thank you, Ruud!
If there is such a sublayout, I will override this element for Uikit via template override to get this effect: getuikit.com/docs/notification
If there is such a sublayout, I will override this element for Uikit via template override to get this effect: getuikit.com/docs/notification
The topic has been locked.
- Ruud van Lent
-
- Offline
Less
More
- Posts: 1873
- Thank you received: 123
2 weeks 3 days ago #3599
by Ruud van Lent
Replied by Ruud van Lent on topic Idea: Display notification when user clicks on 'Copy Token' button
Thanks,
it now just 'pushes' a message via Joomla core JS, your template will have an implementation for that. In the template you can change how messages look, where they appear, etc.
e.g. In my template I have refactored the Joomla messages to display as bootstrap toast messages.
So with this new implementation they will look like all other messages in your template.
it now just 'pushes' a message via Joomla core JS, your template will have an implementation for that. In the template you can change how messages look, where they appear, etc.
e.g. In my template I have refactored the Joomla messages to display as bootstrap toast messages.
So with this new implementation they will look like all other messages in your template.
The topic has been locked.
- Ruud van Lent
-
- Offline
Less
More
- Posts: 1873
- Thank you received: 123
5 days 18 hours ago #3606
by Ruud van Lent
Replied by Ruud van Lent on topic Idea: Display notification when user clicks on 'Copy Token' button
implemented in ochSubscription 6.0.0.beta.1 released July 16th, 2026)
The topic has been locked.