• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Plesk News - disable ?

teckna

Basic Pleskian
Hi,

We have set out clients up so that they do not display the DESKTOP and that works well.

But you still get "Plesk News" at the top when you login.

Anyone know how to permanently disable or turn this off ?

Small Businesses in the UK do not care about SOA records or what ever news is added, only leads to more support calls :(

Andy @ Teckna
 
I would also like to have this feature Disabled.

Its pointless for our members
 
I've got 2 questions about this subject.

I'd like to remove the news for alle clients and domainlogin's too.
How to disable?

But my second question is, how to restore the news for the Admin user in Plesk, cause when clicked the X, the news is gone, but I can't seem to find any restore function to place it back.
 
You can get rid of the news by editing the PSA databases (at least, you could in version 8.0). We wrote a script that "Dismisses the News" for each client and domain that is setup. We call it via the Event Manager.

Here's a snippet of perl code we use:

For clients:

$query = "SELECT id FROM clients WHERE login='$client'";
@cID = $queryDBpsa->($query);
$query = "REPLACE INTO cl_param (param, val , cl_id) VALUES ('news_dismissed
', '1', '$cID[0]');";
$queryDBpsa->($query);

For domains:


$query = "SELECT id FROM domains WHERE name='$domain'";
@dID = $queryDBpsa->($query);
$query = "REPLACE INTO dom_param (param, val , dom_id) VALUES ('news_dismiss
ed', '1', '$dID[0]');";
$queryDBpsa->($query);

Hope that helps some of you.
 
Originally posted by CruzMark
You can get rid of the news by editing the PSA databases (at least, you could in version 8.0). We wrote a script that "Dismisses the News" for each client and domain that is setup. We call it via the Event Manager.

Here's a snippet of perl code we use:

For clients:

$query = "SELECT id FROM clients WHERE login='$client'";
@cID = $queryDBpsa->($query);
$query = "REPLACE INTO cl_param (param, val , cl_id) VALUES ('news_dismissed
', '1', '$cID[0]');";
$queryDBpsa->($query);

For domains:


$query = "SELECT id FROM domains WHERE name='$domain'";
@dID = $queryDBpsa->($query);
$query = "REPLACE INTO dom_param (param, val , dom_id) VALUES ('news_dismiss
ed', '1', '$dID[0]');";
$queryDBpsa->($query);

Hope that helps some of you.


Thanks for the code, CruzMark. I'm a Plesk noob so I'm not quite sure
how to deploy your code. (?) I'm using Plesk 8.1 + CentOS 4.4.

Could you please elaborate on your implementation?

Can I just add a shebang to the top of your code and save it as a .pl file?

I would've just experimented myself without bothering you but I'm afraid
to mess something up on my production server. I've already found out
the hard way - that it's easy to break a Plesk box :·\

Any further assistance you could provide would be greatly appreciated.
Thank you very much for your valuable time and contributions. :)

Best wishes,
--
David Black
Oklahoma City, OK USA
 
Originally posted by wavedave
Thanks for the code, CruzMark. I'm a Plesk noob so I'm not quite sure
how to deploy your code. (?) I'm using Plesk 8.1 + CentOS 4.4.

Could you please elaborate on your implementation?

Can I just add a shebang to the top of your code and save it as a .pl file?

I would've just experimented myself without bothering you but I'm afraid
to mess something up on my production server. I've already found out
the hard way - that it's easy to break a Plesk box :·\


You shouldn't be able to mess up *everything* on your box with this script. Just the domain you're trying to setup.

You need to launch this code from the event manager, whenever a domain or client is created. The handler should send either the client or domain name.

You need to get the variable that is passed so that the script can use it.

And you need to flesh the code out to connect to your database.

What I've provided is simply the SQL query that you need to do to get the news dismissed.

Good luck.

Mark
 
Back
Top