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

Reply
 
Thread Tools
Limit Attachment Downloads Details »»
Limit Attachment Downloads
Version: 1.40, by Abe1 Abe1 is offline
Developer Last Online: Jun 2010 Show Printable Version Email this Page

Category: Administrative and Maintenance Tools - Version: 4.0.x Rating:
Released: 05-01-2010 Last Update: Never Installs: 73
DB Changes Uses Plugins
Additional Files  
No support by the author.

Limit Attachment Downloads



The writing of this hack was originally sponsored by: sama3y.net

About this hack:
This hack allows you to limit the number of attachments users can download during a given time period.

This hack is pretty flexible right now. You can choose how many attachments a user can download in a give time. That given time can be set to an hour, a day, a week, a month, 3 months, 6 months, or a year. You also set which attachment types get counted for this hack. Also, you set which usergroups get affected by this hack and how many downloads each usergoup can make.

If a user tries downloading past their limit, they will get an error message. This error message includes when they will be able to start downloading again.

Also, there is a cron job to remove from the table that this hack creates, all the rows that are past the limit date so your table doesn't grow forever and saves you space.
  • Files edited: 0
  • Templates edited: 0
  • Files to upload: 2 (1 via ACP, 1 via FTP)
  • Time to install: 1 minute

Updates:
Version 1.40 (05/02/10):
  • First release of this hack for vb 4.0.

Please post your comments or suggestions for this hack. I read ALL posts.

MAKE SURE YOU CLICK INSTALL!
You will get an email when a new version is released.

Pictures:
  • The error message.
  • Found in the main vb settings
  • Found in the attachment types setting
  • Found in the usergroup settings

Download Now

File Type: zip limit_attachment_downloads_1_40.zip (4.1 KB, 531 views)

Screenshots

File Type: jpg 1.JPG (14.0 KB, 0 views)
File Type: jpg 2.JPG (25.5 KB, 0 views)
File Type: jpg 3.JPG (82.4 KB, 0 views)
File Type: jpg 4.JPG (26.1 KB, 0 views)

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 05-03-2010, 12:24 PM
goran424's Avatar
goran424 goran424 is offline
 
Join Date: Feb 2010
Location: Thailand
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Toxic2 View Post
Thank you Abel, 5 stars, Nominated and Donation Made !! This was need to stop those who rape sites to post on their own site with my posts.

I can't thank you enough
Yup, especially those from su.pplier, dzf and DEA.
Reply With Quote
  #13  
Old 05-03-2010, 04:19 PM
AliceHoward AliceHoward is offline
 
Join Date: Mar 2010
Location: Oxford, England
Posts: 188
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Abe1 View Post
Yes, those get counted also.
Thank you Abe1, I did wonder because the downloads were not getting restricted, but then it dawned on me to edit attachment permissions for .zip files, now it's working perfectly. We've been getting hit really hard by what can only be unsavoury members handing out their passwords and non-members downloading through their accounts, this will help to curb this behaviour.

Thank you very much, you are wonderful.

Alice x

Nominated and rated excellent.
Reply With Quote
  #14  
Old 05-03-2010, 04:25 PM
puertoblack2003's Avatar
puertoblack2003 puertoblack2003 is offline
 
Join Date: Aug 2005
Location: Philadelphia
Posts: 1,073
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I always love this mod i'm glad it was ported.One thing though i have everything set the admin has no restrictions but for some reason they can't download.
Reply With Quote
  #15  
Old 05-04-2010, 04:05 AM
Toxic2 Toxic2 is offline
 
Join Date: Jul 2009
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by puertoblack2003 View Post
I always love this mod i'm glad it was ported.One thing though i have everything set the admin has no restrictions but for some reason they can't download.

I did noticed one thing you need to be careful with, make sure the limited user group is not added as a second group.

example:
I set registered users to Limited Attachments, and No one else is limited, but if I add registered member For VIP group,mod group, Premium group etc. then they are limited also. So you can not have registered member (in my case) for a group you don't want limited. My Son has registered Members and added a registered2 group for the abusers and he just moves them to that group and they are limited. It is Important to go to permissions, user-groups and options ---> limited Attachments and configure the way you want. It was a bit confusing at 1st, but after a few trial and errors, I got it all straightened out. Hope that helps what to check for when things get confusing.

Hope this helps someone.
Reply With Quote
  #16  
Old 05-04-2010, 04:24 PM
AzzidReign's Avatar
AzzidReign AzzidReign is offline
 
Join Date: Apr 2006
Posts: 497
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this!
Reply With Quote
  #17  
Old 05-16-2010, 03:17 PM
haytham's Avatar
haytham haytham is offline
 
Join Date: Jan 2003
Location: USA-Egypt-UAE
Posts: 510
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does this also work on 3.8.5? 1.3 is giving weird dates like the attached pic..hope this will work.
Attached Images
File Type: jpg what.jpg (31.7 KB, 0 views)
Reply With Quote
  #18  
Old 05-16-2010, 05:24 PM
kho91 kho91 is offline
 
Join Date: Dec 2007
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yhank you !
installed and N MOTM
Reply With Quote
  #19  
Old 05-19-2010, 11:53 AM
Toxic2 Toxic2 is offline
 
Join Date: Jul 2009
Posts: 82
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by haytham View Post
Does this also work on 3.8.5? 1.3 is giving weird dates like the attached pic..hope this will work.
If you have a member that is a Mod but additionally is a (limited) registered member, you will get the weird dates. you need ( 1 ) group as the limited attachment group. example a VIP can not also be a registered member if they are limited. Or you get the weird dates.

as I said Before, I have 2 Groups registered and VIP registered are Limited, but if they become a VIP then I move them as primary VIP group and are not in the registered group. Of course the VIP is configured same as the Registered group but can enter the Vip section where Registered members can not. So they need to be separate and you can't have them as a VIP and a Registered member at the same time. I hope that made some sense LOL It's hard to explain it right.
Reply With Quote
  #20  
Old 08-12-2010, 03:41 AM
MmS1 MmS1 is offline
 
Join Date: Nov 2008
Posts: 51
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Fatal error: Using $this when not in object context in /home/Io22/public_html/vb/attachment.php(132) : eval()'d code on line 1

vb 3.8.5
Reply With Quote
  #21  
Old 09-13-2010, 09:47 PM
smoggy07 smoggy07 is offline
 
Join Date: Feb 2010
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for this

any chance on getting this working with 4.0.6 Patch Level 1?

we did have this working before we upgraded but now our resident VB guru informs me it has stopped working

is there anyone else on 4.0.6 Patch Level 1 who has this working or had it working but is now having problems after upgrading?
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 05:27 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.06723 seconds
  • Memory Usage 2,339KB
  • Queries Executed 27 (?)
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_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
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (6)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_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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • 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