MyBB Community Forums

Full Version: Registration Security Question v1.2 (Updated: 07/27/2011)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
Ooo how poetic and nice Smile
This fixes the change question button problem for me, but I only tested with Firefox/Opera.

--- jscripts/regsecureq.js	2010-11-30 23:58:16.000000000 +0100
+++ jscripts/regsecureq.js	2011-07-26 23:16:00.000000000 +0200
@@ -26,8 +26,8 @@
 		}
 		else if(request.responseText)
 		{
-			$('regsecureq_id').value = request.responseJSON.qid;
-			$('regsecureq').update(request.responseJSON.q);
+			$('regsecureq_id').value = request.responseText.evalJSON()['qid'];
+			$('regsecureq').update(request.responseText.evalJSON()['q']);
 		}
 
 		if(this.spinner)

--- inc/plugins/regsecureq.php	2010-12-01 02:49:48.000000000 +0100
+++ inc/plugins/regsecureq.php	2011-07-26 23:15:00.000000000 +0200
@@ -323,10 +323,7 @@
 		// Cleanup for JSON
 		$regsecureq = preg_replace("/\r?\n/", "\\n", addslashes($regsecureq));
 	
-		echo '{';
-		echo "'qid':'".$regsecureq_id."',";
-		echo "'q':'".$regsecureq."'";
-		echo '}';
+		echo '{"qid": '.$regsecureq_id.', "q": "'.$regsecureq.'"}';
 	}
 	else if($mybb->input['action'] == "validate_question")
 	{
G33K, any chance you will be able to update this soon? My site is being hit pretty hard w/ spam registrations lately (today I think I got about a dozen), and it's really irritating. I'm afraid it will get worse by the day, and your plugin will be something that can help. I guess there is nothing that can really stop it, but anything that helps will be great!! Thank you
Yes. I finally got sometime and finished updating the plugin. I'm just testing it out with 1.6.3 and the freshly released 1.6.4 and will be putting it out soon enough.
(2011-07-27, 04:23 AM)- G33K - Wrote: [ -> ]Yes. I finally got sometime and finished updating the plugin. I'm just testing it out with 1.6.3 and the freshly released 1.6.4 and will be putting it out soon enough.

Woohoo! Man, 1.6.4 already? Grrrr...
(2011-07-27, 05:15 AM)Jayfore Wrote: [ -> ]
(2011-07-27, 04:23 AM)- G33K - Wrote: [ -> ]Yes. I finally got sometime and finished updating the plugin. I'm just testing it out with 1.6.3 and the freshly released 1.6.4 and will be putting it out soon enough.

Woohoo! Man, 1.6.4 already? Grrrr...

I mean MyBB 1.6.3 and MyBB 1.6.4

EDIT: Update released. Please check first post for more details.

Please let me know if you have any problems.

To all the translators: I added a few language strings to the plugin so please update your languages
Sorry for my question here, but with about 75 spam users a day that sign in I hard need it.

Is there a version from this plugin, or a kind of, for mybb 1.4?
Please?
THANKS G33K! I tested it out and everything looks good. Put it in place on my site... Sure hope this helps! I have 11 new spam registrations, just since I posted last night!

A suggestion for your next revision would be to add a feature that shows you which question each user answered when they registered... Or maybe just a number next to each one, showing how many times it was successfully used. This might help identify questions that need to be improved?
Thank you!
Zank you for ze update
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23