The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Colors

3 posters

Go down

Solved Colors

Post by Mariami 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?

Colors Captu177

$(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
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 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
Ange Tuteur
Forumaster

Male Posts : 13207
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Colors

Post by Mariami 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
Mariami
Forumember

Posts : 106
Reputation : 1
Language : english

http://mundonoveleras.forum2x2.ru/forum

Back to top Go down

Solved Re: Colors

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

Topic solved and archived


Colors Slgray10

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

Male Posts : 51569
Reputation : 3525
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

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