vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=152701

Limit Attachment Downloads
by Abe1
19 Jul 2007 05:41

5 Attachment(s)
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.
  • Files edited: 0
  • Templates edited: 0
  • Files to upload: 2 (1 via ACP, 1 via FTP)
  • Time to install: 1 minute

Updates:
Version 1.0 (7/19/07):
  • First Release of this Hack

Version 1.1 (7/19/07):
  • [FIXED] MAJOR BUG, the main table needed was not being installed, causing database errors.
  • [CHANGED] I moved over the attachment limit to the usergroup settings to give an option of different download amounts per usergroup.

Version 1.2 (7/19/07):
  • [FIXED] I REALLY now fixed the MAJOR BUG, the main table needed was not being installed, causing database errors.

Version 1.3 (7/29/07):
  • [ADDED] I added a lot more options to 'Download Limit Time Frame' option.
  • [CHANGED] Thumbnails are not counted as download attachments.

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

shadowevil 19 Jul 2007 06:03

first post ... nice mod ... *installed*

Roflstilzchen 19 Jul 2007 06:14

cool hack, thank you :)

[edit] doesn´t work with 3.6.5 :(

Hornstar 19 Jul 2007 06:39

This is something that heaps of people have been wanting for ever! very nice work.
Will install it on my site very soon.

I have some ideas for extra features, if your interested in expanding it, let me know.

thanks.

bashy 19 Jul 2007 06:50

Hi
Great idea, i will take a look at it tonight Abe1, thanks :)
Perhaps 1 post could reset the limit?
Also, would this work with Downloads II or, could you make this work with it please Abe1?

mhammed 19 Jul 2007 10:43

don't work
database error when downloading of a group subjected to this hack

Abe1 19 Jul 2007 12:04

Quote:

Originally Posted by mhammed (Post 1295490)
don't work
database error when downloading of a group subjected to this hack

Can you post the error message?
Quote:

Originally Posted by Roflstilzchen (Post 1295347)
cool hack, thank you :)

[edit] doesn´t work with 3.6.5 :(

What doesn't work?

Abe1 19 Jul 2007 13:22

Version 1.1 (7/19/07):
  • [FIXED] MAJOR BUG, the main table needed was not being installed, causing database errors.
  • [CHANGED] I moved over the attachment limit to the usergroup settings to give an option of different download amounts per usergroup.

Upload BOTH files again.

mhammed 19 Jul 2007 13:53

install the 2 end version
member can download 1 st file
the second file give database error

Roflstilzchen 19 Jul 2007 15:37

Quote:

Originally Posted by Abe1 (Post 1295596)
Version 1.1 (7/19/07):
  • [FIXED] MAJOR BUG, the main table needed was not being installed, causing database errors.
  • [CHANGED] I moved over the attachment limit to the usergroup settings to give an option of different download amounts per usergroup.

Upload BOTH files again.

uploaded new files, deinstalled old hack and installed new one, controlled settings but still doesn´t work.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Abe1 19 Jul 2007 18:17

Quote:

Originally Posted by Roflstilzchen (Post 1295686)
uploaded new files, deinstalled old hack and installed new one, controlled settings but still doesn´t work.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Can you uninstall then re-install?

Roflstilzchen 19 Jul 2007 19:36

Quote:

Originally Posted by Abe1 (Post 1295818)
Can you uninstall then re-install?

that´s what i meant with deinstalling and installing the new one.

Abe1 19 Jul 2007 20:50

Any way I can check you ACP?

DJ XtAzY 19 Jul 2007 21:08

Awesome! Now i dont need to use the points to download attachments for our members =]

Roflstilzchen 19 Jul 2007 21:36

Quote:

Originally Posted by Abe1 (Post 1295928)
Any way I can check you ACP?

you´ve got a pm :cool:

Abe1 20 Jul 2007 03:32

Version 1.2 (7/19/07):
  • [FIXED] I REALLY now fixed the MAJOR BUG, the main table needed was not being installed, causing database errors.

Roflstilzchen 20 Jul 2007 03:58

thank you, works great now :)

Virtuosofriend 20 Jul 2007 13:04

Great work mate. Is it possible, i still havent installed so i dont know, to limit it per forum?

Abe1 20 Jul 2007 13:17

Quote:

Originally Posted by Virtuosofriend (Post 1296428)
Great work mate. Is it possible, i still havent installed so i dont know, to limit it per forum?

No. It is only done on a usergroup level.

PlymWS 26 Jul 2007 18:21

If a user reaches their limit, will they still be able to see the thumbnails of attachment images or will they not be displayed ?

This mod would suit my site fantastically but I would still need users to be able to see thumbnails when they have reached their limit.

chapsrulez 27 Jul 2007 17:14

Installed and working.
Great work.
thanks.

Quote:

Originally Posted by Virtuosofriend (Post 1296428)
Great work mate. Is it possible, i still havent installed so i dont know, to limit it per forum?

I think it can be done, in my site i have a download subforum, and per usergoups i deny the downloads. on all other subforums downloads are enable.

Quote:

Originally Posted by PlymWS (Post 1302330)
If a user reaches their limit, will they still be able to see the thumbnails of attachment images or will they not be displayed ?

This mod would suit my site fantastically but I would still need users to be able to see thumbnails when they have reached their limit.

In my site works
I didn't enabled the plugin for "jpg, gif, png and psd files" and enabled it for .dwg, .3ds, .rar, .zip, etc.
When a user uploads a new attachment in (dwg, 3ds, rar, etc) i create a thumb so user sees what they are downloading.

PlymWS 27 Jul 2007 17:55

Quote:

Originally Posted by PlymWS (Post 1302330)
If a user reaches their limit, will they still be able to see the thumbnails of attachment images or will they not be displayed ?

This mod would suit my site fantastically but I would still need users to be able to see thumbnails when they have reached their limit.

This was easier than I thought. For everyone else who wants this feature :

ACP -> Products & Plugins -> Plugin Manager -> Edit attachment_display thus :

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Save.

Abe1 29 Jul 2007 06:06

Version 1.3 (7/29/07):
  • [ADDED] I added a lot more options to 'Download Limit Time Frame' option.
  • [CHANGED] Thumbnails are not counted as download attachments.

Just re-upload the product XML file.

PlymWS 29 Jul 2007 14:12

The product download is for 1.2 yet the latest version is 1.3 ???

Abe1 29 Jul 2007 15:36

Quote:

Originally Posted by PlymWS (Post 1304543)
The product download is for 1.2 yet the latest version is 1.3 ???

Sorry, forgot to change the file. Check now.

Hornstar 01 Aug 2007 04:51

Some of my suggestions for a future update:
1. Any chance to add captcha to the attachments as an option?
2. If users go over allowed attachments, add a count down timer, that they will have to wait before they can download.

These 2 options would be mod of the month for sure!

gforce75 01 Aug 2007 05:13

Very good concept :p

Abe1 01 Aug 2007 12:58

Quote:

Originally Posted by hornstar1337 (Post 1306693)
1. Any chance to add captcha to the attachments as an option?

Not sure what you mean. How would this help this hack.
Quote:

Originally Posted by hornstar1337 (Post 1306693)
2. If users go over allowed attachments, add a count down timer, that they will have to wait before they can download.

This is a feature already! If you try to download an attachment after you used your time already, then it tells you how much time you have left. (look at the first image in the main post)

lasto 04 Aug 2007 19:41

this is quite good but how about if a user uploads an attachment in a specific forum then their attachment limit goes up by 1

This would encourage people to just not download attachments but also to upload stuff which is relevant to the site in question.

Abe1 05 Aug 2007 03:15

Quote:

Originally Posted by lasto (Post 1309781)
this is quite good but how about if a user uploads an attachment in a specific forum then their attachment limit goes up by 1

This would encourage people to just not download attachments but also to upload stuff which is relevant to the site in question.

If a user uploads an attachment, then they get an extra download?

lasto 05 Aug 2007 05:41

yep because this hack limits them to how many per day/month etc but no incentive to try boost their limit back up.
Not sure if u can pull it off but cheers for hack Abe1

