by Ange Tuteur Thu 4 Dec - 18:57
See if this works :
Go to Administration Panel > Modules > JavaScript codes management > Create a new script
Title : Your choice
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
Last edited by Ange Tuteur on Fri 27 Feb - 16:07; edited 1 time in total