News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Who Downloaded Attachment

Started by digger, June 23, 2017, 02:23:16 PM

Previous topic - Next topic

digger

Link to the mod

This modification adds ability to show who downloaded attachment. The list consists of a nickname, date and IP address.

License: The MIT License (MIT)
Languages: English, Russian
GitHub: https://github.com/realdigger/SMF-Who-Downloaded-Attachment

Features:
* Ability to show who downloaded attachment. The list is limited to 1000 members.
* Group permission for this.


sam666

Installed on SMF 2.0.14 using PHP 7.0.17 and working OK. Very handy mod, thanks digger  :)

keyboard

Hi

I have problems with Users sharing their login info......... I have installed Mod with no problems on a Default template 2.0.14.... The file has been downloaded 4 times by three Users.....

How can I tell which User has downloaded twice ? ( thinking the User has shared his Login with someone else )

Is the IP Address extracted from the Users Name  or is it actually taken from the IP used to download the file ?

Can this mod be altered to show the actual IP used , every time a file has been downloaded ?

Thanks
Ron
Слaва
Украинi

digger

Quote from: keyboard on July 08, 2017, 01:47:54 PM
Hi

I have problems with Users sharing their login info......... I have installed Mod with no problems on a Default template 2.0.14.... The file has been downloaded 4 times by three Users.....

How can I tell which User has downloaded twice ? ( thinking the User has shared his Login with someone else )

Is the IP Address extracted from the Users Name  or is it actually taken from the IP used to download the file ?

Can this mod be altered to show the actual IP used , every time a file has been downloaded ?

Thanks
Ron
Mod save only one last download info for every member. No metter how many times one member download attachment - only last attempt wil be saved.
IP is actually for moment when file was downloaded last time.

keyboard

Please correct me if I am wrong.....

If I download, it will say:
keyboard   Today at 10:07:03 AM    398.248.11.14 ( My actual IP )

If I give my Login to Bill, he will log in under my creds and download, it will say:
keyboard   Today at 12:07:03 AM   201.92.491.336 ( Bills actual IP )


Is this correct ?

Thanks
Ron
Слaва
Украинi

digger

Quote from: keyboard on July 08, 2017, 03:17:17 PM
Please correct me if I am wrong.....

If I download, it will say:
keyboard   Today at 10:07:03 AM    398.248.11.14 ( My actual IP )

If I give my Login to Bill, he will log in under my creds and download, it will say:
keyboard   Today at 12:07:03 AM   201.92.491.336 ( Bills actual IP )

Is this correct ?
Only last download attempt will be logged
keyboard   Today at 12:07:03 AM   201.92.491.336 ( Bills actual IP )

keyboard

Many Thanks digger..... I will really use this mod  :) :) :)
Слaва
Украинi

showngo

Is that information visible to all members or only Admin / mods?

digger


showngo

Quote from: digger on July 25, 2017, 07:27:07 AM
Quote from: showngo on July 25, 2017, 07:07:08 AM
Is that information visible to all members or only Admin / mods?

Quote from: digger on June 23, 2017, 02:23:16 PM
* Group permission for this.


Thanks       Hard to read on my phone (with my eyes)    Anyway to make that selectable for what attachments?  (Ex .jpg's)

You ROCK.  this is going to be very useful

showngo

I added to my post after your FAST reply so I am not sure if this was seen , "Anyway to make that selectable for what attachments?  (Ex .jpg's)"

PS I love it right now,  Im finding some data hogs on my site.

digger

Quote from: showngo on July 26, 2017, 03:36:26 PM
I added to my post after your FAST reply so I am not sure if this was seen , "Anyway to make that selectable for what attachments?  (Ex .jpg's)"

PS I love it right now,  Im finding some data hogs on my site.
It works for all attachment types except images.

showngo

Mine stopped working after installing another package.    No matter if I uninstall that one, if I try to uninstall this one I get the uninstall errors listed


   1.   Delete Tree   ./Themes/default/languages/WhoDownloaded   
2.   Delete Tree   ./Themes/default/scripts/WhoDownloadedAttachment.js   
3.   Delete Tree   ./Themes/default/css/WhoDownloadedAttachment.css   
4.   Delete File   ./Sources/Mod-WhoDownloadedAttachment.php   
*   5.   Execute Modification   ./Sources/Display.php   Test failed
   1.   Replace   ./Sources/Display.php   Test failed
*   6.   Execute Modification   ./Themes/default/Display.template.php   Test failed
   1.   Replace   ./Themes/default/Display.template.php   Test failed
7.   Execute Code   hooks.php   


Can I uninstall that without messing up the DB and reinstall the Modification?         I have no function of this now.


-Rock Lee-

Quote from: showngo on November 21, 2017, 11:03:09 AM
Mine stopped working after installing another package.    No matter if I uninstall that one, if I try to uninstall this one I get the uninstall errors listed


   1.   Delete Tree   ./Themes/default/languages/WhoDownloaded   
2.   Delete Tree   ./Themes/default/scripts/WhoDownloadedAttachment.js   
3.   Delete Tree   ./Themes/default/css/WhoDownloadedAttachment.css   
4.   Delete File   ./Sources/Mod-WhoDownloadedAttachment.php   
*   5.   Execute Modification   ./Sources/Display.php   Test failed
   1.   Replace   ./Sources/Display.php   Test failed
*   6.   Execute Modification   ./Themes/default/Display.template.php   Test failed
   1.   Replace   ./Themes/default/Display.template.php   Test failed
7.   Execute Code   hooks.php   


Can I uninstall that without messing up the DB and reinstall the Modification?         I have no function of this now.
@showngo that marks you that the error is in can not find the line automatically, what you have to do is see the parse of the mod to make the changes manually.


Regards!

PD: This can help you Manual Installation forgive me if I have not explained myself well my English is not very good.


Also as I walk in it I leave the translation to Latin Spanish next to the utf-8 :)


Regards!
¡Regresando como cual Fenix! ~ Bomber Code
Ayudas - Aportes - Tutoriales - Y mucho mas!!!

digger

Quote from: showngo on November 21, 2017, 11:03:09 AM
Mine stopped working after installing another package.    No matter if I uninstall that one, if I try to uninstall this one I get the uninstall errors listed
Which modification conflict with this one?

Quote from: Rock Lee on November 21, 2017, 12:33:25 PM
Also as I walk in it I leave the translation to Latin Spanish next to the utf-8 :)
Will add this. Thanks!

showngo

The last update for Simple Portal dropped my DB.  Im back up but now get errors with the Uninstall (The SP installed stopped this from working)
Not sure because at the same time I updated to php 7.0.1 from 5.6

diegolyanky


Only for those who wanted to know:

Installed in SMF 2.0.15 under PHP 7.2.11 and works perfectly well.

The good:
The MOD is very good, it adds the functionality of being able to see who has downloaded a certain file.

It would be interesting to add in the profile of each user the power to see "what files the user has downloaded"

The rest, VERY GOOD 10 !!!
SMF ... SimpleMachines ... Simple, but complete if you want it ;)

shadav

I'm getting a strange error in my logs

/index.php?pretty;board=staff-chat;topic=list-of-modifications.msg24
8: Trying to access array offset on value of type bool
File: /Themes/default/languages/WhoDownloaded/WhoDownloaded.english-utf8.php (main sub template - eval?)
Line: 1359
#0 /Sources/Load.php(2393): template_main()
#1 /Sources/Subs.php(3015): loadSubTemplate(string)
#2 /index.php(176): obExit(NULL, boolean, boolean)
#3 {main}


smf 2.0.18 php 7.4

Advertisement: