Extra topic colors not working 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

    Extra topic colors not working

    Mimóza
    Mimóza
    Forumember


    Female Posts : 678
    Reputation : 278
    Language : Hungarian, English

    Solved Extra topic colors not working

    Post by Mimóza February 13th 2016, 3:27 pm

    Hello everyone,
    I tried to use Ange Tuteur's tutorial and add more topic title colors, but after following all the steps, nothing happens and I cannot see more colors. What did I do wrong? Or what could block the script? :o
    Thanks for all the help!! Very Happy

    Tutorial:
    Forum link:


    Last edited by Mimóza on February 13th 2016, 4:08 pm; edited 1 time in total
    Ange Tuteur
    Ange Tuteur
    Forumaster


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

    Solved Re: Extra topic colors not working

    Post by Ange Tuteur February 13th 2016, 4:02 pm

    I checked the console and an error pointed me to this script :
    Code:
    window.location.pathname=='/post'&&$(function(){
      var lang={
        info:'The poll will be added automatically.',
        poll_question:'How was the tutorial?',
        poll_answers:'Good\nAverage\nPoor
        };

      if(document.post&&document.post.mode.value=='newtopic'&&document.post.f.value==3){
        $(document.post.poll_title).closest('fieldset').html('<strong>'+lang.info+'</strong><input type="hidden" name="poll_title" value="'+lang.poll_question+'" /><input type="hidden" name="poll_option_text" value="'+lang.poll_answers+'"><input type="hidden" name="poll_length" value="30" /><input type="hidden" name="poll_cancel_vote" value="1" />')
      }
    });
    ( I believe it's for automatic polls. )

    Anyway, the only spot that needs to be corrected is this :
    Code:
    'Good\nAverage\nPoor

    If you look closely the closing apostrophe is missing, just add it to the end of the string above and it should resolve the error.
    Code:
    'Good\nAverage\nPoor'
    Mimóza
    Mimóza
    Forumember


    Female Posts : 678
    Reputation : 278
    Language : Hungarian, English

    Solved Re: Extra topic colors not working

    Post by Mimóza February 13th 2016, 4:08 pm

    Ooooh!  Extra topic colors not working Oops Extra topic colors not working Oops Extra topic colors not working Oops Extra topic colors not working Oops I didn't even check that script if working till now.
    Thank you soooo much!!!  Very Happy Very Happy
    brandon_g
    brandon_g
    Manager
    Manager


    Male Posts : 10113
    Reputation : 923
    Language : English
    Location : USA

    Solved Re: Extra topic colors not working

    Post by brandon_g February 13th 2016, 5:43 pm

    Topic solved and archived ~ brandon_g



    Extra topic colors not working Brando10
    Remember to mark your topic Extra topic colors not working Solved15 when a solution is found.
    General Rules | Tips & Tricks | FAQ | Forgot Founder Password?

    Extra topic colors not working Scre1476
    Team Leader
    Review Section Rules | Request A Review | Sticker Points