Extra topic colors not working

Go down

Solved Extra topic colors not working

Post by Mimóza on 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
avatar
Mimóza
Forumember

Female Posts : 610
Reputation : 257
Language : Hungarian, English
Location : Hungary

http://dianagyms.deviantart.com/gallery/

Back to top Go down

Solved Re: Extra topic colors not working

Post by Ange Tuteur on 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'
avatar
Ange Tuteur
Forumaster

Male Posts : 13195
Reputation : 2910
Language : EN10, FR5, JA5
Location : Macungie, PA

https://github.com/SethClydesdale

Back to top Go down

Solved Re: Extra topic colors not working

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

Ooooh!   I didn't even check that script if working till now.
Thank you soooo much!!!  Very Happy Very Happy
avatar
Mimóza
Forumember

Female Posts : 610
Reputation : 257
Language : Hungarian, English
Location : Hungary

http://dianagyms.deviantart.com/gallery/

Back to top Go down

Solved Re: Extra topic colors not working

Post by brandon_g on February 13th 2016, 3:43 pm

Topic solved and archived ~ brandon_g


Remember to mark your topic when a solution is found.
avatar
brandon_g
Support Moderator
Support Moderator

Male Posts : 6768
Reputation : 618
Language : English
Location : USA

http://broadcastingduo.forumotion.com/

Back to top Go down

Back to top


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