The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Colors

View previous topic View next topic Go down

Solved Colors

Post by Mariami on February 6th 2015, 1:26 pm

I had this colors on forum
And now it doesnt work and are you able to correct the llinks? or halp mne?



$(function(){$(function(){
if ($("#text_editor_textarea").length < 1) return;
$.sceditor.command.get('color')._menu = function (editor, caller, callback) {
editor.createDropDown(caller, 'color-picker', '<iframe id="colorFrame" src="/chatbox/chatbox_selectcolor.htm" style="height:165px;width:250px;border:none;"></iframe>');
$('#colorFrame').load(function(){$('#colorFrame').contents().find('table[bgcolor="#000000"]').find('td').click(function(){callback($(this).attr('bgcolor'));editor.closeDropDown(true)})});
}
})});

Mariami
Forumember

Posts : 106
Reputation : 1
Language : english

http://mundonoveleras.forum2x2.ru/forum

Back to top Go down

Solved Re: Colors

Post by Ange Tuteur on February 6th 2015, 9:31 pm

Hi @Mariami,

The script uses the colorpicker from the chatbox, so when the chatbox was updated they must've changed the URL to the colorpicker. See if this works :
Code:
$(function(){$(function(){
  if ($("#text_editor_textarea").length < 1 || !$.sceditor) return;
  $.sceditor.command.get('color')._menu  = function (editor, caller, callback) {
    editor.createDropDown(caller, 'color-picker', '<iframe id="colorFrame" src="/chatbox/selectcolor" style="height:165px;width:250px;border:none;"></iframe>');
    $('#colorFrame').load(function(){$('#colorFrame').contents().find('table[bgcolor="#000000"]').find('td').click(function(){callback($(this).attr('bgcolor'));editor.closeDropDown(true)})});
  }
})});

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Colors

Post by Mariami on February 7th 2015, 10:15 am

@Ange Tuteur wrote:Hi @Mariami,

The script uses the colorpicker from the chatbox, so when the chatbox was updated they must've changed the URL to the colorpicker. See if this works :
Code:
$(function(){$(function(){
  if ($("#text_editor_textarea").length < 1 || !$.sceditor) return;
  $.sceditor.command.get('color')._menu  = function (editor, caller, callback) {
    editor.createDropDown(caller, 'color-picker', '<iframe id="colorFrame" src="/chatbox/selectcolor" style="height:165px;width:250px;border:none;"></iframe>');
    $('#colorFrame').load(function(){$('#colorFrame').contents().find('table[bgcolor="#000000"]').find('td').click(function(){callback($(this).attr('bgcolor'));editor.closeDropDown(true)})});
  }
})});
thank you very much
it works
Very good Very good Very good Very good

Mariami
Forumember

Posts : 106
Reputation : 1
Language : english

http://mundonoveleras.forum2x2.ru/forum

Back to top Go down

Solved Re: Colors

Post by SLGray on February 7th 2015, 7:41 pm

Topic solved and archived


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.


SLGray
Administrator
Administrator

Male Posts : 35622
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum