joeydee wrote:Hey Folks,
not sure whats' going on here with me... check it out
http://i19.tinypic.com/7xawj6c.png
I just want to put a question on my registration page, ex; 1 + 1 = what? so the answer would be 2 (obviously

)
But what happens for me is, the answer is part of the question and even if you answer it, it won't allow you to register...
can someone help me out please (I zipped the files incase anyone would like to see them).
http://pumatalk.com/files
Thanks,
-Joey
1. you have the RAC code in your profile_add_body.tpl file twice.
be sure to remove the extra switches as well.
2. you have this in your usercp_register.php file that does not belong:
Code: Select all
# Hint: Change the 'qwerty12345' to the auth code that you want to use
# If you want the code to be case insensitive, use the following instead of the first line (without the # in front):
# if (strtolower($HTTP_POST_VARS['RAC']) != 'qwerty12345')
#
3. also in your usercp_register.php file, you did not change this to whatever the answer is supposed to be:
Code: Select all
if ($HTTP_POST_VARS['RAC'] != '1739575')
that string of numbers is what you are supposed to change to whatever the code is going to be.
I don't know why you changed it to 1739575, but if your answer is supposed to be 2 , then it should be this:
Code: Select all
if ($HTTP_POST_VARS['RAC'] != '2')
and finally;
4. In your language/lang_english/lang_main.php file, you have this completely wrong;
Code: Select all
// RAC MOD Begin
$lang['rac_incorrect'] = '2';
$lang['rac_code'] = '1 + 1 = what?';
$lang['rac_location'] = '2';
// RAC MOD End
for your situation, it should be:
Code: Select all
// RAC MOD Begin
$lang['rac_incorrect'] = 'The authorization code you have entered is incorrect. The correct code should be stated on the registration page. Please try again.';
$lang['rac_code'] = 'Authorization Code';
$lang['rac_location'] = 'Please type the answer to the following question in the box on the right:<br />1 + 1 = what?'';
// RAC MOD End
I think you just misunderstood how this all works.
hope this helps,
robert