Having problems with jck editor and Cb

10 years 2 months ago #152416 by Josh Lewis
Having problems with jck editor and Cb was created by Josh Lewis
So community builder works fine on my site, jck editor work fine on my site, but they do not seem to go together for me. When ever I go to edit my profile on the front end it shows a long message:
<script language="JavaScript" charset="utf-8">


		



		// remote scripting library



		// (c) copyright 2005 modernmethod, inc



		var sajax_debug_mode = false;



		var sajax_request_type = "GET";



		var sajax_target_id = "";



		var sajax_failure_redirect = "";



		



		function sajax_debug(text) {



			if (sajax_debug_mode)



				alert(text);



		}



		



 		function sajax_init_object() {



 			sajax_debug("sajax_init_object() called..")



 			



 			var A;



 			



 			var msxmlhttp = new Array(



				'Msxml2.XMLHTTP.5.0',



				'Msxml2.XMLHTTP.4.0',



				'Msxml2.XMLHTTP.3.0',



				'Msxml2.XMLHTTP',



				'Microsoft.XMLHTTP');



			for (var i = 0; i < msxmlhttp.length; i++) {



				try {



					A = new ActiveXObject(msxmlhttp[i]);



				} catch (e) {



					A = null;



				}



			}



 			



			if(!A && typeof XMLHttpRequest != "undefined")



				A = new XMLHttpRequest();



			if (!A)



				sajax_debug("Could not create connection object.");



			return A;



		}



		



		var sajax_requests = new Array();



		



		function sajax_cancel() {



			for (var i = 0; i < sajax_requests.length; i++) 



				sajax_requests[i].abort();



		}



		



		function sajax_do_call(func_name, args) {



			var i, x, n;



			var uri;



			var post_data;



			var target_id;



			



			sajax_debug("in sajax_do_call().." + sajax_request_type + "/" + sajax_target_id);



			target_id = sajax_target_id;



			if (typeof(sajax_request_type) == "undefined" || sajax_request_type == "") 



				sajax_request_type = "GET";



			



			uri = "http://www.hikrs.com/account/userdetails";


			if (sajax_request_type == "GET") {



			



				if (uri.indexOf("?") == -1) 



					uri += "?rs=" + escape(func_name);



				else



					uri += "&rs=" + escape(func_name);



				uri += "&rst=" + escape(sajax_target_id);



				uri += "&rsrnd=" + new Date().getTime();



				



				for (i = 0; i < args.length-1; i++) 



					uri += "&rsargs[]=" + escape(args[i]);







				post_data = null;



			} 



			else if (sajax_request_type == "POST") {



				post_data = "rs=" + escape(func_name);



				post_data += "&rst=" + escape(sajax_target_id);



				post_data += "&rsrnd=" + new Date().getTime();



				



				for (i = 0; i < args.length-1; i++) 



					post_data = post_data + "&rsargs[]=" + escape(args[i]);



			}



			else {



				alert("Illegal request type: " + sajax_request_type);



			}



			



			x = sajax_init_object();



			if (x == null) {



				if (sajax_failure_redirect != "") {



					location.href = sajax_failure_redirect;



					return false;



				} else {



					sajax_debug("NULL sajax object for user agent:\n" + navigator.userAgent);



					return false;



				}



			} else {



				x.open(sajax_request_type, uri, true);



				// window.open(uri);



				



				sajax_requests[sajax_requests.length] = x;



				



				if (sajax_request_type == "POST") {



					x.setRequestHeader("Method", "POST " + uri + " HTTP/1.1");



					x.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");



				}



			



				x.onreadystatechange = function() {



					if (x.readyState != 4) 



						return;







					sajax_debug("received " + x.responseText);



				



					var status;



					var data;



					var txt = x.responseText.replace(/^\s*|\s*$/g,"");



					status = txt.charAt(0);



					data = txt.substring(2);







					if (status == "") {



						// let's just assume this is a pre-response bailout and let it slide for now



					} else if (status == "-") 



						alert("Error: " + data);



					else {



						if (target_id != "") 



							document.getElementById(target_id).innerHTML = eval(data);



						else {



							try {



								var callback;



								var extra_data = false;



								if (typeof args[args.length-1] == "object") {



									callback = args[args.length-1].callback;



									extra_data = args[args.length-1].extra_data;



								} else {



									callback = args[args.length-1];



								}



								callback(eval(data), extra_data);



							} catch (e) {



								sajax_debug("Caught error " + e + ": Could not eval " + data );



							}



						}



					}



				}



			}



			



			sajax_debug(func_name + " uri = " + uri + "/post = " + post_data);



			x.send(post_data);



			sajax_debug(func_name + " waiting..");



			delete x;



			return true;



		}



		



		


		



		// wrapper for whatru


		



		function x_whatru() {



			sajax_do_call("whatru",



				x_whatru.arguments);



		}



		



		  

	function do_save(status) {



        document.getElementById('whatrudiv2').innerHTML = status;



    }



    function wrugetTextBox() {



        document.getElementById("whatrudiv2").style.display = 'none'; 

        document.getElementById("whatrudiv1").style.display = ''; 

    }



    function wrusaveStatus(id, uname, defaulttext){

        var status;

        document.getElementById("whatrudiv1").style.display = 'none';

        document.getElementById("whatrudiv2").style.display = '';

        status = document.getElementById("statusText").value; 
        
        //uncomment  the line below to enable utf8 encoding, you also need to adjust the field length of cb_rustatus in comprofiler table of your joomla database because it is limited to 255 characters
        //status = convertChar2CP(status);
               
        x_whatru(id, uname, status, defaulttext, do_save);         

    }       



    function wruclearStatus(id, uname, defaulttext){

        var status;

        document.getElementById("whatrudiv1").style.display = 'none';

        document.getElementById("whatrudiv2").style.display = '';       

        document.getElementById("statusText").value = 'is';

        status = document.getElementById("statusText").value;
       
        x_whatru(id, uname, status, defaulttext, do_save);

    }
    
    
    
  function convertCP2DecNCR ( textString ) {
  var outputString = "";
  textString = textString.replace(/^\s+/, '');
  if (textString.length == 0) { return ""; }
  textString = textString.replace(/\s+/g, ' ');
  var listArray = textString.split(' ');
  for ( var i = 0; i < listArray.length; i++ ) {
    var n = parseInt(listArray[i], 16);
    outputString += ('&#' + n + ';');
  }
  return( outputString );
  }
  
  function convertChar2CP ( textString ) { 
    var haut = 0;
    var n = 0;
    CPstring = '';
    for (var i = 0; i < textString.length; i++) {
        var b = textString.charCodeAt(i); 
        if (b < 0 || b > 0xFFFF) {
            CPstring += 'Error ' + dec2hex(b) + '!';
        }
        if (haut != 0) {
            if (0xDC00 <= b && b <= 0xDFFF) {
                CPstring += dec2hex(0x10000 + ((haut - 0xD800) << 10) + (b - 0xDC00)) + ' ';
                haut = 0;
                continue;
            }else {
                CPstring += '!erreur ' + dec2hex(haut) + '!';
                haut = 0;
            }
        }
        if (0xD800 <= b && b <= 0xDBFF) {
            haut = b;
        }
        else {
            CPstring += dec2hex(b) + ' ';
        }
    }
        CPstring = CPstring.substring(0, CPstring.length-1);
    
        return convertCP2DecNCR(CPstring) ;   
  }
  
  function dec2hex ( textString ) {
 return (textString+0).toString(16).toUpperCase();
 }   

</script>

<link rel="stylesheet" type="text/css" href="components/com_comprofiler/plugin/user/plug_cbwhatareyoudoing/whatru.css">

So I figured it was one of my plugins so I deleted my /components/com_profiler/plugins/users and replaced it with a fresh version (backing up of course) which for some reason my non admin users can view the edit page but as an admin I cannot. Is there any solution to this?

Please Log in to join the conversation.

10 years 1 month ago #154201 by krileon
Replied by krileon on topic Re: Having problems with jck editor and Cb
Please upgrade to CB 1.4. We can't guarantee functionality with 3rd party extensions. You seam to have some fatal JS issues present. Disable plugins 1 by 1 to see if resolved. Further debug steps can be see in our FAQ.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.430 seconds

Facebook Twitter LinkedIn