vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   why random question doesn't work? (https://vborg.vbsupport.ru/showthread.php?t=256566)

financehubs 01-05-2011 06:03 PM

why random question doesn't work?
 
Because of bot attacks, I just set up a few random questions that need calculations (e.g. how much is 2% of 100) to figure out an answer, and I tested myself a few minutes ago by registering with a wrong answer, but it still went thru - registration successful. Can someone help why the Q&A didn't work?

Lynne 01-05-2011 06:21 PM

What had you entered as the correct answer in the admincp?

financehubs 01-05-2011 06:25 PM

I entered 2 as the correct answer for the question 2% of 100 equals how much.

But the point is I randomly chose an answer which I know for sure doesn't match the answer I put in admincp, I was still able to get thru.

Digital Jedi 01-05-2011 06:30 PM

Have you tried requiring the answer to be written out, then putting "two" as the correct answer? Just to see if the short, one character answer is the problem.

Lynne 01-05-2011 06:32 PM

What version of vB? And you didn't put anything in the Regular Expression text area, right?

I just entered that exact question/answer on my default 4.1 test site and I got an error when I entered a wrong answer.

financehubs 01-05-2011 06:36 PM

vb4.1. I did put ^[A-Z0-9 ]+$ in the regular expression text area. Should I leave it blank?

Also, in order to avoid confusion, in my question, I specified enter a number, not spelling it out.

--------------- Added [DATE]1294260364[/DATE] at [TIME]1294260364[/TIME] ---------------

Just left regular expression text area blank, and it works now. That appears to be the problem. Not sure what's the use of the expression though.

Lynne 01-05-2011 08:14 PM

Do you understand what Regular Expressions are used for? If not, I'd just leave that blank because in most cases, you will not need it there. (You specified that any letter from A-Z or 0-9 would work in that field.... plus a dollar sign? (Not sure what you meant there.))


All times are GMT. The time now is 01:10 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.01492 seconds
  • Memory Usage 1,716KB
  • 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
  • (7)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