Hornstar 08 Aug 2007 06:22

Quote:

Originally Posted by hornstar1337 (Post 1306693)
Some of my suggestions for a future update:
1. Any chance to add captcha to the attachments as an option?
2. If users go over allowed attachments, add a count down timer, that they will have to wait before they can download.

These 2 options would be mod of the month for sure!

Quote:

Originally Posted by Abe1 (Post 1306992)
Not sure what you mean. How would this help this hack.This is a feature already! If you try to download an attachment after you used your time already, then it tells you how much time you have left. (look at the first image in the main post)


1. I have 90 00 members on my site, I had a thread created 4 days ago which had a 1.9 meg attachment in it. within 4 days, 30 000 people have downloaded it, that is almost 60GB of bandwidth! I doubt those downloads were unique!

People can login create a bot, and then have that bot keep downloading that attachment to waste bandwidth. Having a catpcha image, would make the bot useless.

Not everyone may want this, but at least having the option in the admincp to turn it on/off would be great! as I would use it for sure!

2. I mean like rapidshare, if they go over then the countdown timer starts exactly like rapidshare, with ajax, so they dont have to refresh etc.

thanks.

iDenis 09 Aug 2007 12:43

Thanks...nice mod ...

But now I'm have a simple problem...

Group "Unregistered / Not Logged In" don't have "Limit Attachment Downloads" and "Download Attachment Limit" parameters :confused:

Abe1 10 Aug 2007 13:58

Quote:

Originally Posted by hornstar1337 (Post 1312413)
1. I have 90 00 members on my site, I had a thread created 4 days ago which had a 1.9 meg attachment in it. within 4 days, 30 000 people have downloaded it, that is almost 60GB of bandwidth! I doubt those downloads were unique!

People can login create a bot, and then have that bot keep downloading that attachment to waste bandwidth. Having a catpcha image, would make the bot useless.

Not everyone may want this, but at least having the option in the admincp to turn it on/off would be great! as I would use it for sure!

This would be a totally separate hack.
Quote:

Originally Posted by hornstar1337 (Post 1312413)
2. I mean like rapidshare, if they go over then the countdown timer starts exactly like rapidshare, with ajax, so they dont have to refresh etc.

thanks.

I dont think I'll add it.

Hornstar 14 Aug 2007 02:44

K, but it would be really cool to have it all in one, with options to turn certain things on/off

Abe1 17 Aug 2007 16:54

Quote:

Originally Posted by hornstar1337 (Post 1316965)
K, but it would be really cool to have it all in one, with options to turn certain things on/off

You do.

Hornstar 18 Aug 2007 08:41

Quote:

Originally Posted by Abe1 (Post 1319680)
You do.

was referring to the extra features I mentioned above :) would be cool to have those built in :)

Zi55 04 Sep 2007 01:05

hello ,
if you can add a small feature for it make it limited by IP not by the username , because he can have other username directly and contine downloading , also if you can add speed limit feature it's will be too much nice ,
I really like you hack .
Thanks ,
Zi5

Red Spider 10 Sep 2007 22:02

thank you SOOOO much :D

canntoon 12 Sep 2007 00:27

Quote:

Originally Posted by iDenis (Post 1313487)
Thanks...nice mod ...

But now I'm have a simple problem...

Group "Unregistered / Not Logged In" don't have "Limit Attachment Downloads" and "Download Attachment Limit" parameters :confused:

Yeah I'm having this same issue.

xandizitxu 12 Sep 2007 00:46

Thanks a lot! I was looking forward for it ^^

Seiyaboy 12 Sep 2007 12:32

I know this mod is said to be for 3.6.8, but I seriously don't plan on upgrading my 3.6.7PL board at this point. If there aren't much datebase and table changes between the 2 versions, this mod should still work for 3.6.7PL right?


EDITED:
Yes, it works for 3.6.7PL. Thank you very much for this wonderful mod.

xandizitxu 12 Sep 2007 22:35

Hey! Just want to make a board free of Limit Download is it possible?

xandizitxu 13 Sep 2007 04:13

