Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Who Downloaded This Attachment - for Gold Details »
Who Downloaded This Attachment - for Gold
Mod Version: 1.00, by Mr Blunt (Member) Mr Blunt is offline
Developer Last Online: Sep 2006 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.0.0 Rating: (0 vote - 0 average) Installs: 12
Released: 05 Apr 2004 Last Update: Never Downloads: 3
Not Supported  

// **********************************************
// **********************************************
// Hack to track Who Downloaded attachments
// Old vb2 hack modified to vbulletin 3.0 Gold
// Credit to TWTCommish for the original vb2 hack
// http://www.vbulletin.org/forum/showthread.php?t=36900
// **********************************************
// **********************************************
4 new templates
2 modified templates
1 modified php file
1 new php file

This hack allows admins, supermods, and mods to see who downloads each file. If you want to allow other groups, just add/subtract them from whodownloaded.php on the top line as desired.

Although I rewrote and tested this myself, and it works like a charm now, I'm not offering support for this. I'm just a Joe Average. This is an old old hack. I just had to change some words like "gettemplate" to "fetch_template" and "dooutput" to "print_output" and one instance of "post" changed to "attachment". Also had to modify table structures and of course figure out where to put everything. I'm fairly certain that this is up-to-snuff but don't take my word for it.

It doesn't track IP's or how many times a user may have downloaded. It just brings up a popup window with the usernames that have downloaded this atachment. Who knows, maybe someone else will build upon this.

Forgive me if I posted this in the wrong place or if it shouldn't be here at all.
Mods, feel free to do what you wish with this.
Just trying to give a little back to those who have taught me.


// **********************************************
// create a new template - whodownloads
// **********************************************

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


// **********************************************
// **********************************************
// create a new template - whodownloadsbit
// **********************************************

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


// **********************************************
// **********************************************
// create a new template - whodownloads_error
// **********************************************

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


// **********************************************
// **********************************************
// create a new template - whodownloads_error_nop
// **********************************************

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


// **********************************************
// **********************************************
// Find this in template - headinclude
// **********************************************

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

// **********************************************
// Change it to this
// **********************************************

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


// **********************************************
// **********************************************
// Find this in template - postbit_attachment
// **********************************************

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

// **********************************************
// Change it to this
// **********************************************

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


// **********************************************
// **********************************************
// create a new php file - whodownloaded.php
// place it in the main forum (upload) directory
// (same directory that has attachment.php)
// **********************************************

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


// **********************************************
// **********************************************
// Find this in attachment.php
// **********************************************

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

// **********************************************
// Change it to this
// **********************************************

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


// **********************************************
// **********************************************
// Run this SQL Query from Admincp
// **********************************************

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

If you had this installed previously, like for vb2, then don't rerun the query.
The query didn't change so I'D SUSPECT the old and new data is compatible.

And make sure you have completely removed the old vb2 hack beforehand or I suspect this would create a conflict.

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Who Downloaded This Attachment akanevsky vBulletin 3.5 Add-ons 107 04 Jul 2011 15:06
Most Downloaded Attachment afterlab vBulletin 2.x Full Releases 19 14 Sep 2003 15:27

  #16  
Old 06 Apr 2004, 05:14
Link14716's Avatar
Link14716 Link14716 is offline
 
Join Date: Jun 2002
Real name: Matthew Gordon
It's already been done for vB3...
Reply With Quote
  #17  
Old 06 Apr 2004, 19:11
Mr Blunt Mr Blunt is offline
 
Join Date: Jan 2004
Originally Posted by Link14716
It's already been done for vB3...
May I ask where??
I pulled all kinds of searches here over the last few months.
I'd love to see a more advanced version if there is one floating around.
Reply With Quote
  #18  
Old 26 Apr 2004, 18:49
JaNa's Avatar
JaNa JaNa is offline
 
Join Date: Apr 2004
I wouldn't call this a "Major Addition" But it's useful.

/me Clicks install
Reply With Quote
  #19  
Old 02 May 2004, 01:27
XJeepguy XJeepguy is offline
 
Join Date: Aug 2003
Hi

Seems all members can see this , where do u delete the usergroup that you do NOT want to see this ? Im looking around the .php file but wanna make sure I do this correct .


Thanks



XJ
Reply With Quote
  #20  
Old 06 Feb 2005, 19:28
Rambo Rambo is offline
 
Join Date: Oct 2003
Hrm..

