How add/change the color of topic title? Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
3 posters

    How add/change the color of topic title?

    yayayes
    yayayes
    Forumember


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

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


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

    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
    yayayes
    yayayes
    Forumember


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

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


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

    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
    yayayes
    yayayes
    Forumember


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

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


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

    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
    yayayes
    yayayes
    Forumember


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

    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 ><!
    Ramdaman
    Ramdaman
    Active Poster


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

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

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

    Topic solved and archived.