PDA

View Full Version : Administrative and Maintenance Tools - Limit Attachment Downloads


Abe1
05-01-2010, 10:00 PM
Limit Attachment Downloads

Click here to Nominate this Mod for Mod the Month (https://vborg.vbsupport.ru/vborg_miscactions.php?do=nominate&threadid=241727&type=1)

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 (https://vborg.vbsupport.ru/vborg_miscactions.php?do=installhack&threadid=241727)!
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
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
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.

goran424
05-03-2010, 12:24 PM
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.

AliceHoward
05-03-2010, 04:19 PM
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. :)

puertoblack2003
05-03-2010, 04:25 PM
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.

Toxic2
05-04-2010, 04:05 AM
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.

AzzidReign
05-04-2010, 04:24 PM
Thanks for this!

haytham
05-16-2010, 03:17 PM
Does this also work on 3.8.5? 1.3 is giving weird dates like the attached pic..hope this will work.

kho91
05-16-2010, 05:24 PM
yhank you !
installed and N MOTM

Toxic2
05-19-2010, 11:53 AM
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.
:)

MmS1
08-12-2010, 03:41 AM
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

smoggy07
09-13-2010, 09:47 PM
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?

Da-Vinci
01-10-2011, 01:56 PM
Does this also work on 3.8.5? 1.3 is giving weird dates like the attached pic..hope this will work.

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.

ellinofatsa
01-27-2011, 11:50 AM
i have 4,1,1 is that work?

Dadoo
01-28-2011, 12:25 AM
Yes, it's working with vBulletin 4.1.1 i just tested it..

ellinofatsa
01-28-2011, 03:51 AM
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

https://vborg.vbsupport.ru/attachment.php?attachmentid=116594&d=1272829929

Dadoo
01-30-2011, 12:23 AM
Have you tried to uninstall and reinstall the mod ?

You have blank setting instead, or no setting at all from mod ?

ellinofatsa
01-31-2011, 08:33 PM
i cant find this setings in the image were i can find this in vb 4?

shempsall2009
03-05-2011, 08:15 AM
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

huevncom
01-11-2012, 03:14 AM
How to limit download attach per day
eg: 5 download attach/user/1day

Munkholm
02-02-2012, 12:54 PM
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!

GossipAll
02-28-2012, 01:39 PM
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?

angeljs
04-01-2012, 09:43 PM
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!
Yes, this is a really important thing, to be able to limit guests. I'd like them to be able to see image attachments, but not to be able to download any zip or rar files.

Other than that, really great mod!

angeljs
04-20-2012, 06:28 AM
Just wondering if this has been addressed, yet? I desperately need this mod but really need to be able to configure it for guests.

ScrapingWeb.com
09-24-2012, 02:07 AM
Thanks for the mod. I just marked it installed

Can you please tell me where all the settings are? Thus far I can only find this: Attachments -> Attachment Permissions -> click one of the types -> Limit Downloads with this Attachment Type, Yes or No.....

That's it. Where is the settings to set time frame and number of downloads per time frame?

============ Edit ============

I was able to find the other settings but this one I still couldn't find:

https://vborg.vbsupport.ru/attachment.php?attachmentid=116595&d=1272829929

Can you please tell me where it is?

And is the download limit per attachment or across the entire forum?

For example, say I have 3 attachments for members to download: a1, a2, a3. I have set the download limit to be 1 per month. The user is then able to:

1. Perform 1 download per month, no matter which attachment. He or she must be a member for 3 months to download all 3 attachments.
2. Perform 1 download per attachment per month. This means he or she can download only once per attachment per month, but he or she can download all 3 attachments in just 1 month.

Which one of the above sayings is true?

keyla31
09-25-2012, 08:55 PM
working perfect in 4.2

t.uzuner
11-19-2012, 12:05 AM
I want to be a member to redirect warning by changing the words

Alex6969
02-13-2014, 08:24 AM
info for installation? thanks all

Alex6969
02-13-2014, 11:19 AM
I installed the product,
but I do not understand where to set restrictions for new users
Can you tell how to make the blocks for different users? thanks