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.

How add/change the color of topic title?

View previous topic View next topic Go down

Solved How add/change the color of topic title?

Post by yayayes on December 4th 2014, 6:22 pm

Hi everyone, I would like to know how can I add or change the color of topic title. Thank you, appreciate it!

My Forum:http://thelosteden.com/forum
Forum Version: Invision


Last edited by yayayes on December 5th 2014, 1:52 am; edited 1 time in total

yayayes
Forumember

Female Posts : 49
Reputation : 1
Language : Thai
Location : Bangkok, London & Hong Kong

Back to top Go down

Solved Re: How add/change the color of topic title?

Post by Ange Tuteur on December 4th 2014, 6:26 pm

Hello yayayes,

You can enable the colorization of topic titles here :
Administration Panel > General > Messages and e-mails > Configuration

Scroll down to topics and enable Allow topics title color

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: How add/change the color of topic title?

Post by yayayes on December 4th 2014, 6:29 pm

Thank you very muchAnge Tuteur. However, I have already enabled it. What I would like to do here is to add more color or change some color code if it's possible.

yayayes
Forumember

Female Posts : 49
Reputation : 1
Language : Thai
Location : Bangkok, London & Hong Kong

Back to top Go down

Solved Re: How add/change the color of topic title?

Post by Ange Tuteur on December 4th 2014, 6:57 pm

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 February 27th 2015, 4:07 pm; edited 1 time in total

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: How add/change the color of topic title?

Post by yayayes on December 4th 2014, 7:37 pm

This code is not working, sorry ^^"

yayayes
Forumember

Female Posts : 49
Reputation : 1
Language : Thai
Location : Bangkok, London & Hong Kong

Back to top Go down

Solved Re: How add/change the color of topic title?

Post by Ange Tuteur on December 4th 2014, 7:55 pm

That might be because your board contains errors.

One of your scripts in 12299.js contains a script tag which is not support in a JS file.
Code:
<SCRIPT type="text/javascript">

There's an 'a' after this in 99350.js :
Code:
jQuery(document).ready(function(){jQuery("#newsareal10").load("/f274-forum a.topictitle:lt(3)")});jQuery(document).ready(function(){jQuery("#newsareal11").load("/f275-forum a.topictitle:lt(3)")});a

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: How add/change the color of topic title?

Post by yayayes on December 4th 2014, 8:05 pm

Oh that's true. Thank you againAnge Tuteur ><!

yayayes
Forumember

Female Posts : 49
Reputation : 1
Language : Thai
Location : Bangkok, London & Hong Kong

Back to top Go down

Solved Re: How add/change the color of topic title?

Post by Ramdaman on December 5th 2014, 1:22 pm

Topic solved and archived.

Ramdaman
Active Poster

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

http://ndihme.forumotion.com/forum

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