Jump to content

Add Suspended Services to Admin home System Overview


msaunders

Recommended Posts

Just in case anyone wants this handy function back, you can add it to the System Overview table. You can add it as a new row or do what I did and just replace Active Quotes entry as we didn't need this.

 

1) Open system_overview.php from /modules/widgets/

 

2) Enter the following somewhere around line 17 (I put it after the call to $activeservices = $data[0];)

 

$result = full_query("SELECT COUNT(*) FROM tblhosting WHERE domainstatus='Suspended'");

$data = mysql_fetch_array($result);

$suspendedservices = $data[0];

 

3) Locate line 91-92

 

<td class="sysoverviewstat"><div class="sysoverviewbox"><a href="quotes.php?validity=Valid">'.$validquotes.'</a></div></td>

<td class="sysoverviewlabel">'.$_ADMINLANG['stats']['validquotes'].'</a></td>

 

Replace With

 

<td class="sysoverviewstat"><div class="sysoverviewbox"><a href="clientshostinglist.php?status=Suspended">'.$suspendedservices.'</a></div></td>

<td class="sysoverviewlabel">'.$_ADMINLANG['stats']['suspendedservices'].'</a></td>

 

4) If you'd rather paste it in as a new row then just add the following after line 99 and before the closing </table> tag

 

<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>

</tr>

 

That's it , it will show your current suspended services.

Link to comment
Share on other sites

thanks for this

 

there is a slight mistake in your code..

 

 

<td class="sysoverviewstat"><div class="sysoverviewbox"><a href="clientshostinglist.php?status=Suspended">'.$ suspendedservices.'</a></div></td>
<td class="sysoverviewlabel">'.$_ADMINLANG['stats']['suspendedservices'].'</a></td>

 

 

'.$ suspendedservices.' 

--- there is a space here between $ and suspendedservices

 

it should read

 

'.$suspendedservices.'

no space

 

 

thanks for your work

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated