Latest topics
» Forumactif Edge - Releases
by Ange Tuteur Tue 03 Sep 2019, 11:49
» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21
» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28
» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15
» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11
» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24
» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58
» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50
» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22
» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12
» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10
» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51
» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11
» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19
» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34
by Ange Tuteur Tue 03 Sep 2019, 11:49
» GIFActif - Giphy Button for the Editor
by Ange Tuteur Wed 08 May 2019, 17:21
» Forum Closure
by Ange Tuteur Mon 01 Jan 2018, 01:28
» Chit Chat Thread
by Valoish Sun 31 Dec 2017, 19:15
» Font/Text background color.
by Valoish Sun 31 Dec 2017, 19:11
» Forumactif Messenger - Instant Message Application for Forumotion
by Wolfuryo Sun 31 Dec 2017, 18:24
» [GAME] Count to One Million!
by brandon_g Fri 29 Dec 2017, 18:58
» Post Cards
by manikbiradar Wed 20 Dec 2017, 07:50
» [GAME] Countdown from 200,000
by Valoish Wed 13 Dec 2017, 23:22
» GeekPolice Tech Support Forums - GeekPolice.net
by Dr Jay Mon 11 Dec 2017, 19:12
» Asking about some plugin for Forumotion
by Dr Jay Mon 11 Dec 2017, 19:10
» [GAME] What are you thinking right now?
by Van-Helsing Sat 09 Dec 2017, 14:51
» Widget : Similar topics
by ranbac Wed 06 Dec 2017, 18:11
» Change the Background of the Forum and put an image and how to make prefixs?
by Clement Wed 06 Dec 2017, 15:19
» Hello from Western Australia
by SarkZKalie Wed 06 Dec 2017, 05:34
Recent Tutorials
Top posting users this month
Top Achievers
Who is online?
In total there are 43 users online :: 0 Registered, 0 Hidden and 43 Guests :: 2 Bots
None
Most users ever online was 515 on Tue 14 Sep 2021, 15:24
None
Most users ever online was 515 on Tue 14 Sep 2021, 15:24
Change the button icons of the editor
Page 1 of 1 • Share
Hello,
This quick trick will teach you how to change the icons of buttons for the editor of your Forumotion forum.
This will work for all versions so long as you're using the default editor.
Modifying the stylesheet
So you get an idea of how to change the icons, we'll modify the buttons that were in the demonstration above. Go to Administration Panel ► Display ► Colors ► CSS stylesheet and add the codes below to your sheet and submit.
Explanation
background-image : Applies a background image to the button. Use url('/myimage.gif') to set a background image, replace /myimage.gif by the URL of your image.
background-position : Sets the background position back to 0. Since most of the default images use an image map you must reset the background position, otherwise your image may not appear.
Below you will find a list of CSS rules which you can use to change the buttons icons for the editor. Each rule is marked with a comment so you know which button it modifies. So, find the CSS rule for the button you want to modify, apply your image URL, and add it to your stylesheet.
Additionally if you want to change the color of all the buttons you can use the class .sceditor-button to modify their style. Below I leave an example rule which you can work from.
Good luck with your forums and most of all, be creative !
This quick trick will teach you how to change the icons of buttons for the editor of your Forumotion forum.
This will work for all versions so long as you're using the default editor.
Modifying the stylesheet
So you get an idea of how to change the icons, we'll modify the buttons that were in the demonstration above. Go to Administration Panel ► Display ► Colors ► CSS stylesheet and add the codes below to your sheet and submit.
- Code:
.sceditor-button-bold div {
background-image:url('http://i57.servimg.com/u/f57/18/21/41/30/b10.png') !important;
background-position:0 !important;
}
.sceditor-button-italic div {
background-image:url('http://i57.servimg.com/u/f57/18/21/41/30/i10.png') !important;
background-position:0 !important;
}
.sceditor-button-underline div {
background-image:url('http://i57.servimg.com/u/f57/18/21/41/30/u10.png') !important;
background-position:0 !important;
}
.sceditor-button-strike div {
background-image:url('http://i57.servimg.com/u/f57/18/21/41/30/s10.png') !important;
background-position:0 !important;
}
Explanation
background-image : Applies a background image to the button. Use url('/myimage.gif') to set a background image, replace /myimage.gif by the URL of your image.
background-position : Sets the background position back to 0. Since most of the default images use an image map you must reset the background position, otherwise your image may not appear.
Below you will find a list of CSS rules which you can use to change the buttons icons for the editor. Each rule is marked with a comment so you know which button it modifies. So, find the CSS rule for the button you want to modify, apply your image URL, and add it to your stylesheet.
- Code:
/* bold */
.sceditor-button-bold div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* italic */
.sceditor-button-italic div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* underline */
.sceditor-button-underline div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* strike */
.sceditor-button-strike div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* text align left */
.sceditor-button-left div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* text align center */
.sceditor-button-center div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* text align right */
.sceditor-button-right div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* text align justify */
.sceditor-button-justify div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* bullet list */
.sceditor-button-bulletlist div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* ordered list */
.sceditor-button-orderedlist div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* horizontal rule */
.sceditor-button-horizontalrule div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* quote */
.sceditor-button-quote div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* code */
.sceditor-button-code div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* spoiler */
.sceditor-button-faspoiler div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* hide */
.sceditor-button-fahide div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* table */
.sceditor-button-table div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* host an image */
.sceditor-button-servimg div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* insert an image */
.sceditor-button-image div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* insert a link */
.sceditor-button-link div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* youtube */
.sceditor-button-youtube div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* dailymotion */
.sceditor-button-dailymotion div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* flash */
.sceditor-button-flash div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* font size */
.sceditor-button-size div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* font color */
.sceditor-button-color div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* font family */
.sceditor-button-font div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* remove formatting */
.sceditor-button-removeformat div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* button more */
.sceditor-button-more div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* sub script */
.sceditor-button-subscript div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* super script */
.sceditor-button-superscript div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* scroll horizontal */
.sceditor-button-fascroll div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* scroll vertical */
.sceditor-button-faupdown div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* WoW */
.sceditor-button-fawow div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* random */
.sceditor-button-farand div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* emoticon */
.sceditor-button-emoticon div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* date */
.sceditor-button-date div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* time */
.sceditor-button-time div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* paste text */
.sceditor-button-pastetext div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* switch editor mode */
.sceditor-button-source div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
Additionally if you want to change the color of all the buttons you can use the class .sceditor-button to modify their style. Below I leave an example rule which you can work from.
- Code:
.sceditor-button { background:#DEF; }
.sceditor-button:hover, .sceditor-button:active, .sceditor-button.hover { background:#EFF !important; }
Good luck with your forums and most of all, be creative !
Notice |
Tutorial written by Ange Tuteur. Special thanks to Marios for the idea Reproduction not permitted without consent from the author. |
Last edited by Ange Tuteur on Tue 15 Mar 2016, 06:25; edited 1 time in total
- smejker
- Gender :
Posts : 28
Points : 3867
Reputation : 8
Location : Macedonia
Language : Macedonian, Serbo-Croatia
Browser : Forum Version :
It's cool... but..
how to change Font size, Font Color, Font Name, Remove Formating and Switch Editor Mode button...
and how to add new button like: Undo, Redo, Decrease Indent, Increase Indent, Remove Link, Blink...
I was asking the same in help.forumotiion... but now everything I'll ask here, because U Ange are king!
Edit! - And how to change places of icons in sceditor... I want first to be Font Name, second Font Size third Remove Formating...
Thanks in advance.
Regards & Respect!
how to change Font size, Font Color, Font Name, Remove Formating and Switch Editor Mode button...
and how to add new button like: Undo, Redo, Decrease Indent, Increase Indent, Remove Link, Blink...
I was asking the same in help.forumotiion... but now everything I'll ask here, because U Ange are king!
Edit! - And how to change places of icons in sceditor... I want first to be Font Name, second Font Size third Remove Formating...
Thanks in advance.
Regards & Respect!
For the buttons they the rules to change their image should be in the first post :
- Code:
/* font size */
.sceditor-button-size div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* font color */
.sceditor-button-color div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* font family */
.sceditor-button-font div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* remove formatting */
.sceditor-button-removeformat div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* switch editor mode */
.sceditor-button-source div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
- Wolfuryo
- Gender :
Posts : 256
Points : 3805
Reputation : 81
Language : Romanian and English
Browser : Forum Version :
You can find images on google or use font awesome icons(http://fontawesome.io/).dr.kran wrote:What's the name for emoticons?
Infact how do you find those?
Not what I meant, I mean the smily face above the option bar with different features like this.Andrei34 wrote:You can find images on google or use font awesome icons(http://fontawesome.io/).dr.kran wrote:What's the name for emoticons?
Infact how do you find those?
Actually, I wouldn't mind knowing how to make it like this one here.
For some reason I can't find the buttons with the spacebars, how does one enter insert image button into CSS codes?
Is there a special casing for it?
@dr.kran the insert image class name is
. If a button's name has a space in it, it'll be replaced with a dash ; -. Also, this is a list of all the default button classes :
|
- Code:
/* bold */
.sceditor-button-bold div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* italic */
.sceditor-button-italic div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* underline */
.sceditor-button-underline div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* strike */
.sceditor-button-strike div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* text align left */
.sceditor-button-left div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* text align center */
.sceditor-button-center div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* text align right */
.sceditor-button-right div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* text align justify */
.sceditor-button-justify div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* bullet list */
.sceditor-button-bulletlist div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* ordered list */
.sceditor-button-orderedlist div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* horizontal rule */
.sceditor-button-horizontalrule div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* quote */
.sceditor-button-quote div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* code */
.sceditor-button-code div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* spoiler */
.sceditor-button-faspoiler div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* hide */
.sceditor-button-fahide div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* table */
.sceditor-button-table div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* host an image */
.sceditor-button-servimg div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* insert an image */
.sceditor-button-image div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* insert a link */
.sceditor-button-link div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* youtube */
.sceditor-button-youtube div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* dailymotion */
.sceditor-button-dailymotion div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* flash */
.sceditor-button-flash div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* font size */
.sceditor-button-size div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* font color */
.sceditor-button-color div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* font family */
.sceditor-button-font div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* remove formatting */
.sceditor-button-removeformat div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* button more */
.sceditor-button-more div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* sub script */
.sceditor-button-subscript div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* super script */
.sceditor-button-superscript div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* scroll horizontal */
.sceditor-button-fascroll div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* scroll vertical */
.sceditor-button-faupdown div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* WoW */
.sceditor-button-fawow div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* random */
.sceditor-button-farand div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* emoticon */
.sceditor-button-emoticon div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* date */
.sceditor-button-date div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* time */
.sceditor-button-time div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* paste text */
.sceditor-button-pastetext div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* switch editor mode */
.sceditor-button-source div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
- Thanks:
- Ange Tuteur wrote:@dr.kran the insert image class name is
. If a button's name has a space in it, it'll be replaced with a dash ; -. Also, this is a list of all the default button classes :- Code:
.sceditor-button-image
- Code:
/* bold */
.sceditor-button-bold div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* italic */
.sceditor-button-italic div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* underline */
.sceditor-button-underline div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* strike */
.sceditor-button-strike div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* text align left */
.sceditor-button-left div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* text align center */
.sceditor-button-center div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* text align right */
.sceditor-button-right div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* text align justify */
.sceditor-button-justify div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* bullet list */
.sceditor-button-bulletlist div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* ordered list */
.sceditor-button-orderedlist div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* horizontal rule */
.sceditor-button-horizontalrule div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* quote */
.sceditor-button-quote div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* code */
.sceditor-button-code div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* spoiler */
.sceditor-button-faspoiler div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* hide */
.sceditor-button-fahide div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* table */
.sceditor-button-table div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* host an image */
.sceditor-button-servimg div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* insert an image */
.sceditor-button-image div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* insert a link */
.sceditor-button-link div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* youtube */
.sceditor-button-youtube div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* dailymotion */
.sceditor-button-dailymotion div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* flash */
.sceditor-button-flash div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* font size */
.sceditor-button-size div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* font color */
.sceditor-button-color div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* font family */
.sceditor-button-font div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* remove formatting */
.sceditor-button-removeformat div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* button more */
.sceditor-button-more div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* sub script */
.sceditor-button-subscript div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* super script */
.sceditor-button-superscript div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* scroll horizontal */
.sceditor-button-fascroll div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* scroll vertical */
.sceditor-button-faupdown div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* WoW */
.sceditor-button-fawow div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* random */
.sceditor-button-farand div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* emoticon */
.sceditor-button-emoticon div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* date */
.sceditor-button-date div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* time */
.sceditor-button-time div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* paste text */
.sceditor-button-pastetext div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
/* switch editor mode */
.sceditor-button-source div {
background-image:url('/myimage.gif') !important;
background-position:0 !important;
}
Thank you for the help, this really helped a lot.
- Sponsored content
Similar topics
Create an account or log in to leave a reply
You need to be a member in order to leave a reply.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum