BlogCFC Subscribers and Stats

I was asked today, is there a way to see who is subscribed to your blog? The short answer is yes, if you don't mind editing your stats file. I modified my own copy, outside of what you download, so I could see my subscribers, but only if I was logged in. To add the same mod to your code, simply find stats.cfm, and add this:

<cfif isUserInRole("admin")> <cfquery name="getpeople" datasource="#dsn#"> select * from tblblogsubscribers </cfquery> <cfdump var="#getpeople#"> </cfif>

It isn't pretty, but works great.

Raymond Camden's Picture

About Raymond Camden

Raymond is a developer advocate. He focuses on JavaScript, serverless 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