The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How add/change the color of topic title?

3 posters

Go down

Solved How add/change the color of topic title?

Post by yayayes Thu 4 Dec 2014 - 18:22

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 Fri 5 Dec 2014 - 1:52; edited 1 time in total
yayayes
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 Thu 4 Dec 2014 - 18:26

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

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

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

Post by yayayes Thu 4 Dec 2014 - 18:29

Thank you very much Ange 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
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 Thu 4 Dec 2014 - 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 2015 - 16:07; edited 1 time in total
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

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

Post by yayayes Thu 4 Dec 2014 - 19:37

This code is not working, sorry ^^"
yayayes
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 Thu 4 Dec 2014 - 19:55

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

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

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

Post by yayayes Thu 4 Dec 2014 - 20:05

Oh that's true. Thank you again Ange Tuteur ><!
yayayes
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 Fri 5 Dec 2014 - 13:22

Topic solved and archived.
Ramdaman
Ramdaman
Active Poster

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

http://ndihme.forumotion.com/forum

Back to top Go down

Back to top

- Similar topics

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