1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Plesk News - disable ?

Discussion in 'Plesk for Linux - 8.x and Older' started by teckna, Nov 29, 2006.

  1. teckna

    teckna Basic Pleskian

    25
    73%
    Joined:
    Nov 17, 2006
    Messages:
    53
    Likes Received:
    0
    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
     
  2. OmegaQuest

    OmegaQuest Guest

    0
     
    I would also like to have this feature Disabled.

    Its pointless for our members
     
  3. Marien

    Marien Guest

    0
     
    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.
     
  4. CruzMark

    CruzMark Basic Pleskian

    24
    23%
    Joined:
    Mar 6, 2006
    Messages:
    84
    Likes Received:
    0
    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.
     
  5. wavedave

    wavedave Guest

    0
     

    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
     
  6. CruzMark

    CruzMark Basic Pleskian

    24
    23%
    Joined:
    Mar 6, 2006
    Messages:
    84
    Likes Received:
    0
    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
     
Loading...