View Full Version : Statistics Modifications - Who Downloaded This Attachment
akanevsky
06-26-2009, 10:00 PM
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 (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=217271)
akanevsky
06-27-2009, 03:24 PM
First Post Reserved.
saadessa
06-27-2009, 04:08 PM
I Will Try Thank You
deadlySniper
06-27-2009, 04:23 PM
Nice, thanks.
saadessa
06-27-2009, 04:23 PM
AFTER TRY TO GIVE permission
GIVE THIS ERROR
Invalid SQL:
UPDATE usergroup SET
### UPDATE QUERY GENERATED BY fetch_query_sql() ###
`title` = 'Administrators',
`description` = '',
`usertitle` = 'Administrator',
`opentag` = '',
`closetag` = '',
`passwordexpires` = '180',
`passwordhistory` = '360',
`forumpermissions` = '16777215',
`genericpermissions` = '2147483583',
`attachlimit` = '0',
`psiwd_options` = '1',
`pmquota` = '50',
`pmpermissions` = '7',
`pmsendmax` = '5',
`pmthrottlequantity` = '0',
`calendarpermissions` = '63',
`wolpermissions` = '31',
`adminpermissions` = '3',
`genericpermissions2` = '1',
`genericoptions` = '55',
`profilepicmaxwidth` = '100',
`profilepicmaxheight` = '100',
`profilepicmaxsize` = '65535',
`avatarmaxwidth` = '80',
`avatarmaxheight` = '80',
`avatarmaxsize` = '20000',
`signaturepermissions` = '237567',
`sigpicmaxwidth` = '500',
`sigpicmaxheight` = '100',
`sigpicmaxsize` = '10000',
`sigmaxrawchars` = '0',
`sigmaxchars` = '0',
`sigmaxlines` = '0',
`sigmaxsizebbcode` = '7',
`sigmaximages` = '0',
`albumpermissions` = '255',
`albumpicmaxwidth` = '600',
`albumpicmaxheight` = '600',
`albumpicmaxsize` = '100000',
`albummaxpics` = '100',
`albummaxsize` = '0',
`usercsspermissions` = '63',
`visitormessagepermissions` = '63',
`socialgrouppermissions` = '65535',
`maximumsocialgroups` = '5',
`groupiconmaxsize` = '65535',
`uscpermissions` = '0'
WHERE usergroupid=6;
MySQL Error : Unknown column 'psiwd_options' in 'field list'
Error Number : 1054
Request Date : Saturday, June 27th 2009 @ 01:18:46 PM
Error Date : Saturday, June 27th 2009 @ 01:18:46 PM
BigDog56
06-27-2009, 04:34 PM
AFTER TRY TO GIVE permission
GIVE THIS ERROR
Invalid SQL:
UPDATE usergroup SET
### UPDATE QUERY GENERATED BY fetch_query_sql() ###
`title` = 'Administrators',
`description` = '',
`usertitle` = 'Administrator',
`opentag` = '',
`closetag` = '',
`passwordexpires` = '180',
`passwordhistory` = '360',
`forumpermissions` = '16777215',
`genericpermissions` = '2147483583',
`attachlimit` = '0',
`psiwd_options` = '1',
`pmquota` = '50',
`pmpermissions` = '7',
`pmsendmax` = '5',
`pmthrottlequantity` = '0',
`calendarpermissions` = '63',
`wolpermissions` = '31',
`adminpermissions` = '3',
`genericpermissions2` = '1',
`genericoptions` = '55',
`profilepicmaxwidth` = '100',
`profilepicmaxheight` = '100',
`profilepicmaxsize` = '65535',
`avatarmaxwidth` = '80',
`avatarmaxheight` = '80',
`avatarmaxsize` = '20000',
`signaturepermissions` = '237567',
`sigpicmaxwidth` = '500',
`sigpicmaxheight` = '100',
`sigpicmaxsize` = '10000',
`sigmaxrawchars` = '0',
`sigmaxchars` = '0',
`sigmaxlines` = '0',
`sigmaxsizebbcode` = '7',
`sigmaximages` = '0',
`albumpermissions` = '255',
`albumpicmaxwidth` = '600',
`albumpicmaxheight` = '600',
`albumpicmaxsize` = '100000',
`albummaxpics` = '100',
`albummaxsize` = '0',
`usercsspermissions` = '63',
`visitormessagepermissions` = '63',
`socialgrouppermissions` = '65535',
`maximumsocialgroups` = '5',
`groupiconmaxsize` = '65535',
`uscpermissions` = '0'
WHERE usergroupid=6;
MySQL Error : Unknown column 'psiwd_options' in 'field list'
Error Number : 1054
Request Date : Saturday, June 27th 2009 @ 01:18:46 PM
Error Date : Saturday, June 27th 2009 @ 01:18:46 PM
Getting the same thing
Database error in vBulletin 3.8.3:
Invalid SQL:
UPDATE ravensfo_usergroup SET
### UPDATE QUERY GENERATED BY fetch_query_sql() ###
`title` = 'Administrator/Owner',
`description` = 'Owner of forum',
`usertitle` = 'Owner',
`opentag` = '<span style=\"color: red;\">',
`closetag` = '</span>',
`passwordexpires` = '180',
`passwordhistory` = '360',
`ispublicgroup` = '0',
`canoverride` = '0',
`credit_ibp_passcost` = '1',
`credit_ibp_accesscost` = '0',
`credit_ibp_discount` = '0',
`credit_thanks_gain` = '100',
`credit_thanks_lose` = '-10',
`credit_thanks_give` = '5',
`credit_thanks_take` = '-5',
`fcpermissions` = '13',
`ugphelpcenter` = '8191',
`vbblog_general_permissions` = '524286',
`vbblog_customblocks` = '5',
`vbblog_custompages` = '5',
`vbblog_entry_permissions` = '24575',
`vbblog_comment_permissions` = '2014',
`creditpermissions` = '628',
`credit_induction` = '200',
`credit_referral` = '100',
`credit_refbonus` = '0',
`credit_paycheck` = '100',
`credit_active` = '100',
`credit_birthday` = '100',
`credit_repgive` = '10',
`credit_reputation` = '15',
`credit_infraction` = '-10',
`credit_thread` = '50',
`credit_threadrate` = '10',
`credit_post` = '1',
`credit_ownthreadpost` = '3',
`credit_postsize` = '1',
`credit_ownthreadview` = '1',
`credit_ownthreadrate` = '1',
`credit_ownthreadreply` = '2',
`credit_ownprofileview` = '10',
`credit_pollmake` = '10',
`credit_pollvote` = '3',
`credit_attachment` = '100',
`credit_sendpm` = '0',
`credit_addevent` = '3',
`credit_addprofpic` = '0',
`credit_profile` = '0',
`credit_donmaxuser` = '-1',
`credit_pastotpost` = '-1',
`credit_pastotuser` = '-1',
`credit_pasawuser` = '-1',
`credit_pasawthread` = '-1',
`credit_saveint` = '0.1',
`credit_maxsave` = '-1',
`credit_loanint` = '0.195',
`credit_maxloan` = '1000',
`credit_totloan` = '5',
`credit_goodgroup` = '0',
`credit_midgroup` = '0',
`credit_badgroup` = '0',
`credit_maxtickets` = '10',
`credit_lotdiscount` = '0',
`forumpermissions` = '16777215',
`genericpermissions` = '2147483647',
`attachlimit` = '0',
`psiwd_options` = '1',
`pmquota` = '5000',
`pmpermissions` = '7',
`pmsendmax` = '5',
`pmthrottlequantity` = '100',
`calendarpermissions` = '63',
`wolpermissions` = '31',
`adminpermissions` = '3',
`genericpermissions2` = '1',
`genericoptions` = '63',
`profilepicmaxwidth` = '500',
`profilepicmaxheight` = '500',
`profilepicmaxsize` = '1000000000',
`avatarmaxwidth` = '250',
`avatarmaxheight` = '250',
`avatarmaxsize` = '2000000000',
`signaturepermissions` = '245759',
`sigpicmaxwidth` = '700',
`sigpicmaxheight` = '700',
`sigpicmaxsize` = '1000000',
`sigmaxrawchars` = '0',
`sigmaxchars` = '0',
`sigmaxlines` = '0',
`sigmaxsizebbcode` = '7',
`sigmaximages` = '5',
`albumpermissions` = '255',
`albumpicmaxwidth` = '700',
`albumpicmaxheight` = '700',
`albumpicmaxsize` = '1000000',
`albummaxpics` = '110',
`albummaxsize` = '0',
`usercsspermissions` = '63',
`visitormessagepermissions` = '63',
`socialgrouppermissions` = '65535',
`maximumsocialgroups` = '5',
`groupiconmaxsize` = '1000000000',
`awardpermissions` = '1',
`op_user_html_markup_permissions` = '2047',
`sk_hiddenpermissions` = '1',
`trgpermissions` = '15',
`trmperms` = '15',
`radiotvpermissions` = '2047',
`unreq_perms` = '3'
WHERE usergroupid=13;
MySQL Error : Unknown column 'psiwd_options' in 'field list'
Error Number : 1054
Request Date : Saturday, June 27th 2009 @ 12:33:46 PM
Error Date : Saturday, June 27th 2009 @ 12:33:46 PM
Script : http://ravensforums.com/forums/admincp/usergroup.php?do=update
Referrer : http://ravensforums.com/forums/admincp/usergroup.php?do=edit&usergroupid=13
IP Address : 76.11.135.45
Username : Jeff
Classname : vB_Database
MySQL Version : 5.1.30
Paul M
06-27-2009, 05:00 PM
The version in the xml is 1.1.0
The install code for the database updates this mod requires is set to 9.9.9 - so Im pretty sure it will not be run, hence the database errors.
akanevsky
06-27-2009, 05:47 PM
The version in the xml is 1.1.0
The install code for the database updates this mod requires is set to 9.9.9 - so Im pretty sure it will not be run, hence the database errors.
That's not true. I do this on all my mods and it works. That's just another way of saying '*'. However, there is a syntax error in the installation code, hence why the product does not work. I will fix that shortly.
EDIT: Released version 1.1.1.
Paul M
06-27-2009, 06:17 PM
That's not true. I do this on all my mods and it works. That's just another way of saying '*'.
Fair enough, didnt know that - why not just put "*" more obvious then.
Strange tho - why are you running the database install/update code everytime ?
ctrlbrk
06-27-2009, 06:36 PM
Thanks Psionic Vision!
Tagged, this looks promising! Waiting for others to work out the bugs :)
Mike
akanevsky
06-27-2009, 07:34 PM
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.
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. ;)
BigDog56
06-27-2009, 09:04 PM
No error now, but where do I find who has downloaded the attachment in the thread?
Sunka
06-28-2009, 12:48 AM
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 :D
Sunka
06-28-2009, 12:53 AM
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)?????
akanevsky
06-28-2009, 12:59 AM
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.
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 :D
Yeah, just save one usergroup to rebuild data cache. I forgot to include the code for that in the installation snippet.
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"?
Sunka
06-28-2009, 02:06 AM
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:
junaid
06-28-2009, 03:09 AM
when usergroups update database error
Paul M
06-28-2009, 08:54 AM
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
// add fields to other tables
$db->query_write("
ALTER TABLE `" . TABLE_PREFIX . "usergroup`
ADD `psiwd_options` int(10) unsigned NOT NULL DEFAULT '0'
");
akanevsky
06-28-2009, 02:19 PM
when usergroups update database error
Uninstall the install version 1.1.1.
JFYI, this query will be run every time as its not inside any of your custom version checks
// add fields to other tables
$db->query_write("
ALTER TABLE `" . TABLE_PREFIX . "usergroup`
ADD `psiwd_options` int(10) unsigned NOT NULL DEFAULT '0'
");
That's fine, it does not add multiple fields because it is not possible. :)
BigDog56
06-28-2009, 04:36 PM
Seems to be working ok. Thank you.
cooltechie
06-29-2009, 03:17 AM
Does it allow to exclude admin and/or mod from the list?
TAIFUN_T
07-28-2009, 10:14 PM
Russian
===
nifty mod! Any way of displaying the user list in the place where it says "who downloaded" - instead of making it a separate window?
KURTZ
07-31-2009, 06:26 AM
installed, but i can't find that option ... where is? :S
drbox
08-02-2009, 02:50 PM
installed, but i can't find that option ... where is? :S
for me too
there is nothimg happen and no option find tp set
how it works?
denadai2
08-02-2009, 05:16 PM
installed, but i can't find that option ... where is? :S
I too have the same request
Satfool1
09-16-2009, 01:02 PM
same here.
Using vbulletin 3.8.4 andf it does not show after installed
ThomasBolley
09-17-2009, 04:26 PM
yeah me too.... no link for who downloaded on vb 3.8.4
Satfool1
09-17-2009, 08:00 PM
no way to edit the settings as I can't find it anywhere.
I managed to be able to see it as administrator but if i click who downloaded , it says downloaded by 0 unregistered but does not state who did it.
Seems like not compatible with 3.8.4
I can see it only works for posts and attachments after the mode was installed.
Still can't find a way to edit file for further permissions
tlwwolfseye
10-02-2009, 01:13 PM
I also see absolutely no Options whatsoever. I see it as Adminstrator. But I wonder if it only counts as from the point on you install it. Because after I installed it, i downloaded an Attachment. After that i refreshed that post, it showed me that my Username has downloaded it. But it seems not to be able to know who downloaded it before, as a registered User I mean.
But without proper Options this Mod is not worth much. Sorry that I have to say this, the idea is nice and it would be cool if it would work, but its not fully working. Any chance this gets updated ?
tlwwolfseye
10-02-2009, 01:30 PM
Please check my Posting in this thread:
https://vborg.vbsupport.ru/showthread.php?p=1893711#post1893711
Either that or this Mod creates a Script, linking to a Site called "COOLCHASER.COM". Can someone please confirm that one of those 2 Scripts do that ?
Mr. W
10-03-2009, 03:31 PM
_____It seems to work under 3.8.4 . However, at first it didn't. Here's what I did:
_____When I first installed it, I didn't see the link, despite being the Super Administrator. However, I can't speak for most people but I had added myself to additional user groups for the sake of adding additional rank images to myself. Unfortunately, those additional user groups didn't have the permission to view "Who Downloaded?" so I didn't see the link.
_____So then I went to each of those additional user groups and added the permission to see the "Who Downloaded?" link. Therefore it would seem that if a user is going to be able to see the link, he needs to only belong to user groups that have that permission. If he belongs to even one user group that doesn't, he won't be able to see it.
_____Therefore, if possible I have a few suggestions for the next version. They are:
1) Super Administrators (not regular Administrators) can always see the link no matter what.
2) Let there be an option or a way to have the permissions work the way they seem to work elsewhere in VBulletin. That is, if a user belongs to a user group that has a "Yes" permission, that will override any other user groups he's in, that has a "No" permission.
Note:
_____I should note that I do prefer the other method, where one "No" permission will over ride any "Yes" permissions. However, that is not the way the rest of VBulletin seems to work.
_____Here's an example: Suppose you have a Super Moderator, and then you add him to the Registered Users group as an additional user group. If you do so, that Super Moderator wouldn't lose any permissions at all. In fact, he might gain a permission or two if there happens to be anything Registered Users can do, that Super Mods ordinarily can't. Yet he'd still be able to do all of the Super Mod stuff. This is despite the fact that there are many things that Super Mods can do, that ordinary Registered Users can't. This is because "Yes" overrides "No."
_____However, with this modification, it seems that "No" overrides "Yes." I had to point out this particular bit of confusion, since it might be the cause of problems that others have been experiencing.
NAZIA
12-02-2009, 12:00 AM
Bug found in this plugin, for VB 3.8.2
107046
After installing this plugin. The Attachment showing in usercp are unavailable...
107047
I also checked using default template...
May you fix this error.:confused:
christon26
12-18-2009, 02:18 AM
Bug found in this plugin, for VB 3.8.2
107046
After installing this plugin. The Attachment showing in usercp are unavailable...
107047
I also checked using default template...
May you fix this error.:confused:
I also have this bug on 3.8.4, any chance of a fix? Cos otherwise it works brilliantly LOL
christon26
12-18-2009, 06:52 AM
After much looking through both the vb templates and the product xml upload, I deleted this section under the WD: Global_Start section (approx line 206 of the xml file) and my attachments list in UserCP showed up again:
if (isset($vbulletin->templatecache['modifyattachmentsbit']))
{
$find_string = compile_template('<phrase 1="$post[counter]">$vbphrase[x_downloads]</phrase>');
$add_string = compile_template('<if condition="$post[\'counter\'] > 0"> - <a href="#" onclick="whodownloaded($post[attachmentid]); return false;">$vbphrase[psiwd_who_downloaded]</a></if>');
$vbulletin->templatecache['modifyattachmentsbit'] = str_replace($find_string, $find_string . $add_string, $vbulletin->templatecache['headinclude']);
}
Unfortunately I am not knowledgeable enough to know exactly where the conflict is...only that there is one lol I assume the above section is intended to show maybe the link to the who downloaded popup list...but again I don't know lol
All I know is deleting that section takes away the bug and so far doesn't appear to damage anything LOL
christon26
12-18-2009, 07:20 AM
Ok, until the developer of this mod comes back with a fix...anyone having the issue of the attachments list disappearing in the UserCP and still wants the who downloaded link to appear where it was apparently intended to be inserted lol ...
In product-psi_whodownloaded.xml at approx line 206 find and delete:
if (isset($vbulletin->templatecache['modifyattachmentsbit']))
{
$find_string = compile_template('<phrase 1="$post[counter]">$vbphrase[x_downloads]</phrase>');
$add_string = compile_template('<if condition="$post[\'counter\'] > 0"> - <a href="#" onclick="whodownloaded($post[attachmentid]); return false;">$vbphrase[psiwd_who_downloaded]</a></if>');
$vbulletin->templatecache['modifyattachmentsbit'] = str_replace($find_string, $find_string . $add_string, $vbulletin->templatecache['headinclude']);
}
Save and upload through the Add/Import Products with Allow Overwrite set to yes
Then to have the link appear in the attachments list, in vb admin go to Style Manager>>All Style Options>>Modify User Option Templates>>modifyattachmentsbit
Find:
<div class="smallfont">$post[size], <phrase 1="$post[counter]">$vbphrase[x_downloads]</phrase>
Add after:
<if condition="$post['counter'] > 0"> - <a href="#" onclick="whodownloaded($post[attachmentid]); return false;">$vbphrase[psiwd_who_downloaded]</a></if>
I think possibly there was a conflict with the headinclude part as I saw that was repeated over and over again in the source code where the attachments list *should* have been with this bug...hope this helps a few ppl :)
I should note that I use 3.8.4 and this works for me to fix the issue for now, any other version try at own risk....make sure to backup first though LOL
winlya
12-30-2009, 11:53 PM
hey, Psionic Vision
I love this hack. Any update for vb 4.0 ?
dede1
02-23-2010, 05:56 AM
Hello,
update for vb 4.0 ?
KURTZ
06-01-2010, 11:33 AM
hey, Psionic Vision
I love this hack. Any update for vb 4.0 ?
+1 :)
mohammadxxx
11-04-2010, 07:18 AM
hi
I've installed this hack, but a link to see the number of downloaders will not seen !!??
You Can View My Problem On Attach Picture .
Dadoo
12-19-2010, 09:13 PM
For those who still wants to use this product under vBulletin 3.8.6, i found a way :-)
For the record, these are my specs :
- vBulletin 3.8.6
- Who Downloaded This Attachment v1.1.1 for vBulletin 3.8.x
- Custom style
First of all, thanks to Christon26 for his original text (msg #36) i modified it in order to works with vB 3.8.6
In product-psi_whodownloaded.xml at approx line 206 find and delete:
if (isset($vbulletin->templatecache['modifyattachmentsbit']))
{
$find_string = compile_template('<phrase 1="$post[counter]">$vbphrase[x_downloads]</phrase>');
$add_string = compile_template('<if condition="$post[\'counter\'] > 0"> - <a href="#" onclick="whodownloaded($post[attachmentid]); return false;">$vbphrase[psiwd_who_downloaded]</a></if>');
$vbulletin->templatecache['modifyattachmentsbit'] = str_replace($find_string, $find_string . $add_string, $vbulletin->templatecache['headinclude']);
}
Save and upload through the Add/Import Products with Allow Overwrite set to yes
Then to have the link appear in the attachments list, in vb admin go to Style Manager -> Your Style Options -> Modify User Option Templates -> postbit_attachment
Find :
<phrase 1="$attachment[counter]">$vbphrase[x_views2]</phrase>
After, add :
<if condition="is_member_of($bbuserinfo, 6)"><if condition="$attachment['counter'] > 0"> - <a href="#" onclick="whodownloaded($attachment[attachmentid]); return false;">$vbphrase[psiwd_who_downloaded]</a></if></if>
You have to specify the usergroup you want to authorize to see the link appear.
Change 6 by any usergroup. If you want to add more than one group, add a comma after each ID.
Example : <if condition="is_member_of($bbuserinfo, 1, 2, 3, 4, 5, 6)
Close this template and open the template : modifyattachmentsbit
Find :
<div class="smallfont">$post[size], <phrase 1="$post[counter]">$vbphrase[x_downloads]</phrase>
After, add :
<if condition="$post['counter'] > 0"> - <a href="#" onclick="whodownloaded($post[attachmentid]); return false;">$vbphrase[psiwd_who_downloaded]</a></if>
Go to Usergroup manager -> Your usergroup -> Set Can View Who Downloaded permission on "NO", then go again in your usergroup but, this time, set to "YES"
That's it !
REMEMBER, this product only show downloads made AFTER installation of this product.
danyxxx
08-01-2011, 03:01 PM
Fix this plugin for 3.8.6 patch level 1 to because doesn't work , nothing appear but I don't have any error :)
It's installed and it's active to but no difference in postbit at attachments :)
He doesn't work simple as that .
Thanks .
christon26
08-01-2011, 07:31 PM
I still have this working perfectly with my small code change for the UserCP attachments list posted above (https://vborg.vbsupport.ru/showpost.php?p=1932749&postcount=36) on vBulletin version 3.8.7 Patch Level 2 :)
Lissa
christon26
08-01-2011, 07:34 PM
Fix this plugin for 3.8.6 patch level 1 to because doesn't work , nothing appear but I don't have any error :)
It's installed and it's active to but no difference in postbit at attachments :)
He doesn't work simple as that .
Thanks .
You have to edit each usergroup to allow them to see the link and stats.
Under Attachment Permissions: Can View Who Downloaded [Yes/No]
Hope that helps
Lissa
Got this working thanks to the above posts, but for some strange reason it has disappeared from the options overnight??? I was going to remove some forum id's but now I can't, it still works but I can't edit it now.
Is it supposed to be in the settinggroup table as it is not there? I look at the product code next to see If I can fix but any help would be good.
hidden_ra
09-10-2013, 07:39 PM
I installed the add my site.
but the addition of add-ons 'Who downloaded' Letter does not
What is the reason? Can you give me a hand
What is the reason for not working on my short, this plug-in?
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.