Version: 1.1.1, by akanevsky
Developer Last Online: Feb 2016
Category: Statistics Modifications -
Version: 3.8.x
Rating:
Released: 06-26-2009
Last Update: 06-26-2009
Installs: 148
DB Changes Uses Plugins Auto-Templates
Additional Files Translations
No support by the author.
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.
Fair enough, didnt know that - why not just put "*" more obvious then.
I don't think that was allowed in 3.5.x, and I want to keep my hacks backwards-compatible when possible.
Quote:
Originally Posted by Paul M
Strange tho - why are you running the database install/update code everytime ?
Making a sequential installation with new steps added on top of the first one using the vBulletin framework for doing such is confusing and therefore prone to errors. So I just install new tables on the "if not exists" condition (which does not add too much server load given that a hack is only installed once in a very long time), and then add "on top" modifications every time myself by using is_newer_version(), which I believe is the same thing that vBulletin uses to determine which piece of installation code to execute. So I'm just doing the same thing a little differently than what's designated by vBulletin framework.
No error now, but where do I find who has downloaded the attachment in the thread?
Installed...
That is bored me too.
All permissions is correct (Admin, supM and Mods - can view) but nothing.
Then I find...You have to just click on Update (on the bottom) in Usergroup options for each usergroup for who you choose to can view
And one question...for what reason there is Save & Exit option (when you look at list who downloaaded)???
What happend with just pure Exit (or Close page)?????
No error now, but where do I find who has downloaded the attachment in the thread?
Please edit and save one usergroup to rebuild permissions.
Quote:
Originally Posted by Sunka
Installed...
That is bored me too.
All permissions is correct (Admin, supM and Mods - can view) but nothing.
Then I find...You have to just click on Update (on the bottom) in Usergroup options for each usergroup for who you choose to can view
Yeah, just save one usergroup to rebuild data cache. I forgot to include the code for that in the installation snippet.
Quote:
Originally Posted by Sunka
And one question...for what reason there is Save & Exit option (when you look at list who downloaaded)???
What happend with just pure Exit (or Close page)?????
Well, I made it be "Exit & Download", I think it was because I ported this hack from another one and that's how they have designed it. However, I don't remember exactly, it was a long time ago. Do you think this should be changed to a plain "close page"?
Well, I made it be "Exit & Download", I think it was because I ported this hack from another one and that's how they have designed it. However, I don't remember exactly, it was a long time ago. Do you think this should be changed to a plain "close page"?
If my opinion is important to you, then YES!
If I (Admin, Mod or Smod) want to download attachment, I will do it before on main screen. This MOD is to see who downloaded attachment, so it is in my opinion not good to have only options to exit and automaticlly save (download) attachment.
Just pure old good EXIT (or CLOSE).
Thanks for reading my opinion (and asking for it) :up:
Making a sequential installation with new steps added on top of the first one using the vBulletin framework for doing such is confusing and therefore prone to errors. So I just install new tables on the "if not exists" condition (which does not add too much server load given that a hack is only installed once in a very long time), and then add "on top" modifications every time myself by using is_newer_version(), which I believe is the same thing that vBulletin uses to determine which piece of installation code to execute. So I'm just doing the same thing a little differently than what's designated by vBulletin framework.
JFYI, this query will be run every time as its not inside any of your custom version checks
PHP Code:
// add fields to other tables
$db->query_write("
ALTER TABLE `" . TABLE_PREFIX . "usergroup`
ADD `psiwd_options` int(10) unsigned NOT NULL DEFAULT '0'
");