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.
The forum of the forums
3 posters

    Colors

    Mariami
    Mariami
    Forumember


    Posts : 106
    Reputation : 1
    Language : english

    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)})});
    }
    })});
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    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)})});
      }
    })});
    Mariami
    Mariami
    Forumember


    Posts : 106
    Reputation : 1
    Language : english

    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
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3523
    Language : English
    Location : United States

    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.

      Current date/time is November 11th 2024, 8:35 pm