So, an update:
Only download.cfm has the following code:
<cfinvoke component="#application.packagepath#.farcry.stats"
method="logEntry">
<cfinvokeargument name="pageId" value="#attributes.objectid#"/>
<cfinvokeargument name="navId" value="#attributes.objectid#"/>
<cfinvokeargument name="remoteIP" value="#cgi.REMOTE_ADDR#"/>
<cfinvokeargument name="sessionId" value="#trim(session.sessionId)#"/
>
<cftry>
<cfinvokeargument name="browser"
value="#trim(cgi.HTTP_USER_AGENT)#"/
>
<cfcatch><cfinvokeargument name="browser" value="Unknown"/></
cfcatch>
</cftry>
<!--- check is a user is logged in --->
<cfif application.security.isLoggedIn()>
<cfinvokeargument name="userid"
value="#session.dmSec.authentication.userlogin#"/>
<cfelse>
<cfinvokeargument name="userid" value="Anonymous"/>
</cfif>
</cfinvoke>
Which is what invokes the stat object. So it makes perfect sense that
I was just seeing stats about downloads. Now to change this, I would
like to add similar code for general views as well. I have several
options:
1) extend navajo.display to gather the necessary variables and invoke
the logEntry function
2) Write my own index.cfm which gathers this info right after
navajo.display
I would prefer option #2, but navajo/display does a lot of the
objectid / navid finding for me. Maybe I can just get that tag to
return a variable with those two id's ready, and that'd be a small
change I'd have to write?
Any thoughts?
Thanks,
Tomek
On Nov 18, 10:53 pm, "Tomek Kott" <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I know that stats are deprecated in FC5, but they are a useful way to keep
> all the statistical information in one place (i.e. on the webtop). However,
> I am confused as to what option I need to set to get stat data on dmHTML and
> dmNavigation types. I currently have the boolean for stats checked under
> general config and bAudit="true" for both dmHTML and dmNavigation. Is there
> anything else I need to set to get it to work?
>
> It just appears that nothing except some custom types I have, along with
> dmFile, are getting written to the stats table. It has been staying at a
> steady number for a while, and jumps only when a special file type is
> requested.
>
> Any ideas on what is going on? Maybe its another 'duh should've thought of
> that', but I'm stumped.
>
> Thanks
>
> Tomek
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---