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
  #22  
Old 01-10-2011, 01:56 PM
Da-Vinci Da-Vinci is offline
 
Join Date: Mar 2010
Posts: 249
Благодарил(а): 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.
Quote:
Originally Posted by MmS1 View Post
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
Funny how people wonder why a VB4 hack doesn't work on VB3.X forum.
Reply With Quote
  #23  
Old 01-27-2011, 11:50 AM
ellinofatsa ellinofatsa is offline
 
Join Date: Mar 2010
Posts: 348
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i have 4,1,1 is that work?
Reply With Quote
  #24  
Old 01-28-2011, 12:25 AM
Dadoo Dadoo is offline
 
Join Date: Dec 2004
Location: France
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, it's working with vBulletin 4.1.1 i just tested it..
Reply With Quote
  #25  
Old 01-28-2011, 03:51 AM
ellinofatsa ellinofatsa is offline
 
Join Date: Mar 2010
Posts: 348
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dadoo View Post
Yes, it's working with vBulletin 4.1.1 i just tested it..
i have instal that hack bad i dont find this setings in the image,can i have litle halp please?
i have vb 4,1,1

Reply With Quote
  #26  
Old 01-30-2011, 12:23 AM
Dadoo Dadoo is offline
 
Join Date: Dec 2004
Location: France
Posts: 69
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you tried to uninstall and reinstall the mod ?

You have blank setting instead, or no setting at all from mod ?
Reply With Quote
  #27  
Old 01-31-2011, 08:33 PM
ellinofatsa ellinofatsa is offline
 
Join Date: Mar 2010
Posts: 348
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i cant find this setings in the image were i can find this in vb 4?
Reply With Quote
  #28  
Old 03-05-2011, 08:15 AM
shempsall2009 shempsall2009 is offline
 
Join Date: Feb 2010
Posts: 46
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi there,

I have just install this mod but I'm getting an Error. When I Activate the mod I try and download an Attachment but it is saying that my Download Limit has been reached and that I will be able to download again on the 01/01/70.

The weird thing is though I set is up for a daily limit and allowed Admin to download unlimited.

Please can someone help?

Thanks
Reply With Quote
  #29  
Old 01-11-2012, 03:14 AM
huevncom huevncom is offline
 
Join Date: Dec 2011
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How to limit download attach per day
eg: 5 download attach/user/1day
Reply With Quote
  #30  
Old 02-02-2012, 12:54 PM
Munkholm Munkholm is offline
 
Join Date: Dec 2010
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a way to activate this for Usergroup 1 aka: "Unregistered / Not Logged In" ??
I'm allowing visitors to download attachments, but would like to limit their downloads with this awesome mod!
Reply With Quote
  #31  
Old 02-28-2012, 01:39 PM
GossipAll GossipAll is offline
 
Join Date: Oct 2010
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I am not able to get this to work on 4.1.7

I have set VB Options as Yes and set it to 12 hours.

I have set the option to Yes in attachment types for all the types of attachments.

I have set the permissions in usergroup (Admin) to Yes and put the attachment limit as 1.

But when I try to download attachments, I could download them all. How does this work?
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 04:57 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.05839 seconds
  • Memory Usage 2,329KB
  • 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
  • (3)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
  • (5)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