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.

Extra topic colors not working

3 posters

Go down

Solved Extra topic colors not working

Post by Mimóza February 13th 2016, 1: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, 2:08 pm; edited 1 time in total
Mimóza
Mimóza
Forumember

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

https://graphicballoon.forumotion.com/

Back to top Go down

Solved Re: Extra topic colors not working

Post by Ange Tuteur February 13th 2016, 2: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'
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: Extra topic colors not working

Post by Mimóza February 13th 2016, 2: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
Mimóza
Mimóza
Forumember

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

https://graphicballoon.forumotion.com/

Back to top Go down

Solved Re: Extra topic colors not working

Post by brandon_g February 13th 2016, 3: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
brandon_g
brandon_g
Manager
Manager

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

https://www.broadcastingduo.com

Back to top Go down

Back to top

- Similar topics

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