Blog Stats

This post is more than 2 years old.

Attention BlogCFC users: I have created a simple stats page. You can see it here. This stats page was created mainly for my own curiosity, but can be downloaded here if you want to install it on your blog. To add security, you add this code block to only allow logged in folks to run the file:

<cfif not isUserInRole("admin")>
   <cfabort>
</cfif>

I've left my stats open since, well, I just don't care. Let me stress that this file is NOT a part of the "real" BlogCFC. The SQL statements in there will only work for SQL Server, and the code was written very quickly, but I wanted to share it with other BlogCFC users.

Raymond Camden's Picture

About Raymond Camden

Raymond is a senior developer evangelist for Adobe. He focuses on document services, JavaScript, and enterprise cat demos. If you like this article, please consider visiting my Amazon Wishlist or donating via PayPal to show your support. You can even buy me a coffee!

Lafayette, LA https://www.raymondcamden.com

Archived Comments

Comment 1 by Roland Collins posted on 11/20/2004 at 6:08 AM

The tables overlay the calendar and right-column on IE6!

Comment 2 by Raymond Camden posted on 11/22/2004 at 5:39 PM

Don't use IE. :) If you want to use it on your blog, you can simply remove the layout tags for now.

Comment 3 by John Farrar posted on 11/29/2004 at 6:43 AM

The blog.ini file is not always protected on shared hosting... could you chance the code to put the ini file in a .cfm file for protection?

Comment 4 by Raymond Camden posted on 11/29/2004 at 3:58 PM

I could, but I don't tend to make changes unless it is a problem for -most- folks. You could use your web server to change the security on the file. You could also simply move blog.ini, and modify blog.cfc's init method to find the file in the right location. Or just rename blog.ini to youcantguessthis.ini.

Comment 5 by O?uz Demirkap? posted on 1/7/2005 at 2:36 AM

I have just converted stats.cfm as MySQL compatible version and send it to Raymond. If you need you can ask to him.

Comment 6 by Scott posted on 1/25/2005 at 11:26 PM

Any Chnce that the stats package will be available again?

Many thanks.

/s

Comment 7 by Raymond Camden posted on 1/26/2005 at 12:45 AM

Ah, I didn't copy it over. (Both the zip and the CFM.) Both are uploaded now. They will also be in the next release.