Alternative Download Viewer
Posted: 14 Sep 2012, 15:46
Hi guys,
I wrote a script that lets you see downloads a bit easier than it is now. I uploaded to pastebin. It's two files, the connection.php file is just your code to connect to your server. The userDownloads.php file is where it goes through the three tables to grab the data to display. Most of the time when connecting to your server you need to use 'localhost' as the server name, for some reason I have to use 'db' not sure if it's a joomla thing or what...
If a user registered for your site, downloaded something, and deleted their account, they will appear as 'Old User', if you uploaded a file that was downloaded, then you deleted it, it will appear as 'Old File'.
Anyhow, any questions feel free to ask and I'll try to help if I can.
connection.php:
http://pastebin.com/ecPq50ha
userDownloads.php
http://pastebin.com/kfA6JqvH
I wrote a script that lets you see downloads a bit easier than it is now. I uploaded to pastebin. It's two files, the connection.php file is just your code to connect to your server. The userDownloads.php file is where it goes through the three tables to grab the data to display. Most of the time when connecting to your server you need to use 'localhost' as the server name, for some reason I have to use 'db' not sure if it's a joomla thing or what...
If a user registered for your site, downloaded something, and deleted their account, they will appear as 'Old User', if you uploaded a file that was downloaded, then you deleted it, it will appear as 'Old File'.
Anyhow, any questions feel free to ask and I'll try to help if I can.
connection.php:
http://pastebin.com/ecPq50ha
userDownloads.php
http://pastebin.com/kfA6JqvH