vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   uCash & uShop (https://vborg.vbsupport.ru/forumdisplay.php?f=100)
-   -   Thief suggestion (https://vborg.vbsupport.ru/showthread.php?t=77833)

mykes 03-10-2005 03:03 AM

Thief suggestion
 
I'm guessing this is a good place to make a suggestion.

When someone tries to steal from you, you get a timer set that makes you invulnerable from theft for that period of time.

This is to prevent a user from repeatedly thieving from another.

I'm not a PHP coder, but the logic is this:

It's one more table field for the timer.

if (user_timer > current_time) {
can_be_thefted();
user_timer = current_time + 10 minutes; // write user_timer to database user table
}
else {
error_can't_be_thefted_yet();
}

At worst, one query to check the timer. I'd make the '10 minutes" an option in admincp.

sim tech 03-27-2005 07:06 PM

That's a really good idea! I constantly have had problems with members attacking someone else over and over.

Where should this code go, and can I increase it to perhaps once every 12 hours.

Thanks for the great mod!


All times are GMT. The time now is 10:03 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.00899 seconds
  • Memory Usage 1,700KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete