Products

Solutions

Resources

Partners

Community

About

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Getting StartedGetting StartedModule Development HelpModule Development Help
Previous
 
Next
New Post
2/23/2016 4:46 AM
 
Hey Guys,

I hope this is the right place for asking questions, I'm a complete newbie in terms of module development but I've been working through the TaskManager set of tutorials done by Chris Hammond and finding them quite useful for what they are. I personally am looking to work on a project that aims to provide a module that will expose certain usage information to Users on my site through graphed data. Some examples being simple things like Frequency of logins over a period of time etc. And some more detailed/complex queries such as who's liked/commented on content you've shared on the site recently and how often. Each user should be able to pull there own unique graphs.

Those are just some examples of the top of my head what I'm looking for is some information that will point me in the right direction for such a project or similar projects. As said the data will need to be graphically represented so any javascript library recommendations for such a task would be appreciated.

Thanks,

Kevin

 
New Post
2/24/2016 12:32 PM
 
I don't know of any example modules that you can build off of for this, but you might look at the Reports module. I haven't worked with that module in years, but it used to have the ability to do some graphing and reporting. Might be worth investigating to see if you can configure it as is (without any development) to do what you are thinking here in terms of various reporting.

You likely will need to write the SQL for the module, to pull back the various data (logins, comment history, etc) but that might be the fastest way to get to a working solution for what you need.

Chris

Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
3/1/2016 3:53 AM
 

Hey Chris,

Thanks for the tips, the reports module is on my to view list. I've actually gone back through that task manager tutorial and gotten a good handle on things for getting the data. Thanks for the work on that, very informative. I'll mark this as resolved, should be able find an adequate JS library without issue.

Thanks,

Kevin.

 
New Post
3/1/2016 10:34 AM
 
Good deal, if you have any more questions be sure to post them, if I don't reply to the thread I may have missed it, so you can post a link to it on DNNChat.com and I'll likely see it there.

Chris Hammond
Former DNN Corp Employee, MVP, Core Team Member, Trustee
Christoc.com Software Solutions DotNetNuke Module Development, Upgrades and consulting.
dnnCHAT.com a chat room for DotNetNuke discussions
 
New Post
3/1/2016 7:45 PM
 

Hey I actually have one more question, I've been playing around with Chart.js in my module. It's displaying fine but the data used right now is hardcoded in the javascript, I was wondering if anyone knows how to pass data from example the view.ascx.cs Page_Load into the Javascript in View.ascx. An example of what I have right now below:

View.ascx.cs (Page_Load)

                var avgAge = QueryController.GetAgeAvg(UserId).QueryValue;;

                var numFollowers = QueryController.GetNumberFollowers(UserId).QueryValue;

                var numFriends = QueryController.GetNumberFriends(UserId).QueryValue;

                var numUsers = QueryController.GetNumberUsers().QueryValue;


                txtAgeAvg.Text = avgAge.ToString();

                txtNumberFollowers.Text = numFollowers.ToString();

                txtNumberFriends.Text = numFriends.ToString();

                txtNumberUsers.Text = numUsers.ToString();

View.ascx (Javascript)

<script>

    var relationshipData = {

        labels: ["Users", "Friends", "Followers"],

        datasets: [

            {

                label: 'Over 18 #',

                fillColor: '#382765',

                data: [2500, 1902, 1041]

            },

        {

            label: 'Under 18 #',

            fillColor: '#7BC225',

            data: [3104, 1689, 1318]

        }

        ]

    }

    var relationships = document.getElementById('relationship').getContext('2d');

    new Chart(relationships).Bar(relationshipData);

</script>

Sorry for the mess I don't see an option for inserting code snippets. Anyway I'm basically trying to get those vars in Page_Load (all ints) passed into the data arrays in relationship data javascript instead of using the hardcoded values that are currently there.

Thanks,

Kevin

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Getting StartedGetting StartedModule Development HelpModule Development Help


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out