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)

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!


All times are GMT. The time now is 09:00 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.01167 seconds
  • Memory Usage 1,733KB
  • 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
  • (3)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