Thread Title Colors (Use Implicit)

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
avatar
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.

avatar
SLGray
Administrator
Administrator

Male Posts : 43519
Reputation : 3094
Language : English
Location : United States

http://fmthemesdesignteam.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
avatar
Ange Tuteur
Forumaster

Male Posts : 13202
Reputation : 2918
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

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...
avatar
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
avatar
Ange Tuteur
Forumaster

Male Posts : 13202
Reputation : 2918
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Back to top


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