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)
-   -   Major Additions - Links and Downloads Manager (https://vborg.vbsupport.ru/showthread.php?t=119041)

obmob 04-09-2007 04:02 PM

Oh, thanls Andrew, i'll test them this week. :)

Slave 04-10-2007 07:47 AM

Update now installed :)

No problems with the upgrade and no bugs found so far .. this could change ;)

Suggestions:

If admin, allow to enter comments as other forum users. This is handy if someone has entered a link and written "war and peace" about the link. It would be cool to enter this extra info as a comment by the user on the link instead.

Quick link adding. If you enter a link LDM goes off and finds the meta-data and fills in the rest of the details from this info. (editable if required of course :))

I hope you had a good Easter Andrew!! :)

itsblack 04-11-2007 02:15 AM

Hi Andrew, today I try to use the allowance system to control the downloads. I let the registered user download 1 item every 1 day.
Attachment 62938

And I make a test myself. But I can download different item one after another! Right under the category descritption show that "Allowances: 1 files/ 2 used". That makes me confuse. I also disabled the option "can_bypass_bandwidth_limits ", so I can't figure it out, what's happened.

AndrewD 04-11-2007 04:23 AM

Quote:

Originally Posted by itsblack (Post 1224641)
Hi Andrew, today I try to use the allowance system to control the downloads. I let the registered user download 1 item every 1 day.
Attachment 62938

And I make a test myself. But I can download different item one after another! Right under the category descritption show that "Allowances: 1 files/ 2 used". That makes me confuse. I also disabled the option "can_bypass_bandwidth_limits ", so I can't figure it out, what's happened.

Are you 'downloading' or are you hitting 'links' - i.e do the entries that you are selecting have filetypes that are defined as downloads (i.e. with mimetype data in the VB attachments table).

The test for sufficient file/bandwidth allowances is only applied when you try to make a 'download'. For 'links', the allowances don't apply, because LDM doesn't manage the transfer.

However, you've found a bug in the reporting system ("Allowances: 1 files/ 2 used"), because the figure "2 used" is counting the links you have hit as well as your downloads. I'm surprised that this hasn't been noticed before, because the code in question hasn't changed for quite some time. (There's a piece missing in the sql query that I use to produce that report.) Sorry about that.

itsblack 04-11-2007 01:51 PM

Actually the most filetypes on my site is rar file. It is defined as "Content-type: unknown/unknown" in vb attachments table. Now I have changed it to "Content-type: application/rar". I think both ways are handled as download. But the problem remains.

Maybe, as you said, the LDM is always treat my rar download as hits. Because in the total LDM stastics (as VBA module) there is always "reserved: 0 Kbytes", though there are 1130 Hits. But I am sure, the most hits are rar-downloads from my own site.

Btw, when I submitt the new entry, the LDM can determine the file size.

AndrewD 04-11-2007 01:54 PM

Quote:

Originally Posted by itsblack (Post 1224971)
Actually the most filetypes on my site is rar file. It is defined as "Content-type: unknown/unknown" in vb attachments table. Now I have changed it to "Content-type: application/rar". I think both ways are handled as download. But the problem remains.

Maybe, as you said, the LDM is always treat my rar download as hits. Because in the total LDM stastics (as VBA module) there is always "reserved: 0 Kbytes", though there are 1130 Hits. But I am sure, the most hits are rar-downloads from my own site.

Btw, when I submitt the new entry, the LDM can determine the file size.

OK, then there's something wrong. I'll dig and report what I find.

AndrewD 04-11-2007 05:46 PM

Quote:

Originally Posted by itsblack (Post 1224971)
Actually the most filetypes on my site is rar file. It is defined as "Content-type: unknown/unknown" in vb attachments table. Now I have changed it to "Content-type: application/rar". I think both ways are handled as download. But the problem remains.

Maybe, as you said, the LDM is always treat my rar download as hits. Because in the total LDM stastics (as VBA module) there is always "reserved: 0 Kbytes", though there are 1130 Hits. But I am sure, the most hits are rar-downloads from my own site.

Btw, when I submitt the new entry, the LDM can determine the file size.

Have you got force_redirect set to 1?

I took a look through the database dump you sent me last week, and LDM is indeed serving these files as 'links' even though it's clear from your site (because the filesize is shown) that it knows that there is mimetype infomation available.

It's difficult for me to debug your site directly - Chinese is not one of my skills... - I'm impressed though by the range of philosophy you're making available.

itsblack 04-11-2007 06:37 PM

Yes, I set force_redirect = 1. Because when I set force_redirect = 0, there will be download error (download not completely), and I thought it will also take more server resource, So I prefer to set it to 1.

Is it possible, just let LDM judge the hit allowance has reached or not, when reached, then reject more hit.

btw, I have changed LDM to english version. And I've also move you to the registered usergroup, so you can directly vist my site. You can per LDM/Show menu get the eitries, there are also many entries used englisch. If you nedd admin account, just tell me.

Thanks again for your help.

AndrewD 04-11-2007 07:30 PM

Quote:

Originally Posted by itsblack (Post 1225208)
Yes, I set force_redirect = 1. Because when I set force_redirect = 0, there will be download error (download not completely), and I thought it will also take more server resource, So I prefer to set it to 1.

Is it possible, just let LDM judge the hit allowance has reached or not, when reached, then reject more hit.

btw, I have changed LDM to english version.

OK, now I understand. When force_redirect=1, the hit/bandwidth allowances don't currently come into effect. As LDM is not handling the transfer, I assumed that sites wouldn't want to restrict hits.

This can probably be changed, but it needs some thought.

With force_redirect=0, probably you are seeing transfers fail to complete for large files (I saw some very big files on your site), particularly if identified with a full url.

With the latest versions of LDM, you can set force_redirect on a per-category basis.

itsblack 04-11-2007 08:44 PM

Quote:

Originally Posted by AndrewD (Post 1225246)
With force_redirect=0, probably you are seeing transfers fail to complete for large files (I saw some very big files on your site), particularly if identified with a full url.

With the latest versions of LDM, you can set force_redirect on a per-category basis.

I need an overall downloads control, so set force_redirect on a per-category basis make no use for me.

For those links which link to other sites, I have created a single category to put them in, and I set this category bypass the allowance setting.


All times are GMT. The time now is 07:38 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.02831 seconds
  • Memory Usage 1,756KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (6)pagenav_pagelinkrel
  • (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