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.

Adding Color Palette?

View previous topic View next topic Go down

Solved Adding Color Palette?

Post by doomedNeophyte on October 14th 2014, 8:53 am

Just wondering how you can change the forum post color options into a palette, like the one used in the chatox:




When adding/editing a topic, there are very limited colors.



Last edited by doomedNeophyte on October 15th 2014, 4:04 am; edited 1 time in total

doomedNeophyte
New Member

Male Posts : 15
Reputation : 1
Language : English

http://pokemon-roleplay.forumotion.com/

Back to top Go down

Solved Re: Adding Color Palette?

Post by Ange Tuteur on October 14th 2014, 5:09 pm

Hello doomedNeophyte,

Go to Administration Panel > Modules > JavaScript codes management > Create a new script

Title : Your choice
Placement : In all the pages
Paste the code below and submit :
Code:
$(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)})});
 }
})});

The result should be similar to the example below, so long as you're using the simple color palette.

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Adding Color Palette?

Post by doomedNeophyte on October 15th 2014, 4:03 am

Yes, thank you! This forum is so helpful!! Very Happy

doomedNeophyte
New Member

Male Posts : 15
Reputation : 1
Language : English

http://pokemon-roleplay.forumotion.com/

Back to top Go down

Solved Re: Adding Color Palette?

Post by Ramdaman on October 15th 2014, 4:24 am

There's also one in the Administration Panel => General => Messages and e-mails => Configuration =>Type of the editor colors palette: => Extended

Ramdaman
Active Poster

Male Posts : 1614
Reputation : 97
Language : English, Albanian, Macedonian, Russian | HTML, CSS
Location : New York City

http://ndihme.forumotion.com/forum

Back to top Go down

Solved Re: Adding Color Palette?

Post by Ange Tuteur on October 15th 2014, 4:55 am

You're welcome ^^

Topic archived

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.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