PDA

View Full Version : Who Downloaded [HTL Compatible Version Also Included]


Rein Masamuri
01-19-2004, 10:00 PM
Who Downloaded
Version: 1.1
vB-version: 3.0.0 Release Candidate 3
Developer: Concept by TWTCommish, Coded by nguyenvu27, Recoded and Edited b
Install-difficulty: Easy
File-edits: 1
Template-edits: 2

New files for this Hack:
whodownloaded.php
images/attach/whodownloaded.gif

Files modified for this Hack:
attachment.php

New templates for this Hack:
whodownloads
whodownloadsbit
whodownloads_error

Templates modified for this Hack:
headinclude
postbit_attachment

New DB columns for this Hack:
downloads

Re-released for vBulletin 3 with permission from TWTcommish (https://vborg.vbsupport.ru/member.php?u=422)

This hack shows you who has downloaded a particular attached file.

This hack was originally released by nguyenvu27 but was taken down because he didn't get TWTcommish's permission and it was fraught with bugs and errors.

Well I fixed it, made it an image instead of a button, included an image, made it cross browser compatible, and got TWTcommish's permission.
Enjoy ^_^

HTL Version: See Attachments

Dark Shogun
01-20-2004, 05:29 AM
Thanks very much. I had this on vB2 and it was great. :)

Dark Shogun

Rein Masamuri
01-20-2004, 05:39 AM
UPDATED!
Fixed some hash problems, works fine now.

dang it, can someone move this to vb3? XO
[edit]
Thanks for moving it!

*arie
01-20-2004, 11:59 AM
yay! thanks.

FleaBag
01-20-2004, 05:00 PM
Nice work, will definitely come in handy.

MindTrix
01-20-2004, 05:18 PM
Nice one, some screenshots too the first post would be nice aswell please :) If you want this moved to vB3 aswell, PM an admin incase they don't notice

Boofo
01-21-2004, 12:04 AM
Can this be made so only Admins and Mods can see it or is it like that already?

Rein Masamuri
01-21-2004, 07:23 AM
Can this be made so only Admins and Mods can see it or is it like that already?
Ok, this took me a while to do because of the weird "yes and no" phptoHTML in the <if statements of vB3
This took alot of trick coding (ok, for me it was trick coding, not for all you regular coders out there :p)

If you want Mods and Admins to see it only, simply replace the postbit_attachments template with:<tr>
<td><img class="inlineimg" src="$stylevar[imgdir_attach]/$attachment[attachmentextension].gif" alt="<phrase 1="$attachment[attachmentextension]">$vbphrase[file_type_x]</phrase>" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td><a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]" target="_blank">$attachment[filename]</a> ($attachment[filesize], <phrase 1="$attachment[counter]">$vbphrase[x_views]</phrase>)</td>
<td><if condition="$show['modcplink']"><a href="whodownloaded.php?s=$session[sessionurl]&attachmentid=$attachment[attachmentid]" onclick="NewWindow(this.href,'name','240','300','yes');retu rn false"><img border="0" src="$stylevar[imagesfolder]/attach/whodownloaded.gif"></a></if></td></tr>

If you want admins only, replace modcplink with admincplink

Boofo
01-21-2004, 08:09 AM
Thank you, sir. I will install it and let you know how it goes. ;)

gmarik
01-21-2004, 05:23 PM
Does it connects guest download IP's?

MGM
01-21-2004, 09:59 PM
Nice one! I always wanted the one for vB2 but a certain hack I had interfered with it ;)

* MGM clicks Install

MGM out

Rein Masamuri
01-21-2004, 11:55 PM
gmarik, you can view someones IP address in their posts or in the admin CP. I'm not quite sure how you'd want it added to the hack :\

mitomcua
01-23-2004, 10:38 AM
Does it work with vb3 rc3 ?

Rein Masamuri
01-24-2004, 11:31 AM
Yes it does

Rein Masamuri
01-26-2004, 11:27 AM
Updated!
Who Downloaded is now HTL (https://vborg.vbsupport.ru/showthread.php?t=60735) compatible!

eXtremeTim
01-26-2004, 04:35 PM
Added htl version in to htl :) Good job.

nguyenvu27
01-28-2004, 06:31 AM
Nice job ! i'm very happy . Rein Masamuri Thank bro ..:D

Rein Masamuri
01-28-2004, 09:35 AM
And thank you for the original coding.
I wouldn't have been able to do it by myself ^_^

esfron
03-05-2004, 01:25 PM
Does it work with RC4 ?

Rein Masamuri
03-05-2004, 01:28 PM
Does it work with RC4 ?
Yup, works fine in RC4 though the postbit template may be slightly different.

ChuanSE
03-07-2004, 06:07 PM
still no screenshot?

Akex
03-08-2004, 09:05 PM
Nice work, i'll install it :)

goldminer
03-09-2004, 12:55 AM
This is awesome Thank you so much I was looking at the one made for vb2 and really wanted to put it on vb3.4 and being new didn't have a clue this has eased my mind and helped a great deal Thank you so much.

Rein Masamuri
03-09-2004, 03:37 AM
not a problem ^_^

Gizmo
03-09-2004, 04:18 AM
A real good job, this hack must be useful. Thanx for it! :)

Beermonster
03-09-2004, 12:11 PM
I'm using RC4 and get nothing when I load the whodownloaded.php it just says "No downloads found." :( any ideas?

Rein Masamuri
03-10-2004, 05:50 AM
Are you calling it from the postbit or are you going to whodownloaded.php directly? It requires that you call it from the postbit so the attachment ID matches.

