|New topic Reply||Page: 1|
04/07/08 7:46 PM
I just stumbled across Mango. And I like it! I just reskinned one of the out-of-the-box skins and got up and running in a few hours. http://www.HawtFusion.com/
I was SOOO excited. But then I realized. Does it not keep statistics? I'm scouring the admin looking for any kind of numeric tally besides comments and can't find anything. Is that right? If not, are there any plans to implement them?
04/08/08 12:32 AM
I created a table with the columns visible in the following insert statement and threw the code into the onRequestStart method of Application.cfc until I have time to revisit it.
<!--- Insert serve statistics --->
<cfif cgi.remote_addr neq '127.0.0.1' >
<cfquery name="insertStatistic" datasource="Blogs" >
insert into hawtfusion_statistics
(ip, file, time, referrer)
('#cgi.remote_addr#', '#cgi.script_name##cgi.path_info##cgi.query_string#', '#dateFormat(now(), "YYYY-MM-DD")# #timeFormat(now(), "HH:MM:SS")#', '#cgi.http_referer#')
<!--- Do nothing --->
Can you see a quick, hacky solution like this causing any problems with your application infrastructure? I haven't had a chance to really take a look at the codebase yet other than the minimal necessary to do my skinning.
04/08/08 2:18 PM
Your blog looks good!
Let me reply to your questions:
Does it not keep statistics?
Directly, no. But if you are looking for visitor stats, I would recommend you to enable the Google Analytics plugin included in the download. You will need to supply your account number in the settings. Google analytics will show you much more than a list of visitors.
If not, are there any plans to implement them?
I don't plan to implement visitor stats. Though it can be implemented by a plugin. Having said that, I do plan to implement other stats such as counting the times a certain post has been viewed. That will be an addition to the plugin added to release 1.0 (posted today) that shows number of posts, pages and comments in the Dashboard.
Can you see a quick, hacky solution like this causing any problems with your application infrastructure?
As long as you know what you are doing, you should be fine. The problem is that hacking the core files (though Application.cfc is not really a core file) will make it harder for you to upgrade in the future. So I would recommend against making such changes. Long live the plugins!