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?


All times are GMT. The time now is 12:32 AM.

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.01039 seconds
  • Memory Usage 1,739KB
  • 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
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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