vb.org Archive

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

minky1 07-16-2008 08:03 AM

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 08-04-2008 07:10 AM

does it work with 3.7.2?

minky1 08-11-2008 03:38 PM

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 08-22-2008 08:17 AM

I found the answer myself.

Seiyaboy 08-24-2008 10:54 AM

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-09-2008 01:47 PM

This was working very well until I installed the 'Guests can view thumbnails/Watermark hack (https://vborg.vbsupport.ru/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 09-14-2008 09:56 AM

work whit 3.7 :)

haytham 09-23-2008 10:00 AM

Anyone has it working on 3.7.2?

mark370 11-03-2008 05:18 PM

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

Code:

You have reached your download limit. You will be able to download again on xx-xx-xxxx at xx:xx PM

JamesAB 11-15-2008 03:03 AM

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:
Code:

You have reached your download limit. You will be able to download again on 11-14-2008 at 11:53 PM.
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 11-15-2008 03:24 AM

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 11-16-2008 07:24 PM

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 11-17-2008 09:23 PM

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 01-21-2009 05:47 PM

Will try this later

Karabaja 04-14-2009 05:40 PM

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 04-17-2009 12:21 PM

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 04-17-2009 05:52 PM

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 08-09-2009 07:42 PM

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 08-30-2009 04:24 AM

very nice

adamskis_sidefx 11-16-2009 07:42 AM

downloaded, installed, works perfectly!

asabiyim 03-24-2010 09:00 AM

plugin work on 3.8x ?

irantk 04-19-2010 07:49 PM

not worked on 4.0.3
plz updated this hack

irantk 04-22-2010 09:27 PM

pleas upgrade this hack

Abe1 05-02-2010 06:54 PM

New version posted here: https://vborg.vbsupport.ru/showthread.php?t=241727

asabiyim 05-25-2010 11:39 PM

need limit for unregistered users on this hack.. !!

1F42 01-21-2013 07:31 PM

What does the reset do? As nothing seems to happen I thought it would reset the usergroups, but it didnt.




Quote:

Originally Posted by asabiyim (Post 2043412)
need limit for unregistered users on this hack.. !!

Why don't you deny them the ability unless there regged?

LinksFreak 05-13-2014 01:03 PM

nice hack


All times are GMT. The time now is 06:41 AM.

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.01266 seconds
  • Memory Usage 1,771KB
  • 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_code_printable
  • (6)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
  • (27)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