Results 1 to 7 of 7

Thread: Suspended Services

  1. #1
    Join Date
    Nov 2009
    Posts
    13

    Default Suspended Services

    In the previouse release Suspended Services was listed on the front page, this feature is not currently available in the current release. Is there any plans to add this or a method that is already built in that will provide this information. I did not see it any where in the demo or I overlooked it.

    Thanks

  2. #2
    Join Date
    Nov 2010
    Location
    Muskegon, MI
    Posts
    55

    Default

    It just needs to be added to a widget. You can add it pretty easily though:
    You'll need to edit system_overview.php, which is found at <whmcs_install>/modules/widgets

    Pull this file up in your favorite editor.
    Around about where you see:

    Code:
    $result = full_query("SELECT COUNT(*) FROM tblhosting WHERE domainstatus='Active'");
    $data = mysql_fetch_array($result);
    $activeservices = $data[0];
    Add this after:
    Code:
    $result= full_query("SELECT COUNT(*) FROM tblhosting WHERE domainstatus='Suspended'");
    $data = mysql_fetch_array($result);
    $suspendedservices = $data[0];
    And right after

    Code:
    <tr>
    <td class="sysoverviewstat"><div class="sysoverviewbox"><a href="supporttickets.php?view=flagged">'.$ticketsflagged.'</a></div></td>
    <td class="sysoverviewlabel">'.$_ADMINLANG['stats']['activeflagged'].'</a></td>
    <td class="sysoverviewstat"><div class="sysoverviewbox"><a href="billableitems.php?status=Uninvoiced">'.$uninvoicedbillableitems.'</a></div></td>
    <td class="sysoverviewlabel">'.$_ADMINLANG['stats']['uninvoicedbillableitems'].'</a></td>
    </tr>
    Add this:

    Code:
    <tr>
    <td class="sysoverviewstat"><div class="sysoverviewbox"><a href="clientshostinglist.php?status=Suspended">'.$suspendedservices.'</a></div></td>
    <td class="sysoverviewlabel">'.$_ADMINLANG['stats']['suspendedservices'].'</a></td>
    <td></td>
    <td></td>
    </tr>
    In the default setup, on the admin homepage, you'll now see a "Suspended Services" line in the "System Overview" widget.

  3. #3
    Join Date
    Dec 2010
    Location
    Cumbernauld, Scotland, UK
    Posts
    731

    Default

    Quote Originally Posted by webcoaster View Post
    In the previouse release Suspended Services was listed on the front page
    You must have activated or setup this option, no such list on my installation
    m8internet.com from Manage My Hosting
    Using WHMCS since 11 December 2011, running v5.0.3 since 27 April 2012

  4. #4
    Join Date
    Jan 2011
    Posts
    298

    Default

    Quote Originally Posted by m8internet View Post
    You must have activated or setup this option, no such list on my installation
    It's there... in the little overview thing on the dashboard m8.
    Sitepearl Networks
    WHMCS Script Installer - WHMCS KB Articles
    Reliable Website Hosting Solutions

  5. #5
    Join Date
    Dec 2010
    Location
    Cumbernauld, Scotland, UK
    Posts
    731

    Default

    Quote Originally Posted by Sitepearl View Post
    It's there... in the little overview thing on the dashboard m8.
    I see that link under Statistics, thought the OP was referring to an actual display and summary like the others below this
    Blimey, yet another reason not to upgrade to v5
    m8internet.com from Manage My Hosting
    Using WHMCS since 11 December 2011, running v5.0.3 since 27 April 2012

  6. #6
    Join Date
    Aug 2006
    Location
    Johannesburg, South Africa
    Posts
    1,025

    Default

    I miss this feature too and simply hate the widgets. Please take it off and go back to the previous way of displaying things

  7. #7

    Default

    It worked for me. Thanks!

    Widgets are a bit complicated :S sucks! I was used to the other much easier!

Similar Threads

  1. Attention Items > Suspended Services
    By Jaggl in forum Customisation & Integration Questions
    Replies: 2
    Last Post: 09-23-12, 09:13 PM