Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Who Downloaded This Attachment Details »»
Who Downloaded This Attachment
Version: 1.1.1, by akanevsky akanevsky is offline
Developer Last Online: Feb 2016 Show Printable Version Email this Page

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.

IF YOU LIKE MY HACK, PLEASE CLICK INSTALL

Download Now

File Type: zip Who.Downloaded_1.1.1_by.Psionic.Vision.zip (7.0 KB, 816 views)

Screenshots

File Type: jpg screenshot01.jpg (98.7 KB, 0 views)
File Type: png screenshot02.png (29.6 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
mohammadxxx

Comments
  #32  
Old 10-02-2009, 01:30 PM
tlwwolfseye's Avatar
tlwwolfseye tlwwolfseye is offline
 
Join Date: Dec 2008
Location: Germany
Posts: 320
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Please check my Posting in this thread:

https://vborg.vbsupport.ru/showthrea...11#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 ?
Reply With Quote
  #33  
Old 10-03-2009, 03:31 PM
Mr. W's Avatar
Mr. W Mr. W is offline
 
Join Date: Aug 2009
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

_____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.
Reply With Quote
  #34  
Old 12-02-2009, 12:00 AM
NAZIA's Avatar
NAZIA NAZIA is offline
 
Join Date: Feb 2008
Location: Multan Pakistan
Posts: 322
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bug found in this plugin, for VB 3.8.2

Attachment 107046


After installing this plugin. The Attachment showing in usercp are unavailable...

Attachment 107047

I also checked using default template...
May you fix this error.
Reply With Quote
  #35  
Old 12-18-2009, 02:18 AM
christon26 christon26 is offline
 
Join Date: Dec 2008
Location: Australia
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by NAZIA View Post
Bug found in this plugin, for VB 3.8.2

Attachment 107046


After installing this plugin. The Attachment showing in usercp are unavailable...

Attachment 107047

I also checked using default template...
May you fix this error.
I also have this bug on 3.8.4, any chance of a fix? Cos otherwise it works brilliantly LOL
Reply With Quote
  #36  
Old 12-18-2009, 06:52 AM
christon26 christon26 is offline
 
Join Date: Dec 2008
Location: Australia
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:

PHP Code:
    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
Reply With Quote
  #37  
Old 12-18-2009, 07:20 AM
christon26 christon26 is offline
 
Join Date: Dec 2008
Location: Australia
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:

PHP Code:
    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:

PHP Code:
        <div class="smallfont">$post[size], <phrase 1="$post[counter]">$vbphrase[x_downloads]</phrase
Add after:

PHP Code:
<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
Reply With Quote
  #38  
Old 12-30-2009, 11:53 PM
winlya winlya is offline
 
Join Date: Jun 2004
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hey, Psionic Vision
I love this hack. Any update for vb 4.0 ?
Reply With Quote
  #39  
Old 02-23-2010, 05:56 AM
dede1 dede1 is offline
 
Join Date: Mar 2002
Posts: 88
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello,

update for vb 4.0 ?
Reply With Quote
  #40  
Old 06-01-2010, 11:33 AM
KURTZ KURTZ is offline
 
Join Date: Nov 2006
Location: Italy
Posts: 2,257
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by winlya View Post
hey, Psionic Vision
I love this hack. Any update for vb 4.0 ?
+1
Reply With Quote
  #41  
Old 11-04-2010, 07:18 AM
mohammadxxx's Avatar
mohammadxxx mohammadxxx is offline
 
Join Date: Sep 2008
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 .
Attached Images
File Type: jpg Who Downloaded This Attachment.jpg (19.5 KB, 0 views)
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 08:56 PM.


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.07668 seconds
  • Memory Usage 2,372KB
  • Queries Executed 28 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete