Also this in /...er/plugin/user/plug_cbprofilebook/bb_adm.min.js
Seems it's something in here??
[code:1]var imageTag=false;var theSelection=false;var clientPC=navigator.userAgent.toLowerCase();var clientVer=parseInt(navigator.appVersion);var is_ie=((clientPC.indexOf("msie"«»)!=-1)&&(clientPC.indexOf("opera"«»)==-1));var is_nav=((clientPC.indexOf('mozilla')!=-1)&&(clientPC.indexOf('spoofer')==-1)&&(clientPC.indexOf('compatible')==-1)&&(clientPC.indexOf('opera')==-1)&&(clientPC.indexOf('webtv')==-1)&&(clientPC.indexOf('hotjava')==-1));var is_moz=0;var is_win=((clientPC.indexOf("win"«»)!=-1)||(clientPC.indexOf("16bit"«»)!=-1));var is_mac=(clientPC.indexOf("mac"«»)!=-1);bbtags=new Array('
','','
','','
','','
','
','[code]','[/code]','
','
','
','[img]','[/img]','
','
','
','
');function getarraysize(thearray){for(i=0;i<thearray.length;i++){if((thearray
=="undefined"«»)||(thearray==""«»)||(thearray==null))return i}return thearray.length}function arraypush(thearray,value){thearray[getarraysize(thearray)]=value}function arraypop(thearray){thearraysize=getarraysize(thearray);retval=thearray[thearraysize-1];delete thearray[thearraysize-1];return retval}function bbstyle(myform,bbnumber){var txtarea=myform.profilebookpostercomments;id=myform.getAttribute('id');var bbcode=eval("_"+id+"_bbcodestack"«»);txtarea.focus();donotinsert=false;theSelection=false;bblast=0;if(bbnumber==-1){while(bbcode[0]){butnumber=arraypop(bbcode)-1;txtarea.value+=bbtags[butnumber+1];buttn=eval('myform.addbbcode'+butnumber);buttn.value=buttn.value.substr(1,(buttn.value.length-1))}imageTag=false;txtarea.focus();return}if((clientVer>=4)&&is_ie&&is_win){theSelection=document.selection.createRange().text;if(theSelection){document.selection.createRange().text=bbtags[bbnumber]+theSelection+bbtags[bbnumber+1];txtarea.focus();theSelection='';return}}else if(txtarea.selectionEnd&&(txtarea.selectionEnd-txtarea.selectionStart>0)){mozWrap(txtarea,bbtags[bbnumber],bbtags[bbnumber+1]);return}for(i=0;i<bbcode.length;i++){if(bbcode==bbnumber+1){bblast=i;donotinsert=true}}if(donotinsert){while(bbcode[bblast]){butnumber=arraypop(bbcode)-1;insertAtCaret(txtarea,bbtags[butnumber+1]);buttn=eval('myform.addbbcode'+butnumber);buttn.value=buttn.value.substr(1,(buttn.value.length-1));imageTag=false}txtarea.focus();return}else{if(imageTag&&(bbnumber!=14)){insertAtCaret(txtarea,bbtags[15]);lastValue=arraypop(bbcode)-1;myform.addbbcode14.value="Img";imageTag=false}insertAtCaret(txtarea,bbtags[bbnumber]);if((bbnumber==14)&&(imageTag==false))imageTag=true;arraypush(bbcode,bbnumber+1);buttn=eval('myform.addbbcode'+bbnumber);buttn.value='/'+buttn.value;txtarea.focus();return}}function mozWrap(txtarea,open,close){var selLength=txtarea.textLength;var selStart=txtarea.selectionStart;var selEnd=txtarea.selectionEnd;if(selEnd==1||selEnd==2){selEnd=selLength}var scrollPos=txtarea.scrollTop;var s1=(txtarea.value).substring(0,selStart);var s2=(txtarea.value).substring(selStart,selEnd);var s3=(txtarea.value).substring(selEnd,selLength);txtarea.value=s1+open+s2+close+s3;if(txtarea.setSelectionRange){if(s2.length==0){txtarea.setSelectionRange(selStart+open.length,selStart+open.length)}else{txtarea.setSelectionRange(selStart,selStart+open.length+s2.length+close.length)}txtarea.focus()}txtarea.scrollTop=scrollPos;return}function insertAtCaret(txtarea,text){if(typeof(txtarea.caretPos)!="undefined"&&txtarea.createTextRange){var caretPos=txtarea.caretPos;caretPos.text=caretPos.text.charAt(caretPos.text.length-1)==' '?text+' ':text;caretPos.select()}else if(typeof(txtarea.selectionStart)!="undefined"«»){var begin=txtarea.value.substr(0,txtarea.selectionStart);var end=txtarea.value.substr(txtarea.selectionEnd);var scrollPos=txtarea.scrollTop;txtarea.value=begin+text+end;if(txtarea.setSelectionRange){txtarea.focus();txtarea.setSelectionRange(begin.length+text.length,begin.length+text.length)}txtarea.scrollTop=scrollPos}else{txtarea.value+=text;txtarea.focus(txtarea.value.length-1)}}function setCaretToEnd(control){if(control.createTextRange){var range=control.createTextRange();range.collapse(false);range.select()}else if(control.setSelectionRange){control.focus();var length=control.value.length;control.setSelectionRange(length,length)}}function setCursorPosition(oInput,oStart,oEnd){if(oInput.setSelectionRange){oInput.setSelectionRange(oStart,oEnd)}else if(oInput.createTextRange){var range=oInput.createTextRange();range.collapse(true);range.moveEnd('character',oEnd);range.moveStart('character',oStart);range.select()}}function bbfontstyle(txtarea,bbopen,bbclose){if(typeof(txtarea.caretPos)!="undefined"&&txtarea.createTextRange){var caretPos=txtarea.caretPos;var temp_length=caretPos.text.length;caretPos.text=caretPos.text.charAt(caretPos.text.length-1)==' '?bbopen+caretPos.text+bbclose+' ':bbopen+caretPos.text+bbclose;if(temp_length==0){caretPos.moveStart("character",-bbclose.length);caretPos.moveEnd("character",-bbclose.length);caretPos.select()}else{txtarea.focus(caretPos)}}else if((clientVer>=4)&&is_ie&&is_win){theSelection=document.selection.createRange().text;if(!theSelection){txtarea.value+=bbopen+bbclose;txtarea.focus();return}document.selection.createRange().text=bbopen+theSelection+bbclose;txtarea.focus();return}else if(typeof(txtarea.selectionStart)!="undefined"«»){mozWrap(txtarea,bbopen,bbclose)}else{txtarea.focus();insertAtCaret(txtarea,bbopen+bbclose)}}function textCounter(field,countfield,maxlimit){if(field.value.length>maxlimit){field.value=field.value.substring(0,maxlimit)}else{countfield.value=maxlimit-field.value.length}}function pb_emo(txtarea,e){if(typeof(txtarea.caretPos)!="undefined"&&txtarea.createTextRange){e=' '+e+' '}else if(typeof(txtarea.selectionStart)!="undefined"«»){if(txtarea.selectionStart>0){charbefore=txtarea.value.substr(txtarea.selectionStart-1,1);if(charbefore!=' '&&charbefore!="\n"«»){e=' '+e}}if(txtarea.selectionEnd<txtarea.value.length){charafter=txtarea.value.substr(txtarea.selectionEnd,1);if(charafter!=' '&&charafter!="\n"«»){e+=' '}}}else{e=' '+e+' '}txtarea.focus();insertAtCaret(txtarea,e)}function pb_submitForm(mfrm){var me=mfrm.elements;var rChecked;var submitme=1;me.disabled=true;me.readOnly=true;var errorMSG='';var confirmMSGs=Array();var id=mfrm.getAttribute('id');validationArray=eval("_"+id+"_validations"«»);for(var j=0;j<validationArray.length;j++){var i=validationArray[j][0];if(typeof(me.type)=='undefined'){searchLoop:for(var ii=0;ii<me.length;ii++){if(i==me[ii].getAttribute('name')){if(me[ii].type=='radio'||me[ii].type=='checkbox'){var rOptions=me[me[ii].getAttribute('name')];rChecked=0;if(rOptions.length>1){for(var r=0;r<rOptions.length;r++){if(rOptions[r].checked){rChecked=1;break searchLoop}}break searchLoop}else{if(me[ii].checked){rChecked=1;break searchLoop}}}}}}if((typeof(me.type)=='undefined'&&rChecked==0)||me.value==''){if(validationArray[j][1]){confirmMSGs.push(validationArray[j][1])}else{errorMSG+=validationArray[j][2]+'\n';submitme=0}}}if(errorMSG!=''){alert(errorMSG)}else{for(var j=0;j<confirmMSGs.length;j++){if(!confirm(confirmMSGs[j])){submitme=0;break}}}if(submitme>0){return true}else{me.disabled=false;me.readOnly=false;return false}}(function($){$.fn.cbpbtoggleEditor=function(options){this.each(function(){var editorDiv=$('#'+$(this).attr('rel'));if($(this).hasClass('cbpbEditorShow')){$(this).addClass('cbpbEditorVisible');editorDiv.show()}else{$(this).addClass('cbpbEditorHidden');editorDiv.hide()}$(this).click(function(){if($(this).hasClass('cbpbEditorHidden')){if($(this).attr('title')&&!confirm($(this).attr('title'))){return}$(this).removeClass('cbpbEditorHidden').addClass('cbpbEditorVisible')}else{$(this).removeClass('cbpbEditorVisible').addClass('cbpbEditorHidden')}$('#'+$(this).attr('rel')).slideToggle('slow');return false})});return this};$.fn.cbpbControlsHover=function(options){this.each(function(){$(this).children(options).fadeTo(0,0.001);$(this).hover(function(){$(this).children(options).fadeTo(0,1)},function(){$(this).children(options).fadeTo('slow',0.001)})});return this};$.fn.cbpbautogrow=function(options){this.filter('textarea').each(function(){var myfoc=function(){var $this=$(this),minHeight=$this.height(),lineHeight=$this.css('lineHeight');var shadow=$('<div></div>').css({position:'absolute',top:-10000,left:-10000,width:$(this).width()-parseInt($this.css('paddingLeft'))-parseInt($this.css('paddingRight')),'font-size':$this.css('font-size'),'font-family':$this.css('font-family'),'line-height':$this.css('line-height'),resize:'none'}).appendTo(document.body);var update=function(){var times=function(string,number){var _res='';for(var i=0;i<number;i++){_res=_res+string}return _res};var val=this.value.replace(/</g,'<').replace(/>/g,'>').replace(/&/g,'&').replace(/\n/g,'<br />').replace(/ {2,}/g,function(space){return times(' ',space.length-1)+' '});shadow.html(val);$(this).css('height',Math.max(shadow.height()+20,minHeight))};$(this).change(update).keyup(update).keydown(update);update.apply(this)};$(this).focus(myfoc)});return this}})(jQuery);jQuery(document).ready(function($){$('textarea.cbpbEditor').cbpbautogrow();$('a.cbpbToggleEditor').cbpbtoggleEditor();$('.cbpbSnglMsgAll').cbpbControlsHover('.cbpbControlArea')});[/code:1]
I don't understand -Why can't the Img button just be there and work?