PDA

View Full Version : Miscellaneous Hacks - Download Log (for Attachments) by BOP5 (VB 4.x)


BirdOPrey5
12-03-2012, 11:00 PM
Brought To You By BirdOPrey5 / Qapla.com (http://www.qapla.com/mods/)

This is the FREE version of my Download Log mod. Check out the GOLD VERSION (http://www.qapla.com/mods/showthread.php/835-Download-Log-for-Attachments-VB3-VB4) for more features.

This mod is compatible with VB 3.8.x and VB 4.x.x.

Current Version 1.1.3
1.0 - Initial Release
1.1.1 - Fixed bug
1.1.3 - Critical Bug Fix

Live Demo: Attachment Download Log - JUOT - Joe's Ultimate Off Topic (http://www.juot.net/forums/bop5_downloads.php)
Notes: Demo is on VB 3.8 forum. For demo I have enabled guest viewing of the logs, this is an option that can be turned off.

The purpose of this mod is to allow you to track what attachments get downloaded- All attachment downloads can be logged although by default the mod is configured not to track image attachments. Thumbnails are always ignored.

On each attachment download the following are logged:

Username of Downloader
IP Address of Downloader
Filename of Attachment
File size of Attachment
Post # Attachment resides in
Uploader of Attachment
Date/Time of Download


Note- Attachments made outside of posts are still logged but post # is displayed as "N/A."

The FREE Version has the following features:


Complete Attachment Download Log
Sort Log by Username of Downloader, Username of Uploader, and Date/Time downloaded
Automatically add link to Download Log to "Quick Links" only for users with permission to view the log
Give permission to view the log based on Usergroups (primary or secondary)
Optional scheduled task to delete old entries from the log
Fully phrased for easy translation
Prevent logging of duplicate downloads


The GOLD Version (http://www.qapla.com/mods/showthread.php/835-Download-Log-for-Attachments-VB3-VB4) has the following additional features:


Sort Log by Filename, File Size, Post #
Clicking on attachment "Views" in a post will link user to the Log to see complete list of who downloaded that file
Specify custom date and time formatting
Give permission to view Download Log to specific users(by user id)


Settings Screenshot:
http://www.qapla.com/mods/ss/dlog_settings_gold.jpg

------------------------------------------------------

Please "Mark as Installed" if you use this. :)
Donations always appreciated. :up:
Nominate MOTM if you LOVE it! ;)

BirdOPrey5
12-04-2012, 08:45 PM
Reserved.

mitch84
12-05-2012, 05:36 PM
Hi, I installed it but where appears the link to reach the log file? thx

BirdOPrey5
12-05-2012, 06:13 PM
It should be under Quick Links -> Attachment Download Log.

I will upload a screenshot to the first post.

mitch84
12-05-2012, 06:41 PM
I see nothing, something is wrong in my settings?

BirdOPrey5
12-05-2012, 06:48 PM
What VB version are you running? If 4.2.0 do you see it listed in Navigation Manager?

BirdOPrey5
12-05-2012, 07:08 PM
My bad- I uploaded version 1a, will fix the problem. :o

mitch84
12-05-2012, 07:29 PM
hehehe, now it's ok, work fine! thx

mitch84
12-06-2012, 03:04 PM
for the same downloaded file, the member name appears 16 times! is this normal?

BirdOPrey5
12-06-2012, 07:07 PM
At the same time? I occasionally see the same name appear twice, back to back- it is when a user gets impatient and clicks on the file multiple times before the download starts, but 16 is kind of extreme.

Dealing with duplicate clicks is something I was going to deal with in the next version.

mitch84
12-06-2012, 09:52 PM
2 download & three pages:D

BirdOPrey5
12-07-2012, 02:10 AM
I'm more concerned why the date is showing up as the PHP code instead of the actual date- did you do any editing to the file?

mitch84
12-07-2012, 09:35 PM
uninstalled, je reviendrais quand cela marchera correctement

BirdOPrey5
12-10-2012, 02:36 PM
Updated to version 1.1.0 - Added a new option in settings to check for and disable logging of duplicate entries. A duplicate is when the same user tries to download the same file within 1 minute.

This new option is enabled by default.

To upgrade from 1.0 - Simply import the new product XML file, allow overwrite set to yes. Uploading the file is not necessary for this upgrade.

BirdOPrey5
02-09-2013, 09:42 PM
Updated to version 1.1.1. Fixes bug that allowed guests to view the download log even if you didn't give them permission.

dizzynation
02-09-2013, 10:45 PM
Great Mod. My "QuickLinks" becomes unclickable though.

Maybe ill just keep the link private, because it works when type in the source

Is it possible to show the past downloads before adding this product, say like a week ago?

BirdOPrey5
02-09-2013, 11:09 PM
No not possible because they aren't being recorded before the mod is installed.

What version of VB are you running that Quick Links becomes unclickable?

dizzynation
02-10-2013, 12:23 AM
I am running 4.2 PL3

I have private forums for PRO members, can this record those logs as well?

BirdOPrey5
02-12-2013, 01:21 PM
This will record all attachment downloads regardless of forum permissions.

BirdOPrey5
04-29-2013, 12:04 PM
Critical Bug Fix released- everyone should upgrade to version 1.1.3 ASAP.

dizzynation
11-12-2013, 03:53 AM
Getting a "Dont have permission Error" with Admin Account.

BirdOPrey5
11-12-2013, 10:05 AM
Are you sure you have permission for Admins to use it?

In the Download Log settings make sure "Administrators" is checked on "Usergroups That Can View Download Log" setting. This needs to be checked, Admins don't have permission without the check mark.

Do non-admins have permissions to view the log? Have you tried?

dizzynation
11-13-2013, 12:10 AM
Ok so this is weird, so I tick the box "Administrators" and click Save. Then once the page refreshes the admin box is unticked.

BirdOPrey5
11-13-2013, 12:36 PM
Hmmm, If you go to Admin CP -> Plugins & Products -> Plugin Manager, scroll down to the plugins for Download Log.

Make sure you have a plugin called "Usergroups Setup" and that is is enabled.

Matush
02-17-2014, 12:57 AM
Is there a chance to integrate this modification along with Ultimate Media Gallery?

BirdOPrey5
02-18-2014, 09:26 AM
Not likely- I can't even find such a mod for VB4 here on vbulletin.org- I see a version for VB 3.8.

Matush
02-23-2014, 01:13 AM
Too bad, it seems to me that the principle of the UMG for VB3.8 is the same as the version of VB4. But I'm not a coder and do not know.
Thank you for your response