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

Male Posts : 13207
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 December 4th 2014, 6:29 pm

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

Male Posts : 13207
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 December 4th 2014, 7:37 pm

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

Male Posts : 13207
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 December 4th 2014, 8:05 pm

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 December 5th 2014, 1:22 pm

Topic solved and archived.
Ramdaman
Ramdaman
Active Poster

Male Posts : 1590
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