vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Who Downloaded This Attachment (https://vborg.vbsupport.ru/showthread.php?t=103155)

akanevsky 12-16-2005 10:00 PM

Who Downloaded This Attachment
 
I no longer support my hacks. Please feel free to update them and release new versions elsewhere as long as I get the credit for the original modification.

/*=============================================*\
|| Who Downloaded This Attachment
||
|| Author : Anton Kanevsky
|| Works on : vBulletin 3.5.x - 3.8.x
|| Released : Jun 27, 2009
||
|| Time required to install: ~30 seconds
|| Difficulty: easy
\*=============================================*/

DESCRIPTION

Allows users to see detailed information about who has downloaded attachments.

STATISTICS

File Uploads: 1
Products to Install: 1


FEATURES

General:
  • Displays a list of users with information about the number of downloads and last downloaded time.
  • Allows to specify which usergroups can use the feature.

VERSION HISTORY

1.1.0
[F] Fixed a bug in the product xml file.

1.1.0
[+] Officially compatible with 3.5.x - 3.8.x.
[+] Removed all file and template edits.
[+] Added usergroup permission to specify which usergroups can use the feature.
[+] The last downloaded time for each user is now displayed.

1.0.2
[F] Compatibility with 3.5.2's modified attachments.php.

1.0.1
[+] Each user now has a number of downloads displayed next to him/her.

1.0.0
First Release

The installation manual is contained within the attached file.

IF YOU LIKE MY HACK, PLEASE CLICK INSTALL

TyleR 12-17-2005 07:21 PM

hmm..so is this like a more simple version of this hack by Mr Blunt?

i'll check it out in a minute :)

- Tyler

akanevsky 12-17-2005 07:23 PM

Uh.. I didn't know that there was already such hack. But yeah, looks like it. less buff = better :)

JohnBee 12-17-2005 07:23 PM

Nice little addon!

Is it possible to have it display the no. of downloads?
I would like to see a link that says: Downloaded 12 times and when you click or hover on it the list would appear :)

Still... this is a good and useful idea!

TyleR 12-17-2005 07:24 PM

well, installed perfectly, and much more simple than Mr Blunts..

/me clicks install

akanevsky 12-17-2005 07:31 PM

Seems like you missed the button ;)

akanevsky 12-17-2005 07:34 PM

Quote:

Originally Posted by JohnBee
Is it possible to have it display the no. of downloads?

Yes, definitely.

akanevsky 12-17-2005 08:04 PM

Ok, updated. Now the number is displayed.
If you have installed the hack, overwrite the XML and run this query:
[sql]ALTER TABLE attachmentviewslog ADD count INT( 10 ) UNSIGNED NOT NULL DEFAULT '1'[/sql]

TyleR 12-17-2005 09:40 PM

Quote:

Originally Posted by Psionic Vision
Seems like you missed the button ;)

oops :nervous:

[high]* TyleR clicks install and re-checks that he did this time :p[/high]

- Tyler

Rhoads 12-17-2005 10:20 PM

First of all thanks for your hack, were here for quite some time to look up.
Unfortunately I get a error when I refresh the page where the attachment is.

HTML Code:


Warning: mysql_query(): 7 is not a valid MySQL-Link resource in /includes/class_core.php on line 395

Warning: mysql_error(): 7 is not a valid MySQL-Link resource in /includes/class_core.php on line 837

Warning: mysql_errno(): 7 is not a valid MySQL-Link resource in /includes/class_core.php on line 855

There seems to have been a problem with the Forum database.
Please try again by clicking the Refresh button in your web browser.

An E-Mail has been dispatched to our Technical Staff, whom you can also contact if the problem persists.

We apologise for any inconvenience.

Database error in vBulletin 3.5.2:

Invalid SQL:

                        SELECT userid FROM attachmentviewslog
                        WHERE attachmentid = '21'
                        AND userid = '1';

MySQL Error  :
Error Number :
Date        : Sunday, December 18th 2005 @ 01:13:20 AM
Script      : http://www.mydomein/forum/attachment.php?attachmentid=21&d=1134864386
Referrer    : http://www.mydomein/forum/showthread.php?t=45
IP Address  : xx.xxx.xx.xxx
Username    : Xxxxxx
Classname    : vb_database



All times are GMT. The time now is 05:21 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.01283 seconds
  • Memory Usage 1,741KB
  • 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_html_printable
  • (2)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