The Forum has been Updated
The code has been upgraded to the latest .NET core version. Please check instructions in the Community Announcements about migrating your account.
Anybody have some code or an idea of how to track files downloaded from the Forum (i.e. File Library Mod, or any attachments to posts, etc.) and record it to the database.
I would like to be able to track who downloaded what file, when, from where (post, file library, etc.) and then be able to look at their profile (as the admin) and see what files they downloaded (filename, when, post (if it is an attachement), or if it came from the file library.) I tried coding this myself but made a total mess of it. I am a still learning and not a very good programmer.
Any help or examples of how to now when a file was downloaded would be appreciated. <
I would like to be able to track who downloaded what file, when, from where (post, file library, etc.) and then be able to look at their profile (as the admin) and see what files they downloaded (filename, when, post (if it is an attachement), or if it came from the file library.) I tried coding this myself but made a total mess of it. I am a still learning and not a very good programmer.
Any help or examples of how to now when a file was downloaded would be appreciated. <
Postet den
I think there is still a File Library MOD up on www.snitzbitz.com ... but I don't remember what it does/doesn't do. If nothing else, it could be a good starting point.<
Postet den
I have the library mod installed but I don't see where it stores who downloaded what file. So I was looking to add that code so I can track who downloaded what file and when.<
Postet den
there is a mod called who viewed this or somthign liek that...basically what it does is when someone views a topic it gets logged who has read the topic...maybe you could modify they 2 mods to do what you want it to do.<
© 1999-2010 MaD2ko0l
Postet den
Have a link to it? Is it the 'Who's On' MOD ? I have that one installed. Maybe it will point me in the right direction.<
Postet den
i think it was called "Who Viewed This" by Kal Korp?? (Kal Corp/VASMOD) or somthing like that
but i think that there have been similar mods in the past that you coudl have a look for<
but i think that there have been similar mods in the past that you coudl have a look for<
© 1999-2010 MaD2ko0l
Postet den
Thanks MaD2ko0l I found the mod. It looks like something I could modify to work as a download tracker.
Only question I have, how do you tell if a file has been downloaded or not?<
Only question I have, how do you tell if a file has been downloaded or not?<
Postet den
something like this, you woudl ahve to modify it so it logs the user who downlaoded it
hope this helps<
Code:
<%
GetIt = Request.QueryString("GET")
mySQL = "UPDATE tblFiles SET Hits = Hits + 1 WHERE Image='" & GetIt & "';"
Conn.Execute(mySQL)
Conn.Close
Response.redirect "Uploads/" & GetIt
%>
hope this helps<
© 1999-2010 MaD2ko0l
Email Member
Message Member
Post Moderation
Filopplasting
If you're having problems uploading, try choosing a smaller image.
Forhåndsvis post
Send Topic
Loading...