mediademon Posted June 3, 2009 Share Posted June 3, 2009 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... 0 Quote Link to comment Share on other sites More sharing options...
Exoware Posted June 4, 2009 Share Posted June 4, 2009 Any chance of a screenshot? 0 Quote Link to comment Share on other sites More sharing options...
mediademon Posted June 5, 2009 Author Share Posted June 5, 2009 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. 0 Quote Link to comment Share on other sites More sharing options...
mcraedesigns Posted June 5, 2009 Share Posted June 5, 2009 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? 0 Quote Link to comment Share on other sites More sharing options...
mediademon Posted June 5, 2009 Author Share Posted June 5, 2009 Lol - how about you pm me your blurry graphs and i'll mock them up into a screenshot for you.... 0 Quote Link to comment Share on other sites More sharing options...
solokron Posted June 5, 2009 Share Posted June 5, 2009 Hah! No kidding. Lol - how about you pm me your blurry graphs and i'll mock them up into a screenshot for you.... 0 Quote Link to comment Share on other sites More sharing options...
redrat Posted June 5, 2009 Share Posted June 5, 2009 I tried it quickly but it takes forever to load so I removed it. 0 Quote Link to comment Share on other sites More sharing options...
mcraedesigns Posted June 6, 2009 Share Posted June 6, 2009 (edited) Okay, here is a shot of what the graph looks like. 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 June 6, 2009 by mcraedesigns 0 Quote Link to comment Share on other sites More sharing options...
hightekhosting Posted June 7, 2009 Share Posted June 7, 2009 Works well, thanks for your contribution 0 Quote Link to comment Share on other sites More sharing options...
merlinpa1969 Posted June 7, 2009 Share Posted June 7, 2009 worked like a champ for us loaded just fine in 3.8 havnt tried it in 4 yet 0 Quote Link to comment Share on other sites More sharing options...
redrat Posted June 7, 2009 Share Posted June 7, 2009 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. 0 Quote Link to comment Share on other sites More sharing options...
mediademon Posted June 9, 2009 Author Share Posted June 9, 2009 It's just frustrating when people are smart asses about things. Thanks for your contribution... 0 Quote Link to comment Share on other sites More sharing options...
djpete Posted June 9, 2009 Share Posted June 9, 2009 I just put a new link on shortcuts sidepanel which goes straight to Monthly Income Graph. Perfect 0 Quote Link to comment Share on other sites More sharing options...
mediademon Posted June 9, 2009 Author Share Posted June 9, 2009 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. 0 Quote Link to comment Share on other sites More sharing options...
VicToMeyeZR Posted June 10, 2009 Share Posted June 10, 2009 If you already use the paypal balance mod with only FULL admin access, you can place this in front of the code {if $roleid == "1"} <----------CODE----------> {/if} 0 Quote Link to comment Share on other sites More sharing options...
neobug103 Posted June 19, 2009 Share Posted June 19, 2009 Unfortunately not all of us wish to so blatantly share what the company financial situation is to our employees so this is one addon I can't use. 0 Quote Link to comment Share on other sites More sharing options...
mediademon Posted June 19, 2009 Author Share Posted June 19, 2009 Unfortunately not all of us wish to so blatantly share what the company financial situation is to our employees so this is one addon I can't use. As mentioned previously: {if $roleid == "1"} <-- CODE --> {/if} 0 Quote Link to comment Share on other sites More sharing options...
neobug103 Posted June 19, 2009 Share Posted June 19, 2009 nope, not working for me. I checked to see what my role id was and it was 13, so I changed it to 13 and doesn't show up, it only shows when I remove the if code. 0 Quote Link to comment Share on other sites More sharing options...
mediademon Posted June 19, 2009 Author Share Posted June 19, 2009 Try putting this before the if{roleid=XX) {php} $result = select_query("tbladminroles","id",array("id"=>$_SESSION['adminid'])); $data = mysql_fetch_array($result); $this->assign('roleid', $data['id']); {/php} 0 Quote Link to comment Share on other sites More sharing options...
neobug103 Posted June 20, 2009 Share Posted June 20, 2009 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} 0 Quote Link to comment Share on other sites More sharing options...
mediademon Posted June 23, 2009 Author Share Posted June 23, 2009 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} 0 Quote Link to comment Share on other sites More sharing options...
neobug103 Posted June 23, 2009 Share Posted June 23, 2009 Removing the session is what made it work. Thanks. 0 Quote Link to comment Share on other sites More sharing options...
mediademon Posted August 28, 2009 Author Share Posted August 28, 2009 No problem... always glad to help! 0 Quote Link to comment Share on other sites More sharing options...
Dedigeeks-Sean Posted August 30, 2009 Share Posted August 30, 2009 Great Work, I might just keep this one out of view though 0 Quote Link to comment Share on other sites More sharing options...
primozb Posted June 30, 2010 Share Posted June 30, 2010 Can anyone help me with graphs. I see them like missing picture. They just stop working. Thanks 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.