Skip to Content Skip to Menu

Please Help!! IMG and URL don't work

  • nant
  • nant
  • OFFLINE
  • Posts: 12339
  • Thanks: 1467
  • Karma: 877
15 years 2 months ago #108549 by nant
Replied by nant on topic Re:Please Help!!
Delliana wrote:

I have updated my subscription,, now I cannot find the files for the plugins-- can you please tell me the path to edit profile book so I can get the img button back on there and working


All downloads for doc subcribers are here:

www.joomlapolis.com/component/option,com_docman/task,cat_view/gid,56/Itemid,36/

unistall your current cb profilebook plugin and install this one:

www.joomlapolis.com/component/option,com_docman/task,doc_details/gid,161/

Please Log in or Create an account to join the conversation.

  • Delliana
  • Delliana
  • OFFLINE
  • Posts: 15
  • Thanks: 0
  • Karma: -6
15 years 2 months ago #108628 by Delliana
Replied by Delliana on topic Re:Please Help!!
Thanks but I did that- twice. the IMG button is not there and I needed to go in and un-comment the line for it- The plugins were not showing in my Extplorer- tonight they are (?)
The line is 1308 (user/plug_cbprofilebook/cb.profilebook.php)
need to remove " // "

Well this worked (before I was a subscriber) to get the IMG button to at least appear but it didn't actually show the image when you used it- Then you said the problem was fixed in the subscriber version.

This is what I have from line 1307 to 1310


[code:1] if ( $this->params->get( 'pbAllowImgBBCode', 0 ) == 1 ) {
$bbcode->add_tag(array('Name'=>'img','HasParam'=>true,'HtmlBegin'=>'<img src="%%P%%" size="%%P%%" alt="" />','HasEnd'=>false));
$bbcode->add_tag( array( 'Name' => 'img', 'HtmlBegin' => '<img src="%%P%%" alt="" />', 'HtmlEnd' => '', 'ReplaceContent' => true ) );
}[/code:1]

What to do??
Thank You.

Please Log in or Create an account to join the conversation.

  • Delliana
  • Delliana
  • OFFLINE
  • Posts: 15
  • Thanks: 0
  • Karma: -6
15 years 2 months ago #108630 by Delliana
Replied by Delliana on topic Re:Please Help!!
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('','','','','','','

','

','&#91;code&#93;','&#91;/code&#93;','
    ','
','
    ','
','[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,'&amp;').replace(/\n/g,'<br />').replace(/ {2,}/g,function(space){return times('&nbsp;',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?

    Please Log in or Create an account to join the conversation.

    • krileon
    • krileon
    • OFFLINE
    • Posts: 48419
    • Thanks: 8274
    • Karma: 1443
    15 years 2 months ago #108658 by krileon
    Replied by krileon on topic Re:Please Help!!
    Download and install latest as you've done. Don't touch the code. Go to Tab Management and edit either Profilebook, Profilebook Blog, or Profilebook Wall. Now change Allow [img] BBCode: to YES. Save and that's it. You now have image support.


    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 or Create an account to join the conversation.

    • Delliana
    • Delliana
    • OFFLINE
    • Posts: 15
    • Thanks: 0
    • Karma: -6
    15 years 2 months ago #108775 by Delliana
    Replied by Delliana on topic Re:Please Help!!
    THANK YOU So So Much!
    Finally my Problem is solved!

    Please Log in or Create an account to join the conversation.

    • Delliana
    • Delliana
    • OFFLINE
    • Posts: 15
    • Thanks: 0
    • Karma: -6
    15 years 2 months ago #108782 by Delliana
    Replied by Delliana on topic Re:Please Help!!
    Can you tell me how to use the youtube button?
    I set the permission to yes but can't seem to get it to embed?
    Alkso how to remove the tooltips?
    Thanks Again!B)

    Post edited by: Delliana, at: 2009/08/21 06:09

    Please Log in or Create an account to join the conversation.

    Moderators: beatnantkrileon
    Powered by Kunena Forum