The purpose of this documentation is to inform and help you with anything related to CrazyBeavers Hitcounter.
Sections: Main - Installation and Syntax - What's new - FAQ - Contact
Requirements for CrazyBeavers Hitcounter
- Webhost supporting ASP (Microsoft IIS or ChiliSoft! ASP/Sun ONE Active Server Pages).
- Webhost supporting MS Access databases or a mySQL database.
Installation Instructions for CrazyBeavers Hitcounter
- Unzip the zipfile on your local computer.
- Open cbcounter.asp in any text editor and look at the top of the file. Follow the instructions and edit the necessary settings.
- Upload the files to your webserver.
- Browse to the the script with the "initsql" param. Example: "http://www.mysite.com/cbcounter.asp?initsql". This will create the cb_counter and cb_counter_online tables in your database.
- Include cbcounter.asp into all pages that you want to count the hits on. Open the pages and add this to the top: <!--#include file="cbcounter.asp"-->. This is also needed for pages that you want to show stats on.
- Browse to "http://www.mysite.com/cbcounter.asp" and look at the stats over your visitors or read on below on how to show stats on other pages.
- That should be it. If you are having problems feel free to contact me!
Installation Instructions for CrazyBeavers Hitcounter - Current visitor count - Advanced
- Complete the steps in the first part of the installation instructions.
- Open global.asa in any text editor and look at the top of the file. Follow the instructions and edit the necessary settings.
- Upload the global.asa the root of your webserver.
- If an error occurs in the Sesison_OnEnd part of global.asa the error message is stored in Application("error") for those who want to examine it. This isn't needed for script functionallity.
- That should be it. If you are having problems feel free to contact me!
Shortstats functions - Advanced
- These functions are avaible on any page that has cbcounter.asp included.
- CounterUnique() - Shows the amount of unique visitors to your site
- CounterTotal() - Shows the amount of pageviews on your site
- CounterPage() - Shows the amount of pageviews on the current page
- CounterUser() - Shows the amount of pageviews by the current user
- CounterReferer() - Shows the amount of visitors that arrived from the same url as the current one.
- CounterToday() - Shows the amount of pageviews today
- CounterUniqueToday() - Shows the amount of unique visitors today
- CounterPageToday() - Shows the amount of pageviews on the current page today
- CounterPageTotal() - Shows the total amount of pageviews on the current page
- CounterOnline() - Shows the amount of visitors online right now
MigrateMySQL2Access.asp and MigrateAccess2MySQL.asp - Even more advanced
- These two script was just something I used to move date between the two database during my testing. Is still usefull if someone need to move from access to mysql or vice versa. I'm not explaning them here, open them in notepad if you are curious.