![]() |
|
Mod Options |
![]() |
|||||||||
This modification is in the archives.
Limit Attachment Downloads 1.3 The writing of this hack was 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.
Updates: Version 1.0 (7/19/07):
Version 1.1 (7/19/07):
Version 1.2 (7/19/07):
Version 1.3 (7/29/07):
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:
Download Now Only licensed members can download files, Click Here for more information. Supporters / CoAuthors Screenshots Show Your Support
No members have liked this post.
|
#91
|
|||
|
|||
Now this is odd...
I did some more testing with another file type. My first test was with .ZIP files and each .ZIP file download was being counted twice. My last test was with .JPG files and each .JPG was only being counted once, as expected. Does anyone know why the counter would add two entries for .ZIP files, but only one for .JPG files? ![]() Thanks, James No members have liked this post.
|
#92
|
||||
|
||||
Originally Posted by JamesAB
I would hav to check your site out. Really wierd. Works fine in my tests.
![]()
__________________
MY HACKS - Active Link Security 3.0.X | Add Title to Rank Images 3.5.X | Admin Log In As User 3.5.X 3.6.X | Advanced BBCode Permissions 3.5.X 3.6.X | Can't See Attachments Before Thanking a Post 3.5.X | Can't Thank and Groan the Same Post 3.5.X | Delete Post when Giving Infraction 3.6.X | Edit New Thread Button 3.5.X | External Data Provider Usergroup Permissions Setting 3.5.X | Forms Hack 3.5.X, 3.6.X | Log Logins Hack 3.5.X 3.6.X | Moderator Statistics 3.5.X | Post Award Hack 3.0.X 3.5.X | [AJAX] Post Thank You Hack 3.0.X 3.5.X 3.6.X | [AJAX] Post Groan Hack 3.5.X 3.6.X | Post Thank You Hack Stats for vBadvanced CMPS 2.x 3.5.X | Search Title only in search drop-down 3.5.X, 3.6.X | 'vBMenu' DHTML User Option 3.5.X 3.6.X | vBShout on all pages! 3.5.X No members have liked this post.
|
#93
|
|||
|
|||
I think it's some sort of bug with 3.8.0 beta2 where the attachment_display hook is called twice for files where the browser is forcing the user to download the file.
I reported the bug here. I did some more tests and actually believe that the entire attachment.php script may be being called twice for some reason. ![]() I haven't had a chance to go back and check this on my 3.7 test forum yet. For now I think I'll wait and see what happens with the bug report over at vbulletin.com Thanks, James No members have liked this post.
|
#94
|
|||
|
|||
Will try this later
No members have liked this post.
|
#95
|
||||
|
||||
Is there any similar mod for 3.8.x, tried searching but couldn't find.
Hope this one gets updated at least. It is very useful but I've tried it and it gives wrong date like year 1970 or 2070 and some members reported that they didn't download anything close to the limit and they were still restricted from downloading. No members have liked this post.
|
#96
|
||||
|
||||
Actually uninstalled it and installed again, it seems to work fine now. I ran build bitfields afterward just to see if that helps, don't know if it did or not, but glad it is working fine now.
No members have liked this post.
|
#97
|
||||
|
||||
Ok, found where the bug is.
If the member has additional usergroup assigned. He is given the restriction on first download attempt and year is 1970. Any idea for a fix please? No members have liked this post.
|
#98
|
|||
|
|||
If this mod ever works for unregistered users please let me know!
My forum is set up as a photo galleries forum with 100,000+ photos. I'd love to be able to limit guests to say 20 attachment views per day. 'Good incentive to register, without scaring them off completely. No members have liked this post.
|
#99
|
||||
|
||||
very nice
No members have liked this post.
Last edited by zevkopat; 30 Aug 2009 at 09:26. |
#100
|
|||
|
|||
downloaded, installed, works perfectly!
No members have liked this post.
|
#101
|
|||
|
|||
plugin work on 3.8x ?
No members have liked this post.
|
#102
|
|||
|
|||
not worked on 4.0.3
plz updated this hack No members have liked this post.
|
#103
|
|||
|
|||
pleas upgrade this hack
No members have liked this post.
|
#104
|
||||
|
||||
New version posted here: http://www.vbulletin.org/forum/showthread.php?t=241727
__________________
MY HACKS - Active Link Security 3.0.X | Add Title to Rank Images 3.5.X | Admin Log In As User 3.5.X 3.6.X | Advanced BBCode Permissions 3.5.X 3.6.X | Can't See Attachments Before Thanking a Post 3.5.X | Can't Thank and Groan the Same Post 3.5.X | Delete Post when Giving Infraction 3.6.X | Edit New Thread Button 3.5.X | External Data Provider Usergroup Permissions Setting 3.5.X | Forms Hack 3.5.X, 3.6.X | Log Logins Hack 3.5.X 3.6.X | Moderator Statistics 3.5.X | Post Award Hack 3.0.X 3.5.X | [AJAX] Post Thank You Hack 3.0.X 3.5.X 3.6.X | [AJAX] Post Groan Hack 3.5.X 3.6.X | Post Thank You Hack Stats for vBadvanced CMPS 2.x 3.5.X | Search Title only in search drop-down 3.5.X, 3.6.X | 'vBMenu' DHTML User Option 3.5.X 3.6.X | vBShout on all pages! 3.5.X No members have liked this post.
|
#105
|
|||
|
|||
need limit for unregistered users on this hack.. !!
No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 00:17.