PDA

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


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 - bug fix
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. Demo is of GOLD version.

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


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. :)
Please Nominate MOTM if you like it. ;)
Donations Always Appreciated. :up:

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

BirdOPrey5
12-10-2012, 02:38 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:46 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.

SuperTaz
03-26-2013, 04:29 AM
When clicking on the link I get this error:


Deprecated: Assigning the return value of new by reference is deprecated in /home/public_html/vbtest/forums/includes/init.php on line 55

Deprecated: Assigning the return value of new by reference is deprecated in /home/public_html/vbtest/forums/includes/init.php on line 107

Deprecated: Assigning the return value of new by reference is deprecated in /home/public_html/vbtest/forums/includes/init.php on line 111

Deprecated: Assigning the return value of new by reference is deprecated in /home/public_html/vbtest/forums/includes/init.php on line 119

Deprecated: Assigning the return value of new by reference is deprecated in /home/public_html/vbtest/forums/includes/init.php on line 130

Deprecated: Assigning the return value of new by reference is deprecated in /home/public_html/vbtest/forums/includes/init.php on line 134

Deprecated: Assigning the return value of new by reference is deprecated in /home/public_html/vbtest/forums/includes/init.php on line 142

Deprecated: Assigning the return value of new by reference is deprecated in /home/public_html/vbtest/forums/includes/init.php on line 211

Deprecated: Assigning the return value of new by reference is deprecated in /home/public_html/vbtest/forums/includes/init.php on line 389

Deprecated: Assigning the return value of new by reference is deprecated in /home/public_html/vbtest/forums/includes/class_core.php on line 2552


Any thoughts?

BirdOPrey5
04-09-2013, 12:49 PM
That's not from this mod, that is because PHP was upgraded on your server.

The fix for all VB 3.x versions is to edit the init.php and class_core.php files in a text editor and go to each line number listed in the error, and remove the & that is next to the = in each line.

Re-save, re-upload the files. Will be fixed.

b65ran
04-29-2013, 01:41 AM
whenever there is single quote['] in the attachment file name, users are not able to download and thet are getting a database error-Invalid SQL: INSERT INTO bop_downloadlog

Please help

BirdOPrey5
04-29-2013, 12:00 PM
Sorry about that. Database errors are critical errors. This has been fixed in the latest release, 1.1.3.

b65ran
04-29-2013, 04:51 PM
Sorry about that. Database errors are critical errors. This has been fixed in the latest release, 1.1.3.
Thank you :)

LinksFreak
05-08-2014, 08:51 AM
Hi BidOprey5
Nice Mod Brother My Website Torrent website .Today i have installed This mod But Attachment Logs Not shown ,I don't no Exactly What is the problem ,I have Installed as per your instructions in Note Pad Then What to do Please Reply me

https://vborg.vbsupport.ru/external/2014/05/32.jpg

regards
linksfreak

BirdOPrey5
05-08-2014, 09:19 AM
Has anyone downloaded an attachment yet? It can't start logging until it has been installed. It will log future downloads.

If you are sure there have been downloads then I'd imagine some other modification is interfering with the plugin that records the download.

Please go to your Admin CP -> Plugin & Products -> Plugin Manager and tell me any other modifications you have that have a plugin on the attachment_display hook.

(If you have a lot of mods easiest way to check is to hit CTRL+F in your browser, this brings up the "Find on Page" prompt- paste in "attachment_display" (without quotes) and see how many it finds.

LinksFreak
05-08-2014, 10:44 AM
hello there i found it 2 attachment_display
one is my torrent tracker in XBT
second one in download log attachment




https://vborg.vbsupport.ru/external/2014/05/30.jpg

https://vborg.vbsupport.ru/external/2014/05/31.jpg

BirdOPrey5
05-08-2014, 06:56 PM
In the Download Log Record plugin, edit it, change execution order from 5 to 0, save- see if that fixes it.

LinksFreak
05-09-2014, 10:22 AM
Yes Edited 5 to 0 But still the problem is same

https://vborg.vbsupport.ru/external/2014/05/29.jpg

BirdOPrey5
05-09-2014, 10:55 AM
Temporarily disable your "XBT" mod and see if it starts working (download an attachment). If it does it will give me somewhere to start to figure out the real problem.

Just to be clear this only tracks files that have been uploaded to your forum as an attachment- it can't track links to downloads on 3rd party sites.

LinksFreak
05-09-2014, 11:53 AM
Yes disable XBT Mod Still The problem is same and We Have installed XBT Tracker all files in own server

BirdOPrey5
05-09-2014, 11:54 PM
If you want to PM the URL and an Admin login I'll take a look. No idea what the issue is then,,,

LinksFreak
05-11-2014, 12:48 PM
Details Send to PM