Jump to content

WHMCS 5.0 Style Bar Widgets for Monthly Completed Orders and Monthly Income


MikeDVB

Recommended Posts

I missed the old bar-style widgets from 5.0 when we moved to 5.1 so I originally adapted the 5.0 modules directly to 5.1. My adapted widgets quit working on 5.2 so I created new widgets from the ground up. I won't pretend I wrote the code myself, I simply took the "New Customers" report and the "Annual Income" reports and converted them into Widget format. Anybody with a basic understanding of PHP could likely do this in a few minutes but this saves you the time.

 

The source isn't encoded, you're welcome to modify/improve/redistribute. If you do make an upgrade/change I would appreciate you posting it in this thread so your changes can possibly be combined into the original.

 

Here's a screen-shot (click for a larger image):

overview-widgets-whmcs-small.png

 

It can be downloaded from here: http://www.mddhosting.com/files/bar_widgets_5214.tar.gz

 

Installation of the module is the same as any other set of widgets - the .tar.gz contains "annual_orders_bars.php" and "annual_overview_bars.php" which you would simply place in your /whmcs/modules/widgets folder. Once you've done this you can activate the widgets for whoever you wish via WHMS -> Setup -> Administrator Roles (widget options are at the very bottom of each role).

 

This is only tested with 5.2.1, however, if you try it on 5.1.X do post and let me know if it works for you if you don't mind.

Edited by Infopro
Updated link to download by request
Link to comment
Share on other sites

  • 4 weeks later...
  • 1 month later...

Hi mike, looking into this furter, google visualisations do not support this as the bars are dynamically created according to the number of bars needed and the width of the area they are contained into, There is however a way to do this with jquery so i will make a modification and get it up later on with screen shots. Its on my devbox so i will have to fake some data to show the bars but i can do it.

Link to comment
Share on other sites

Hi mike, looking into this furter, google visualisations do not support this as the bars are dynamically created according to the number of bars needed and the width of the area they are contained into, There is however a way to do this with jquery so i will make a modification and get it up later on with screen shots. Its on my devbox so i will have to fake some data to show the bars but i can do it.

 

 

I am not an expert in this field, so I am not not going to modify anything. If you make any modification, please share it. Thanks MikeDVB and CDJ Hosting

Link to comment
Share on other sites

  • 5 months later...
These appear to have broken under the 5.2.14 update, now display "a[mc] is not a function" in the box.

The default ones function fine (boy do I miss these bar style ones though)

 

Will stare at the code later, hopefully someone may be able to assist prior to that though!!

 

In chrome: Object 2012 has no method 'split'

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