Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

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
  #42  
Old 12-19-2010, 09:13 PM
Dadoo Dadoo is offline
 
Join Date: Dec 2004
Location: France
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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

Quote:
Originally Posted by christon26 View Post

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 -> Your Style Options -> Modify User Option Templates -> postbit_attachment

Find :

PHP Code:
<phrase 1="$attachment[counter]">$vbphrase[x_views2]</phrase

After, add :


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

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

PHP Code:
<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.
Reply With Quote
  #43  
Old 08-01-2011, 03:01 PM
danyxxx danyxxx is offline
 
Join Date: Oct 2010
Posts: 52
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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 .
Reply With Quote
  #44  
Old 08-01-2011, 07:31 PM
christon26 christon26 is offline
 
Join Date: Dec 2008
Location: Australia
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I still have this working perfectly with my small code change for the UserCP attachments list posted above on vBulletin version 3.8.7 Patch Level 2

Lissa
Reply With Quote
  #45  
Old 08-01-2011, 07:34 PM
christon26 christon26 is offline
 
Join Date: Dec 2008
Location: Australia
Posts: 174
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by danyxxx View Post
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
Reply With Quote
  #46  
Old 10-24-2012, 09:02 AM
1F42 1F42 is offline
 
Join Date: Mar 2003
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #47  
Old 09-10-2013, 07:39 PM
hidden_ra hidden_ra is offline
 
Join Date: Mar 2012
Posts: 2
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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?
Reply With Quote
Reply

Thread Tools

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 11:54 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06662 seconds
  • Memory Usage 2,312KB
  • Queries Executed 22 (?)
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
  • (5)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
  • (2)pagenav_pagelink
  • (7)post_thanks_box
  • (1)post_thanks_box_bit
  • (7)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (7)post_thanks_postbit_info
  • (6)postbit
  • (3)postbit_attachment
  • (7)postbit_onlinestatus
  • (7)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_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