Beermonster
03-10-2004, 07:23 AM
Are you calling it from the postbit or are you going to whodownloaded.php directly? It requires that you call it from the postbit so the attachment ID matches.

Ah!! I'm calling it from the whodownloaded.php directly, a bit of a noob question but how do I call it from postbit?

TIA

Rein Masamuri
03-10-2004, 07:26 AM
It should be put in your postbit_attachment template.

Flashinblue
03-23-2004, 01:07 PM
Excellent, thank you. I only replaced whodownloaded.gif with something that suited more the looks of my forum

Rein Masamuri
03-24-2004, 03:49 AM
heh, it was expected ^_^
I originally did this for someone and decided to release it here and didn't think to change the image.

PWolfrum
04-13-2004, 12:37 PM
Hello,

is it possible to modify the "Who Downloaded" Hack so that it writes the username of the downloader, the filename and date of the download to a seperate file ?

We need that function in our forum at the local university, in order to monitor the downloads of files, that are made accessible through the forum (mainly lecture materials and recorded lectures), for statistical purposes.

Thank you very much in advance.

With best regards.
Patrique Wolfrum

Rein Masamuri
04-13-2004, 12:41 PM
That'd require more PHP than I've learned so far but I give permission for another hacker to hack my hack haha ^_^'

PWolfrum
04-13-2004, 03:50 PM
Hello,

@Rein Masamuri:

Thank you for your quick reply.

As a vB3-newbie, I have the following question:

Wouldn't it be possible, to insert an addition to the attachment-function of vB3, which would, if an attachment is downloaded, write the needed data to a textfile with comma as delimiters (and with a newline at the end of each line) ?

Thank you very much in advance.

With best regards.
Patrique Wolfrum

PWolfrum
04-15-2004, 09:25 AM
Hello,

i spoke with my professor and he meant, that for him it would be sufficient, if the modification could "capture" the username and the download-date. Writing the data to a separate textfile wouldn't be that important.

Could this be done with your "Who downloaded" modification ?

Thank you very much in advance.

With best regards.
Patrique Wolfrum

vbIce
04-17-2004, 10:33 PM
What happened to the HTL file? I get error message when I go to the link.

Can someone please let me know if the HTL is still available or not?

Thank You

Choclo
04-18-2004, 12:14 PM
thanks for the hack!! installed!

Experience
04-20-2004, 03:18 PM
is this compatible with vBulletin 3 Gold ? and can u modified, who download the file in wich day, time ? thanks

JaNa
04-22-2004, 03:23 PM
Worx Perfect,

Ah HTL always makes it easy :D

welo
04-25-2004, 03:58 PM
Installed on 3.0.1. Works fine.

paulomt1
05-21-2004, 05:53 PM
@Rein Masamuri:

How I can add the date and time of download?

Thanks for your help

Intex
06-01-2004, 12:09 PM
I'm interesting in using the hack, but a screenshot would be nice to see how this works as I have a rather unusual style. Thx.

Intex
06-11-2004, 09:34 PM
Installed and works well.

Deska
07-28-2004, 10:45 AM
Install this hack looks fine (no error) but it still show me No Download although 25 times downloaded, :(
Btw, I use vb 3.0.3.

Any updates maybe?

Rein Masamuri
07-29-2004, 03:40 AM
Install this hack looks fine (no error) but it still show me No Download although 25 times downloaded, :(
Btw, I use vb 3.0.3.

Any updates maybe?
Thats a vbulletin thing. In the options I believe it offers instant thread updates or hourly. something like that.

Deska
07-29-2004, 09:31 AM
Thats a vbulletin thing. In the options I believe it offers instant thread updates or hourly. something like that.

I guess not.
Although 2 day pass, still show like that, so I guess not vbulletin options about thread updates.

One thing that I mean about no download is in who downloaded pop up windows.
Any idea?

gvtexas
08-20-2004, 02:56 PM
I too am having trouble with this. Installation went fine. Popup shows nothing, nada, blank. After testing with several accounts, nothing is populating the download column in the mysql table.

Any ideas how to resolve this? V3.0.3

Cheers,
Gary

Edited, 9/12/04 - I got this to work finally. Turns out it was a small error on my part in copying text into a template. Going back over my steps found the problem, and it works fine now.

welo
09-12-2004, 11:33 PM
Same deal here. Has something to do with what is being replaced in attachment.php. For instance line 124 of the latest attachment.php says:

WHERE attachmentid = $attachmentinfo[attachmentid]

While the hack instructions tell you to replace it with this:

WHERE attachmentid = $attachmentid

Cuases the whole system to break, and it cannot be fixed just by swapping it out with that new query condition (above). I already tried.

Isaiah33
09-24-2004, 06:39 AM
still dosnt work for me it installs good but says no download it...s

Hades-1
10-29-2004, 12:48 PM
Ever since i installed this hack i noticed that the thread shows the filename then the size followed by a cooma with nothing, even if its been viewed

IE:

blah.mp3 2.35MB, {Who downloaded gif}

Any ideas on this?

LEAD_WEIGHT
04-07-2005, 03:26 AM
Who Downloaded [HTL Compatible Version Also Included]

Please update this hack please to vb 3.x.x

yahoooh
08-20-2005, 04:30 AM
any news?

da_judge
02-01-2006, 08:32 PM
Yes a 3.5.x version is greatly needed lol... i have tried to play about to no availe... cheers