it bugged my vbtt :/ had to uninstall

puertoblack2003 27 Oct 2007 15:31

where in phrase can i change the wording when they reach the certain amount of downloads, i want to add few things

-pb

Total666 27 Oct 2007 16:34

Weird , I can install this but I can't seem to find the attachment limit setting like http://www.vbulletin.org/forum/attac...3&d=1184847662


this will be great when I get this working ,, Total

puertoblack2003 27 Oct 2007 16:38

Quote:

Originally Posted by Total666 (Post 1369748)
Weird , I can install this but I can't seem to find the attachment limit setting like http://www.vbulletin.org/forum/attac...3&d=1184847662


this will be great when I get this working ,, Total

yea i had the same problem try to unistall it and install it again that helped for me

Total666 27 Oct 2007 17:13

Uninstalled -- then re-installed still not working .. :(

puertoblack2003 27 Oct 2007 17:18

Quote:

Originally Posted by Total666 (Post 1369772)
Uninstalled -- then re-installed still not working .. :(


you checked under usergroup? thats where you have to go to config and then go under attachment and chose which attachments you want to limit

Total666 27 Oct 2007 17:44

Quote:

Originally Posted by puertoblack2003 (Post 1369779)
you checked under usergroup? thats where you have to go to config and then go under attachment and chose which attachments you want to limit


I did not check under usergroup , thanks so much ... Working now , Total

puertoblack2003 27 Oct 2007 18:01

Quote:

Originally Posted by Total666 (Post 1369798)
I did not check under usergroup , thanks so much ... Working now , Total


lol no proms now waiting for my help...lmao

Alibass 27 Oct 2007 23:58

Quote:

Originally Posted by iDenis
Thanks...nice mod ...

But now I'm have a simple problem...

Group "Unregistered / Not Logged In" don't have "Limit Attachment Downloads" and "Download Attachment Limit" parameters :confused:

Quote:

Originally Posted by canntoon (Post 1337288)
Yeah I'm having this same issue.

I am having same issues, but I am guessing this hack is for registered users only. Seems a little ridiculous to try and put a time limit on a guest when you have so many of them visiting your board and no way of controlling who has or has not downloaded a file from your board. :(
Might be a nice feature if this hack had a way to record IPs from guest and maybe allow limited downloads by their address.

i done but no more option
by asforum
28 Oct 2007 07:14

I installed it, but it showing me only one option like the time beetween two attechment.

what abt attechment size and everything , can i control that too or only time.

Abe1 28 Oct 2007 17:19

Quote:

Originally Posted by asforum (Post 1370205)
I installed it, but it showing me only one option like the time beetween two attechment.

what abt attechment size and everything , can i control that too or only time.

Did you upload the file to your ftp?

class101 31 Oct 2007 18:13

would be nice Abe1 to integrate in to the Project Tools, I'm looking yet to integrate it to my project tools downloads cos it is working fine on the forum but I'm sure thats a small update for project tools, any idea dude?

ocktra 01 Nov 2007 16:22

Thanks so much. /installed

DrHUS 03 Nov 2007 18:24

Hello Abe1
is your add-one can limit / denied using of download accelerator like program? (the programs using multi-part downloading .. that open 5-10 connection to download the same file? ..)
or is there some hack can do this ?? (limit the connection during the download of file with ONE just ..)

Sandy-XXX 03 Nov 2007 19:36

Hi,

Im looking for a hack to let me show the thumbnails to the unregistered users, but dont let they download the attachment (or limit the download) if they dont register and log in.

This hack can help me with that?

Thanks...

puertoblack2003 11 Nov 2007 23:31

hey abe1,

i ran into a problem and received a much of pm's from my members

well basically members that never downloaded any attachments received a message that they will have to wait x amount of time and a members forwarded the message and found that the dates if off wacked.

sample message:

Quote:

You have reached your download limit. You will be able to download again on 01-01-1970 at 01:00 PM. Or to avoid this error MESSAGE, and continue to download more program. You can subscribe as a premium member. Ask an admin for details.
that extra message i added,is there a fix for that issue

Abe1 12 Nov 2007 01:55

Quote:

Originally Posted by DrHUS (Post 1374912)
Hello Abe1
is your add-one can limit / denied using of download accelerator like program? (the programs using multi-part downloading .. that open 5-10 connection to download the same file? ..)
or is there some hack can do this ?? (limit the connection during the download of file with ONE just ..)

It counts how many attachments a user has download.
Quote:

Originally Posted by puertoblack2003 (Post 1380596)
hey abe1,

i ran into a problem and received a much of pm's from my members

well basically members that never downloaded any attachments received a message that they will have to wait x amount of time and a members forwarded the message and found that the dates if off wacked.

sample message:



that extra message i added,is there a fix for that issue

I would need to look into this user along with acp access to figure it out.

rin 12 Nov 2007 13:45

I probably did something wrong here. Anyway, I would like to ask you.
I uploaded and imported your hack. I went to vBulletin Options "Limit Attachment Downloads" and turned that on. I changed "Download Limit Time Frame" to 30 Minutes (I think this means the user needs to wait 30 minutes until he can download again, right?)
So I went to Attachment Manager and changed the values for ZIP files, cause I only want to test it with ZIP's for now. I changed "Limit Downloads with this Attachment Type" to Yes.
Then I went to the Usergroup Manager and edited the Administrator Attachment privileges.
But no matter how often I change the value to YES, when I reload the privileges page, it changed back to No.... :-/

rin 12 Nov 2007 13:49

Ok, I reinstalled it and its actually changed to Yes now. But anyway, I can still download as many times I want.
"Download Attachment Limit" is set to 2. So in my understanding, this should let me get 2 downloads in 30 minutes.

rin 12 Nov 2007 15:47

It seems to be working now.
Not sure though. Is it possible to download the same file X time even with the limitation in place? Or is this because it's cached in the browser?

Zi55 20 Nov 2007 12:25

Any updates on hack?

ocktra 24 Nov 2007 07:01

Quote:

Originally Posted by rin (Post 1381004)
It seems to be working now.
Not sure though. Is it possible to download the same file X time even with the limitation in place? Or is this because it's cached in the browser?

How did you fix the problem you had before? It seems to be allowing me to download endlessly.

Abe1 29 Nov 2007 01:59

Quote:

Originally Posted by Zi55 (Post 1386162)
Any updates on hack?

To do what?

ReQueM 30 Nov 2007 13:21

thanks for this great hack :)

leroub 03 Dec 2007 05:19

fantastic hack.... thx abe1.... *installed* :D

Zi55 03 Dec 2007 20:18

Abe1
We wanna you to add new feature for this hack like , speed limit , member change protect , and anything new , because it's really cool hack .
Thanks

class101 03 Dec 2007 20:37

uninstalled me because it does not limit project tools attachements and blog attachement, no need of an addon doing half of its job...

rin 04 Dec 2007 11:51

Quote:

Originally Posted by ocktra (Post 1388462)
How did you fix the problem you had before? It seems to be allowing me to download endlessly.

I was logged in as administrator. It seems like admins can download as much as they want.
Try creating a regular user and see if you can still download as you please.

linnov 08 Dec 2007 02:23

OK I tried a bunch of things and I still get this problem

i turn the hack off

empty the attachment_limit table

turn it on

when a user tries to download they get this message

You have reached your download limit. You will be able to download again on 01-01-1970 at 07:00 PM.

any ideas

using 3.6.8 pl2
PHP Version 5.2.5-pl0-gentoo
apache 2

katan 12 Dec 2007 18:41

thanks you!!!

Zi55 13 Dec 2007 05:34

Abe1
We hope to see in your hack MaxConnections feature to attachments

saotome 15 Mar 2008 17:10

very good click installed and nominated for this months :D thanks

M.Kay 10 Apr 2008 05:53

Quote:

Originally Posted by linnov (Post 1397134)
OK I tried a bunch of things and I still get this problem

i turn the hack off

empty the attachment_limit table

turn it on

when a user tries to download they get this message

You have reached your download limit. You will be able to download again on 01-01-1970 at 07:00 PM.

any ideas

using 3.6.8 pl2
PHP Version 5.2.5-pl0-gentoo
apache 2


same here :erm:
did you fix this problem ?

linnov 10 Apr 2008 13:11

nope i just un installed it

minky1 01 May 2008 10:35

I love this hack, but how can I edit the text that a user see's when they hit the limit ?

Abe1 04 May 2008 16:30

Quote:

Originally Posted by minky1 (Post 1504292)
I love this hack, but how can I edit the text that a user see's when they hit the limit ?

Edit the phrase.

Cyborg86 16 Jun 2008 23:19

Anyone tried if this mod works with 3.7 ?

Thanks,

minky1 16 Jul 2008 10:03

Quote:

Originally Posted by Abe1 (Post 1508144)
Edit the phrase.

Sorry for being thick, but where ?
I can edit it before installing it and it works, but can it be edited/changed after installing ?

yahoooh 04 Aug 2008 09:10

does it work with 3.7.2?

minky1 11 Aug 2008 17:38

Quote:

Originally Posted by minky1 (Post 1576601)
Sorry for being thick, but where ?
I can edit it before installing it and it works, but can it be edited/changed after installing ?

Any answer to this ?

Thanks.

minky1 22 Aug 2008 10:17

I found the answer myself.

Seiyaboy 24 Aug 2008 12:54

Quote:

Originally Posted by minky1 (Post 1576601)
Sorry for being thick, but where ?
I can edit it before installing it and it works, but can it be edited/changed after installing ?

Yes you can. But you'll need to customize it though the phrase manager. It's so much easier to just edit the xml and reinstall it.

minky1 09 Sep 2008 15:47

This was working very well until I installed the 'Guests can view thumbnails/Watermark hack (http://www.vbulletin.org/forum/showthread.php?t=141883).

Now it doesn't work, it just lets anyone download any amount instead of bringin up the message, If I disable the 'Guests can view thumbnails/Watermark' hack then it works again.

Thats a pain, I really need both to work :(

sina1808 14 Sep 2008 11:56

work whit 3.7 :)

haytham 23 Sep 2008 12:00

Anyone has it working on 3.7.2?

mark370 03 Nov 2008 19:18

Has anyone had this working on 3.7.3 pl1 all we are getting is the error message below.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


JamesAB 15 Nov 2008 05:03

I love the idea of this mod and I hope we can use it on 3.8.

I'm testing this out on vB 3.8.0 beta2.

It half works for me. Or maybe it's working twice as well. :rolleyes:

My problem is that every time an attachment is clicked on, it is getting counted twice.

I checked the entries in phpMyAdmin and I see that each time an attachment is clicked, two rows are being added to my attachment_limit table.

For example, I set the attachment limit to be 5.

The first time an attachment is clicked, it adds two rows to the attachment_limit table.
The second time an attachment is clicked, it adds another two rows to the attachment_limit table.
The third time an attachment is clicked, it adds a row (the fifth row) and then puts up the message:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Abe1 or anyone else notice this behavior while testing in 3.8 ? Or can suggest how to correct the double entries for each attachment download?

Thanks,
James

JamesAB 15 Nov 2008 05:24

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? :confused:

Thanks,
James

Abe1 16 Nov 2008 21:24

Quote:

Originally Posted by JamesAB (Post 1665908)
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? :confused:

Thanks,
James

I would hav to check your site out. Really wierd. Works fine in my tests.

JamesAB 17 Nov 2008 23:23

Quote:

Originally Posted by Abe1 (Post 1667007)
I would hav to check your site out. Really wierd. Works fine in my tests.

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. :confused:

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

dmknights 21 Jan 2009 19:47

Will try this later

Karabaja 14 Apr 2009 19:40

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.

Karabaja 17 Apr 2009 14:21

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.

Karabaja 17 Apr 2009 19:52

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?

z0diac 09 Aug 2009 21:42

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.

zevkopat 30 Aug 2009 06:24

very nice

adamskis_sidefx 16 Nov 2009 09:42

downloaded, installed, works perfectly!


All times are GMT. The time now is 06:51.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.