View Single Post
  #1668  
Old 04-16-2006, 05:28 AM
AndrewD AndrewD is offline
 
Join Date: Jul 2002
Location: Scotland
Posts: 3,486
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01004 seconds
  • Memory Usage 1,767KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete