vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.5 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=113)
-   -   Links and Downloads Manager (https://vborg.vbsupport.ru/showthread.php?t=91107)

LeeWicKeD 04-15-2006 07:37 PM

Seems to work without any issues! Thank you very much...should be added to the FAQ :)

M_A_D 04-15-2006 07:59 PM

Quote:

Originally Posted by Tyegurl
andrewd ... not sure what this is... well i know what it is i just don't understand why.... i moved a folder to another category and ever since i get this error...

Database error in vBulletin 3.5.4:

Invalid SQL:

SELECT * FROM local_linksdownloads
WHERE linkid='510' AND userid='32' AND usertime>'1144511097'
LIMIT 1;

MySQL Error : Lost connection to MySQL server during query
Error Number : 2013
Date : Saturday, April 8th 2006 @ 08:45:45 AM
Script : http://www.teamrespawn.com/vBulletin...d=510&catid=16
Referrer : http://www.teamrespawn.com/vBulletin...N&page=4&pp=10


now the downloaders are telling me they download without a problem....which is what i don't understand. can you possibly shed some light on it?


I am also getting that error message in my mail quite frequently. Seems that it is affecting hit recording.
I checked it out today and after i downloaded 4 files it showed that i made 2 hits. Then i checked my mail and i had two of those error mails with my username...


I'm also having another problem. I have restricted the daily download for registered users to a maximum of 5 files yet i can see people having accessed more than 5 files in the last 24 hrs...
For example there is a user who has had 6 hits in the last 24 hrs. All of those 6 hits happend within a 10 minute time frame.


EDIT:
I just got another mail:
Quote:

Database error in vBulletin 3.5.4:

Invalid SQL:

SELECT * FROM local_linksdownloads
WHERE linkid='221' AND userid='136' AND usertime>'1145133833'
LIMIT 1;

MySQL Error : Lost connection to MySQL server during query
Error Number : 2013
Date : Saturday, April 15th 2006 @ 08:58:41 PM
Script : http://world-of-japan.org/forum/loca...d=221&catid=28
Referrer : http://www.world-of-japan.org/forum/...s.php?catid=28
IP Address : 71.139.34.195
Username : edo421
Classname : vb_database
I then checked in the DB and the query above would return nothing because in the table local_linksdownloads there is no entry with linkid=221 and userid=136

Tyegurl 04-15-2006 08:36 PM

Quote:

Originally Posted by AndrewD
Section 4.6 of the on-line manual explains the Jukebox. As far as I know, it only works with users running Windows (I don't use Linux, etc, myself, so can't tell). It doesn't matter what the web server is running on.

You need to set some admin settings and permissions, and then the little filetype icon to the left of the entry name in the linkbit turns into a 'play me' icon for appropriate filetypes. Click this and a new window is launched, running an embedded Windows Media Player, RealPlayer or QuickTime player.


thanks alot!

Tyegurl 04-15-2006 08:36 PM

Quote:

Originally Posted by M_A_D
I am also getting that error message in my mail quite frequently. Seems that it is affecting hit recording.
I checked it out today and after i downloaded 4 files it showed that i made 2 hits. Then i checked my mail and i had two of those error mails with my username...

EDIT:
I just got another mail:

I then checked in the DB and the query above would return nothing because in the table local_linksdownloads there is no entry with linkid=221 and userid=136


i am still getting them too....

Tyegurl 04-15-2006 08:38 PM

Quote:

Originally Posted by M_A_D
I'm also having another problem. I have restricted the daily download for registered users to a maximum of 5 files yet i can see people having accessed more than 5 files in the last 24 hrs...
For example there is a user who has had 6 hits in the last 24 hrs. All of those 6 hits happend within a 10 minute time frame.


what is the file size limit...try to alter that?

Tyegurl 04-15-2006 09:34 PM

btw the jukebox you have works much better than the vJukebox....not as many problems with uploading and playing the files ;) tyvm

AndrewD 04-16-2006 05:28 AM

Quote:

Originally Posted by M_A_D
I am also getting that error message in my mail quite frequently. Seems that it is affecting hit recording.
I checked it out today and after i downloaded 4 files it showed that i made 2 hits. Then i checked my mail and i had two of those error mails with my username...

EDIT:
I just got another mail:

I then checked in the DB and the query above would return nothing because in the table local_linksdownloads there is no entry with linkid=221 and userid=136

This SQL squery is a check to see if the same user has made a hit on the same entry within the last few seconds. It's made to prevent double counting if, for example, the user 'double clicks' the url. So most of the time it should not return anything. I will need to investigate why it is generating database errors. However, you should be able to disable the message (and check) by setting the admin value timeout_hit_recording to zero.

Quote:

Originally Posted by M_A_D
I'm also having another problem. I have restricted the daily download for registered users to a maximum of 5 files yet i can see people having accessed more than 5 files in the last 24 hrs...
For example there is a user who has had 6 hits in the last 24 hrs. All of those 6 hits happend within a 10 minute time frame.

Are all your entries 'downloads' (in the sense that LDM uses - i.e. they have filetypes that appear in the VB attachments table) or are there also some entries which have filetypes that are not in the mimetypes table?

Assuming everything is working ok, LDM *only* places daily limits on the first group, not on the second.

There is a second possibility, since you mention that the hits are in quick succession. Each 'hit' is only recorded when it completes, consequently if a user starts multiple downloads in quick succession, then she may be able to bypass the daily limits. If necessary, we might be able to find ways to prevent that occurring.

Please confirm - I will check the code in more detail if necessary.

AndrewD 04-16-2006 05:29 AM

Quote:

Originally Posted by Tyegurl
i am still getting them too....

Please let me know which versions of php and mysql/mysqli you are using

M_A_D 04-16-2006 06:51 AM

Quote:

Originally Posted by AndrewD
This SQL squery is a check to see if the same user has made a hit on the same entry within the last few seconds. It's made to prevent double counting if, for example, the user 'double clicks' the url. So most of the time it should not return anything. I will need to investigate why it is generating database errors. However, you should be able to disable the message (and check) by setting the admin value timeout_hit_recording to zero.

Thanks, i will try changing that value.


Quote:

Originally Posted by AndrewD
Are all your entries 'downloads' (in the sense that LDM uses - i.e. they have filetypes that appear in the VB attachments table) or are there also some entries which have filetypes that are not in the mimetypes table?

Assuming everything is working ok, LDM *only* places daily limits on the first group, not on the second.

There is a second possibility, since you mention that the hits are in quick succession. Each 'hit' is only recorded when it completes, consequently if a user starts multiple downloads in quick succession, then she may be able to bypass the daily limits. If necessary, we might be able to find ways to prevent that occurring.

Please confirm - I will check the code in more detail if necessary.

Yes, all my downloads are .zip files, so it seems the second possibility is correct. But i guess i can live with that.


Oh, and if it helps, i am using php 4.4.2 and mysql 5.0.15

Tyegurl 04-16-2006 02:00 PM

Quote:

Originally Posted by AndrewD
Please let me know which versions of php and mysql/mysqli you are using

(what vbulletin says i use lol)
PHP 4.3.11
MySQL Version 4.0.24-max-log

and my timeout was set to 0
yet i still get the emails but it downloads the file just fine.


All times are GMT. The time now is 02:16 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.03840 seconds
  • Memory Usage 1,761KB
  • 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
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (5)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