vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Who Downloaded [HTL Compatible Version Also Included] (https://vborg.vbsupport.ru/showthread.php?t=60500)

Rein Masamuri 01-19-2004 10:00 PM

Who Downloaded [HTL Compatible Version Also Included]
 
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

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

Quote:

Originally Posted by Boofo
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:
Code:

<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');return 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 ;)

[high]* MGM clicks Install
[/high]

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 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

Quote:

Originally Posted by esfron
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

Quote:

Originally Posted by Rein Masamuri
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.


All times are GMT. The time now is 04:46 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01284 seconds
  • Memory Usage 1,791KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete