How create hook that will display a text warning in the browser on the current page before performing the action?

sartorius

Registered
Mar 1, 2020
1
0
1
Kyiv
cPanel Access Level
Root Administrator
I need to create a hook that will display a text warning in the browser on the current page before performing the action. Tell me in what documentation this is described. Thanks!
 

cPanelLauren

Product Owner
Staff member
Nov 14, 2017
13,296
1,271
313
Houston

yodigital

Registered
Mar 10, 2020
2
0
1
USA
cPanel Access Level
Root Administrator
I'm in the same boat.

We set up a notice using cPanel & WHM news, but our students don't click on the notification.
We are trying to just fire a simple Javascript Modal window when they successfully login.

In our case, we resell to 8,000+ active users who are students/staff/faculty and need an easy way to put maintenance notices.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
463
Hello @yodigital,

We set up a notice using cPanel & WHM news, but our students don't click on the notification.
Are you aiming to receive read confirmation from each individual cPanel account?

Thank you.
 

yodigital

Registered
Mar 10, 2020
2
0
1
USA
cPanel Access Level
Root Administrator
Hi @cPanelMichael

Read confirmation is not needed.
Our students are unlikely to pay attention to the notification icon in the top right of the home screen
notification.PNG


We are looking for an easy way to present a modal window upon them logging into cPanel, which states about upcoming downtime.