Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

PortalWebHosting
  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
SteadyRain
DataSprings - Great Ideas. Always Flowing.
R2integrated - formerly bi4ce
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Announcements M...  HttpHandler LinkClick.aspx
Previous Previous
 
Next Next
New Post 7/30/2007 1:50 PM
User is offline anonymous
0 posts
Unranked


HttpHandler LinkClick.aspx 

This module only tracks file links.  Should I write my own HttpHandler to track clicks for urls, pages, and so forth?

Thanks

 
New Post 7/30/2007 10:27 PM
User is offline Hooligannes
1599 posts
www.nesinteractivos.com
5th Ranked






Re: HttpHandler LinkClick.aspx 

Actually it can track URLs, Files, Page and User links and this is set for each individual announcement.


Do you know the truth when you hear it?
The Dúnadan Raptor
Check My Blog for DNN advice and more
 
New Post 8/3/2007 4:48 PM
User is offline anonymous
0 posts
Unranked


Re: HttpHandler LinkClick.aspx 

In this section (lines 88-99 of UrlController.vb) of code:

 

Dim objUrlTracking As UrlTrackingInfo = GetUrlTracking(PortalID, Url, ModuleId)
If Not objUrlTracking Is Nothing Then
   If objUrlTracking.TrackClicks Then
      DataProvider.Instance().UpdateUrlTrackingStats(PortalID, Url, ModuleId)
      If objUrlTracking.LogActivity Then
         If UserID = -1 Then
            UserID = UserController.GetCurrentUserInfo.UserID
         End If
         DataProvider.Instance().AddUrlLog(objUrlTracking.UrlTrackingID, UserID)
       End If
   End If
End If

objUrlTracking always comes back null

 

 
New Post 8/8/2007 9:03 AM
User is offline anonymous
0 posts
Unranked


Re: HttpHandler LinkClick.aspx 

Can you please fix this?  Here's my httphandler:

 

 

public void ProcessRequest(HttpContext context)PortalSettings _portalSettings = PortalController.GetCurrentPortalSettings();// get TabId

 

 

{

TabId =

}

 

Int32 TabId = -1;if (context.Request.QueryString["tabid"] != null )Int32.Parse(context.Request.QueryString["tabid"]);// get ModuleId

 

 

{

ModuleId =

}

 

Int32 ModuleId = -1;if (context.Request.QueryString["mid"] != null )Int32.Parse(context.Request.QueryString["mid"]);// get the URL

 

 

 

 

 

{

URL =

}

 

{

URL =

URL2 = URL;

}

 

{

URL = context.Request.QueryString[

URL2 = URL;

 

{

URL =

string URL2 = string.Empty;string URL = string.Empty;bool blnClientCache = true;bool blnForceDownload = false;if (context.Request.QueryString["fileticket"] != null )"FileID=" + UrlUtils.DecryptParameter(context.Request.QueryString["fileticket"]);if (context.Request.QueryString["userticket"] != null )"UserId=" + UrlUtils.DecryptParameter(context.Request.QueryString["userticket"]);if (context.Request.QueryString["link"] != null )"link"];if ( URL.ToLower().StartsWith("fileid="))string.Empty; // restrict direct access by FileID

}

}

 

{

 

 

{

URL = DotNetNuke.Common.

}

 

{

 

if ( URL != string.Empty )TabType UrlType = DotNetNuke.Common.Globals.GetURLType(URL);if (UrlType != TabType.File)Globals.LinkClick(URL, TabId, ModuleId, false);if (UrlType == TabType.File && URL.ToLower().StartsWith("fileid=") == false)// to handle legacy scenarios before the introduction of the FileServerHandler

 

URL =

}

 

FileController objFiles = new FileController();"FileID=" + objFiles.ConvertFilePathToFileId(URL, _portalSettings.PortalId);// get optional parameters

 

{

blnClientCache =

}

 

{

blnForceDownload =

}

 

if (context.Request.QueryString["clientcache"] != null)Boolean.Parse(context.Request.QueryString["clientcache"]);if (context.Request.QueryString["forcedownload"] != null || context.Request.QueryString["contenttype"] != null)Boolean.Parse(context.Request.QueryString["forcedownload"]);// update clicks

 

 

{

objUrls.UpdateUrlTracking(_portalSettings.PortalId, URL2, ModuleId, -1);

}

 

UrlController objUrls = new UrlController();if (URL2 != String.Empty)else

{

objUrls.UpdateUrlTracking(_portalSettings.PortalId, URL, ModuleId, -1);

}

 

// clear the current response

context.Response.Clear();

 

{

 

 

switch (UrlType)case TabType.File:// serve the file

 

{

 

{

context.Response.Write(DotNetNuke.Services.Localization.

}

}

 

if (TabId == Null.NullInteger)if (false == FileSystemUtils.DownloadFile(_portalSettings.PortalId, Int32.Parse(UrlUtils.GetParameterValue(URL)), blnClientCache, blnForceDownload))Localization.GetString("FilePermission.Error"));else

{

 

{

context.Response.Write(DotNetNuke.Services.Localization.

}

}

 

 

 

if (false == FileSystemUtils.DownloadFile(_portalSettings, Int32.Parse(UrlUtils.GetParameterValue(URL)), blnClientCache, blnForceDownload))Localization.GetString("FilePermission.Error"));break;case TabType.Url:// prevent phishing by verifying that URL exists in URLs table for Portal

 

{

 

if (objUrls.GetUrl(_portalSettings.PortalId, URL) != null)// redirect to URL

context.Response.Redirect(URL,

}

 

 

 

true);break;default:// redirect to URL

context.Response.Redirect(URL,

 

}

}

}

true);break;

{

 

 

 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Announcements M...  HttpHandler LinkClick.aspx
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


TronixSoft
Hosting for local businesses that want more from their websites.
www.TronixSoft.com
The Forerunner Network
The Forerunner Network consists of a group of Dynamic Website & Interactive Membership Portal hosting services that are managed by Forerunner Communications. Our services span a wide range of markets and enable individuals, organizations and businesses to build and manage dynamic, interactive portals and websites.
The Forerunner Network
ZLDNN.COM
We provide commercial DotNetNuke modules.
www.zldnn.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP