We can easily detect whether the browser supports the Image object with the following simple check:. Wel for Microsoft Internet Explorer 3, we can utilise floating frames.
We can load an initial floating frame into the document containing just a blank image, and then, using JavaScript, we can change the contents of the floating frame so that it has the image returned by a CGI Script. Unfortunately, Netscape Navigator 2 does not support the Image object or floating frames, so we can't change an image to an Image Counter on demand, but, we can at least make sure it doesn't cause any problems. We can bring together all the techniques described above to produce a utility that counts the number of times a form button is pressed and therefore the number of times a file download is requested.
First the JavaScript code to load either the hidden blank image, or the hidden floating frame, and display the form download button:. Related items Kick some booty with invisible Flash! Any link to or advocacy of virus, spyware, malware, or phishing sites. Any other inappropriate content or behavior as defined by the Terms of Use or Code of Conduct.
Any image, link, or discussion related to child pornography, child nudity, or other child abuse or exploitation. I installed the update, and the issue is now gone. Was this reply helpful? Yes No. Sorry this didn't help. Thanks for your feedback. Choose where you want to search below Search Search the Community.
Ashraf Zaman Ashraf Zaman 41 2 2 bronze badges. Max Cantor Max Cantor 8, 6 6 gold badges 43 43 silver badges 59 59 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Podcast Who is building clouds for the independent developer?
Exploding turkeys and how not to thaw your frozen bird: Top turkey questions Featured on Meta. Now live: A fully responsive profile. Simple Download Monitor. Installation Go to the Add New plugins screen in your WordPress admin area Click the upload tab Browse for the plugin file simple-download-monitor. FAQ Can this plugin be used to offer free downloads to the users? What file formats can I upload?
You can pretty much upload all common file types. Can I use external file URLs? Yes, you can use both local paths and external URLs. Can I password protect a downloadable file? Can I show the file download counts to my visitors?
Can I show all downloads from a category? Can I show an ajax file tree browser using this plugin? Can I show a number of latest downloads to my usrs? Can I track downloads from unique IP address only? Another fine plugin for the community from Tips and Tricks HQ team.
Been using another plugin for few years and it was finally abandoned. Thankfully I found this one. More features and backed by a great publisher. Thanks for sharing with the community. I needed a way to publish individual secure file download urls from wordpress hosted content to registered users and track the download counts. Whilst this is of course wordpress page based and those pages turn up in a site search, they can be secured "The admin of this site has disabled this download item page" which is good enough and PHP dispatch option hides the download url.
I am super fussy about design and user experience, have yet to find something I dont like. Shame the [donate] button doesnt work, as this does deserve some actual cash. Good job devs! It's easy to handle and has all important features! I rarely make the effort to rate plug-ins but when I find one which is simple to set up and delivers more than expected I make an exception.
The explanatory video is really useful and I found it simple to set up the downloads. Stats are accurate and well-presented. Interested in development? Changelog 3. The JavaScript code for the stats menu has been moved to a separate file. Added nonce check for view and reset log. WPCS modifications and code reformatting. Sanitization of variables. Added a new tab showing top downloads top 25 downloads.
The Export sub-menu now allows exporting of logs data between selected date range. Date validation function added. Addressed an issue whereby the single post of the download can show a warning if the download button color is not set in the settings. WordPress 5. Updated the Spanish language translation file. It is no longer needed in current WordPress version. Updated the addon auto-updater library. This option can be used to delete log entries older than 3 months for example.
Fixed a minor JavaScript issue. Instead it will just log the full user agent data. Better handling of the stats admin menu interface in mobile devices. Addon updates are now handled by the main plugin. Added the Norwegian language translation files. Regenerated the translation POT file. Added a new filter hook. Added a new feature to enable redirection of users back to the download page when they click on the login link and log into the site.
Can be useful if you only want to allow downloading of the item from where you embed it. Added a new compact template fancy3. This can be useful in displaying a list of downloads in a compact form maybe in a sidebar widget. Thanks to Garrett for fixing this. WordPress 5 compatibility.
0コメント