Anyone manage to get this working on Version 3.0.6? o_o
Reply With Quote
  #21  
Old 07 Feb 2005, 20:43
steadicamop's Avatar
steadicamop steadicamop is offline
 
Join Date: Jul 2004
Real name: Jason Williams
I managed to get it working under 3.0.5, although I removed it as it didn't seem to be 100% functional, the link for the file also appeared twice, so I just removed a small piece of code from the bottom of it.

It's a shame as it's a handy hack to have installed.
Reply With Quote
  #22  
Old 23 Feb 2005, 04:22
wi11ie1950 wi11ie1950 is offline
 
Join Date: Sep 2004
It all works graet for me as it is without any fidling

Thanks Mr Blunt
Reply With Quote
  #23  
Old 29 Apr 2005, 23:33
trulylowcarb's Avatar
trulylowcarb trulylowcarb is offline
 
Join Date: Apr 2004
Real name: Karen
Thanks! Working fine in vb3.07, was easy and fast to do, and I am tickled about it. Hard to gulp HARD before running that query but it looked harmless enough. I get a null error sometimes elsewhere on the forum, if only I understood what it was I did, LOL.

I do have the file name and download link repeated, after the Who Downloaded link and that seems unnecessary, so I am going to try to see if I can delete that part only -
Thanks Mr. Blunt!!

Last edited by trulylowcarb; 29 Apr 2005 at 23:36.
Reply With Quote
  #24  
Old 24 Jun 2005, 01:10
Mr Blunt Mr Blunt is offline
 
Join Date: Jan 2004
Link14716 was absolutely right about mine being a 3.0.x duplicate.
I later found the other one which was definately released before mine.
My apologies ... I wish I had found it sooner.
Would have saved me a few days of work, lol.

http://www.vbulletin.org/forum/showthread.php?t=60500

So just in case someone gets an itch to port this into 3.5.0, you don't need MY permission. Instead you might take a look at the other thread and seek that author's permission (and/or -- TWTCommish's -- the real author's permission).

At first glance of 3.5.0 I think porting this might be over my head, but I might try soon if no one else does.
Reply With Quote
  #25  
Old 30 Jun 2005, 18:29
Mr Blunt Mr Blunt is offline
 
Join Date: Jan 2004
OK, so scratch last post....
I ported this to vb3.5.0 and it appears to be working great!!


http://www.vbulletin.org/forum/showthread.php?t=93167

Last edited by Mr Blunt; 29 Aug 2005 at 14:45.
Reply With Quote
  #26  
Old 16 Sep 2005, 02:18
TORON TORON is offline
 
Join Date: Jul 2002
I'd like to see how many times a user has downloaded a file to catch users sharing accounts.

Does this show how many times a user downloaded?
Does this work with 3.0.9 ?
Reply With Quote
  #27  
Old 16 Sep 2005, 02:35
Mr Blunt Mr Blunt is offline
 
Join Date: Jan 2004
1) Yes
2) No

Check out the screenshots in the other thread.

Saves date, time, filename, fileid, userid, username, ipaddress, and alt_ip.
All this for every download.
None get overwritten, ever.

My latest version for vb350 ALSO IMPORTS all the data automatically from this old vb30x hack if you had it installed.


Honestly, I see no reason why anyone should stick with 3.0.x
3.5.0 friggin rocks!!
It's in it's final stages if you've been keeping tabs of it.


Not trying to be a jerk ... And please don't take it as me being a jerk because really I'm not .... But I think the ONLY way I would rewrite the 3.0.x version is if someone paid me money to do it .... in which case YES I WOULD because I am currently one broke mofo.
Reply With Quote
  #28  
Old 19 Nov 2005, 16:49
LTW LTW is offline
 
Join Date: Jun 2005
Originally Posted by Mr Blunt
My latest version for vb350 ALSO IMPORTS all the data automatically from this old vb30x hack if you had it installed.
Can i get a link to the 3.5 version please?

Can't seem to find it ...

Thanks

LTW
Reply With Quote
  #29  
Old 19 Nov 2005, 16:59
LTW LTW is offline
 
Join Date: Jun 2005
Originally Posted by LTW
Can i get a link to the 3.5 version please?

Can't seem to find it ...

Thanks

LTW
Nevermind ... found it ... http://www.vbulletin.org/forum/showthread.php?t=93167
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 18:42.

Layout Options | Width: Wide Color: