Jump to content

Financial Graphs


Recommended Posts

Hi

 

Here's a simple addition to your admin homepage which adds financial graphs.

 

Just edit your \admin\templates\v4\homepage.tpl (or wherever your admin homepage template resides)

 

And find:

 

<h3 align="center">Recent Activity</h3>

 

Paste the code below just above this line (or if you know your way around, wherever you want it!) and save it...

 

<!-- START MEDIADEMON FINANCIAL GRAPHS -->
<h3 align="center">Financial Graphs</h3>
<table width="100%" cellspacing="0" cellpadding="0"><tr><td width="49%" valign="top">
<a href="reports.php?graph=graph_monthly_income">
<img src="reports.php?displaygraph=graph_monthly_income&homepage=true" width="500" height="200" border="0"></a>
</td><td width="2%"></td><td width="49%" valign="top">
<a href="reports.php?graph=graph_aging_invoices">
<img src="reports.php?displaygraph=graph_aging_invoices&homepage=true" width="500" height="200" border="0"></a>
</td></tr></table>
<!-- END MEDIADEMON FINANCIAL GRAPHS -->

You can of course change the layout to suit your scheme and change the graphs, just look at the links in the reports section for the graph names.

 

There is no permission checking so all your admins will be able to see this addon so be warned!

 

Hope you find it useful...

Link to comment
Share on other sites

Any chance of a screenshot?

 

Unfortunately no as this would involve publishing financial data!

 

The mod just adds two graphs from the report section to the admin page and scales them down to fit...

 

It's very easy to add in if you want to view it. :)

Link to comment
Share on other sites

Unfortunately no as this would involve publishing financial data!

 

The mod just adds two graphs from the report section to the admin page and scales them down to fit...

 

It's very easy to add in if you want to view it. :)

 

How about a screen shot with blurry numbers?

Link to comment
Share on other sites

Okay, here is a shot of what the graph looks like.

 

reportsphp.jpg

 

It has numbers on the left ($$$) and totals above each bar ($$$). It is similar to the module at the top right of v4 named "A Summary of Completed Orders." Just below your notes area as a small clickable image.

 

 

It's just frustrating when people are smart asses about things. If you are going to do something, do it right! Also it loads slower than crap due to the info it pulls. Therefore mostly useless if you need a snappy interface.

 

yay a screenshot

Edited by mcraedesigns
Link to comment
Share on other sites

I couldn't get it to load at all in 4.0.1 so gave up and uninstalled it. Doesn't mean to say it isn't good but, let's put it this way, WHMCS loads like greased lightning without it installed and like a sick dog with it installed.

Link to comment
Share on other sites

I guess this works better for some people than others depending on the size of your orderbase and the speed of your server. If you try it and it works for you great, you got a free widget you may find as useful as I do on the iPhone where I can see all the info I need on one screen. If not then I'm sorry, try some other solution or contribute to make it better.

 

This is after all a free contribution, trying to give something back to the community.

Link to comment
Share on other sites

  • 2 weeks later...

It still doesn't work.

 

here is the code I have:

 

{php}

$result = select_query("tbladminroles","id",array("id"=>$_SESSION['adminid']));

$data = mysql_fetch_array($result);

$this->assign('roleid', $data['id']);

{/php}

{if $roleid == "13"}

<h3 align="center">Financial Graphs</h3>

<table width="100%" cellspacing="0" cellpadding="0"><tr><td width="49%" valign="top">

<a href="reports.php?graph=graph_monthly_income">

<img src="reports.php?displaygraph=graph_monthly_income&homepage=true" width="500" height="200" border="0"></a>

</td><td width="2%"></td><td width="49%" valign="top">

<a href="reports.php?graph=graph_aging_invoices">

<img src="reports.php?displaygraph=graph_aging_invoices&homepage=true" width="500" height="200" border="0"></a>

</td></tr></table>

{/if}

Link to comment
Share on other sites

Please try to remove the space in $_SE SSION listed in the above code...

 

Also you may try to echo your role id to debug to see if it's what you expect:

 

{php}
$result = select_query("tbladmins","roleid",array("id"=>$_SESSION['adminid']));
$data = mysql_fetch_array($result);
$this->assign('roleid', $data['roleid']);
{/php}
Debug Show RoleID: {$roleid}

Link to comment
Share on other sites

  • 2 months later...
  • 9 months later...

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