Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

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

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsDocumentsDocumentsTracking DownloadsTracking Downloads
Previous
 
Next
New Post
5/15/2007 4:29 PM
 

I'm looking to add some functionality to the module for my own use.  Basically my company wants to know when a client downloads one of our trials, so we'd like the module to email the user information.  Only registered users can see our downloads so that wont be a problem.

I assume I can enter the code for this into the same spot as where it tracks clicks normally, and use that very same data.  Where is this in the code though?  Which file?

If there is a better solution to this I'd also love to hear it, thanks in advance for any help! :)

 

 
New Post
5/15/2007 7:23 PM
 

The documents module uses a control from the core - the UrlTrackingControl.  So you don't want to be hunting around the document module source code, the code you need to check is in Library/controls/urltrackingcontrol.vb.

In a nutshell, the code is:

Dim strLogUrl as string = "whatever your logging url is"
Dim objUrls As New UrlController
Dim objUrlTracking As UrlTrackingInfo = objUrls.GetUrlTracking(PortalId, strLogUrl, ModuleID)
Dim strNumberOfClicks as string = objUrlTracking.Clicks.ToString
                       


 
New Post
5/17/2007 2:34 PM
 

Since it uses a control from the core this isn't going to be as easy as I thought...
We have client websites as well so I can't go around modifying controls to do this and that.

Any ideas to get around this?  I guess I'll have to track my own information and email it out right after the documents module calls that control. =/

 

Also if there is any module that does this already that would be great, so any help is appreciated.

 
New Post
5/17/2007 4:25 PM
 

I don't have my DNN installation here...but I would look into the code snippet that Anthony posted.

Once you have the objUrlTracking object, you should see what information is available there.  If you have the link setup to track who downloaded it, it will have the information in there.

It should be very easy!


-Mitchel Sellers
Microsoft MVP, ASPInsider, DNN MVP
CEO/Director of Development - IowaComputerGurus Inc.
LinkedIn Profile

Visit mitchelsellers.com for my mostly DNN Blog and support forum.

Visit IowaComputerGurus.com for free DNN Modules, DNN Performance Tips, DNN Consulting Quotes, and DNN Technical Support Services
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsDocumentsDocumentsTracking DownloadsTracking Downloads


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