vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Administrative and Maintenance Tools - Limit Attachment Downloads (https://vborg.vbsupport.ru/showthread.php?t=241727)

Abe1 05-01-2010 10:00 PM

Limit Attachment Downloads
 
1 Attachment(s)
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

AliceHoward 05-02-2010 10:48 PM

Is there any way of getting this to work when attachments are inserted 'inline'?

Abe1 05-02-2010 11:44 PM

Well this is sent not to work with thumbs since a user downloads them with out his will. What do you mean by inline?

Toxic2 05-03-2010 01:45 AM

Thank you Abel, 5 stars, Nominated and Donation Made !! This was needed to stop those who rape sites to post on their own site with my posts.

I can't thank you enough

SharedSpirit 05-03-2010 02:34 AM

Downloaded - Installed - Nominated - given 5 stars

A much needed Mod, I can't thank you enough I was in need of this particular mod for a long time, had the same kind of problems as the guy above

Thanks a lot again

Toxic2 05-03-2010 02:47 AM

Abel, does this Stop members from opening a txt attachment with notepad? after their Limit has been reached?

Abe1 05-03-2010 02:54 AM

Quote:

Originally Posted by Toxic2 (Post 2030907)
Abel, does this Stop members from opening a txt attachment with notepad? after their Limit has been reached?

As long as you set to count TXT files. You have to go into the attachment extension setting and make it count that extension.

Toxic2 05-03-2010 03:28 AM

WhooHoo it works, Great !! it will not allow to open with note pad either. Million Thanks Abel !

AliceHoward 05-03-2010 07:38 AM

Quote:

Originally Posted by Abe1 (Post 2030836)
Well this is sent not to work with thumbs since a user downloads them with out his will. What do you mean by inline?

In the message editor environment there are the font bbcode buttons etcetera, to the right of the smilie selector there is a paperclip, by clicking that we can place attachments in-line of text rather than having attachments show at the base of a post.

Normal attachments:

text text text text

attachment

In-line attachment:

text text attachment text text

Abe1 05-03-2010 10:27 AM

Yes, those get counted also.


All times are GMT. The time now is 04:49 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.01201 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete