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.

Thread Title Colors (Use Implicit)

View previous topic View next topic Go down

Solved Thread Title Colors (Use Implicit)

Post by MockingJaye on February 25th 2015, 9:23 pm

Hi I was wondering if there is anyway to get more colours for your thread title.



Currently this is what I have, I was wondering if there was a way to get more options. Like pink, Lime green and so forth.


Last edited by MockingJaye on February 25th 2015, 9:41 pm; edited 1 time in total

MockingJaye
Forumember

Female Posts : 30
Reputation : 1
Language : English

http://infinitefairytail.canadian-forum.com/

Back to top Go down

Solved Re: Thread Title Colors (Use Implicit)

Post by SLGray on February 25th 2015, 9:26 pm

Administration Panel - General - Messages & Emails - Configuration
Color Palette: Extended


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


SLGray
Administrator
Administrator

Male Posts : 36691
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Thread Title Colors (Use Implicit)

Post by Ange Tuteur on February 25th 2015, 9:37 pm

Hello @MockingJaye,

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

Placement : In all the pages
Paste the code below :
Code:
$(function() {
 if (!document.post || !document.post.topic_color) return;
 newColor('Lavender','#8855DD');
 newColor('#333','#333333');
 newColor('#666','#666666');
 newColor('#999','#999999');
 
 var c = document.post.topic_color.childNodes,i;
 for (i=0; i<c.length; i++) if (c[i].style.color == document.post.subject.style.color) c[i].selected = true;
 function newColor(name, value) {
  var a = document.createElement('OPTION'), b = document.post.topic_color;
  a.innerHTML = name;
  a.style.color = value;
  a.value = value;
  b.insertBefore(a,b.firstChild)
 }
});

To add new colors simply repaste newColor('name','value'); in the code above.

name : The name you want to give the new color
value : The color code of the new color

You can use this to help with picking colors : http://www.colorpicker.com/


Last edited by Ange Tuteur on February 25th 2015, 9:41 pm; edited 1 time in total

Ange Tuteur
Forumaster

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

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Thread Title Colors (Use Implicit)

Post by MockingJaye on February 25th 2015, 9:40 pm

Yay this worked, thank you so much. I don't know how to make this solved though...

MockingJaye
Forumember

Female Posts : 30
Reputation : 1
Language : English

http://infinitefairytail.canadian-forum.com/

Back to top Go down

Solved Re: Thread Title Colors (Use Implicit)

Post by Ange Tuteur on February 25th 2015, 9:45 pm

You're welcome ^^

You can edit your first post to mark it solved, but I can mark it for you if I know that your question has been answered. Wink

Topic archived

Have a nice day. Smile

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