Today we will learn how to post banner notification in Plesk -Windows. This is useful when you want to display a specific content like new features or downtime message in the homepage of customer panel.
We will be using the plesk extension - Broadcast message to achieve this task.
To install the extension :
C:\> plesk bin extension --install broadcast-message
Turn on the extension :
C:\> plesk db "update ModuleSettings set value = 1 where name = 'enable' and module_id in (select id from Modules where name = 'broadcast-message')"
Turn off the extension :
C:\> plesk db "update ModuleSettings set value = 0 where name = 'enable' and module_id in (select id from Modules where name = 'broadcast-message')"
Edit the notification text:
C:\> plesk db "update ModuleSettings set value = '<new message>' where name = 'message' and module_id in (select id from Modules where name = 'broadcast-message')"
Example :
plesk db "SET @broadcast_id := (select id from Modules where name='broadcast-message'); insert into ModuleSettings values(@broadcast_id,'allowHtml',''),(@broadcast_id,'enable',1),(@broadcast_id,'message','This is a sample Banner for domain - <b><amarhelloween.com> </b>'),(@broadcast_id,'type','info')"
The same settings can also be applied via GUI. Tools & Settings > Extensions > Broadcast Message
Comments
Post a Comment