Thread Rating:
  • 17 Vote(s) - 3.94 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[For 1.6] Registration Security Question v1.2 (Updated: 07/27/2011)
This user has been denied support. This user has been denied support.
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")
 	{
Reply


Messages In This Thread
RE: Registration Security Question v1.0 - by Matt - 2010-12-05, 11:46 AM
RE: Registration Security Question v1.1 - by ~Rs - 2010-12-05, 04:32 PM
RE: Registration Security Question v1.1 - by Yumi - 2011-02-24, 10:27 AM
RE: Registration Security Question v1.1 - by Yumi - 2011-02-24, 10:59 PM
RE: Registration Security Question v1.1 - by Yumi - 2011-02-26, 12:50 AM
RE: Registration Security Question v1.1 - by Pars - 2011-04-10, 05:16 PM
RE: Registration Security Question v1.1 - by eSpy - 2011-04-27, 06:01 PM
RE: Registration Security Question v1.1 - by eSpy - 2011-04-27, 11:07 PM
RE: Registration Security Question v1.1 - by amal - 2011-05-25, 04:34 AM
RE: Registration Security Question v1.1 - by frostschutz - 2011-07-26, 08:22 PM

Forum Jump:


Users browsing this thread: 17 Guest(s)