ModernCount is a PHP download counter. You can use it to track the number of times a link has been clicked or the number of times a file has been downloaded. ModernCount can also be used to hide affiliate links.
The script uses a SQL database. It comes with an admin panel where you can view how many times a download has been accessed. You can also easily add, edit or remove downloads using the panel. ModernCount can also display the current count for a download on any web page.
- Password protect downloads
- Can be used to track links aswell
- Count unique visitors to avoid multiple counts from same user
- Supports displaying of ads before user is redirected to download
- Full admin panel
- Display download counts to users
- Sort and search downloads using DataTables
- Works well on mobile devices due to a responsive layout
- Ignore counts when admin is logged in
- Beautiful notifications system thanks to Bootstrap Notify
- Create a new database using your web hosts control panel (for instructions on how to do this please contact your web host)
- Download and unzip ModernCount-xxxx.zip
- Upload the ModernCount folder to your server via FTP or your hosts control panel
- Open up http://yoursite.com/ModernCount/installer in your browser and enter your database/user details
- Delete the "installer" folder from your server
- Login to the admin panel using the username and password you set during the install process
- Add your downloads
- ModernCount should now be set up
The main script is called like this: /get.php?id=mydownload1
Replace ID with the ID name/number of your URL, for example: http://yoursite.com/ModernCount/get.php?id=mydownload1
So instead of linking to http://yoursite.com/some/directory/mydownload1.zip, link to http://yoursite.com/ModernCount/get.php?id=mydownload1
To find this URL select the download and click the "Show Tracking Link" button whilst on the admin page
This will log the count of the download and redirect the user to the file or web page
This script can also be called via $_POST just set the name of your form to "id" and the value to the ID you wish to download
To show the download count for an ID, call http://yoursite.com/ModernCount/display.php?id=mydownload1. This could be done by linking directly to display.php, using an iframe or by using a PHP include
Examples
<?php
require_once("ModernCount/config.php");
$id = "download1";
$count = file_get_contents("" . PATH_TO_SCRIPT . "/display.php?id=$id");
echo $count;
?>
<iframe src="ModernCount/display.php?id=download1" width="80" height="25" frameBorder="0" scrolling="no"></iframe>
- Before performing an update please make sure you backup your database
- Download your config.php file (in the ModernCount folder) via FTP or your hosts control panel
- Delete the ModernCount folder off your server
- Download the latest version of ModernCount from here
- Unzip the file
- Upload the unzipped ModernCount folder to your server via FTP or your hosts control panel
- Upload your config.php file into the ModernCount folder
- Open up http://yoursite.com/ModernCount/installer/upgrade.php in your browser and the upgrade process will start
- You should now have the latest version of ModernCount
N.B: The upgrade will only upgrade from a ModernCount version starting of 4.0, you can't upgrade from 3.1 or lower. The redeem your data, you can export the data in the "Data" table and import it again into the "Data" table of your ModernCount 4 installation.