The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Extra topic colors not working

View previous topic View next topic 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

Mimóza
Forumember

Female Posts : 541
Reputation : 241
Language : :)
Location : @Graphic Balloon

http://www.graphicballoon.com/

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'

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

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

Mimóza
Forumember

Female Posts : 541
Reputation : 241
Language : :)
Location : @Graphic Balloon

http://www.graphicballoon.com/

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.

brandon_g
Support Moderator
Support Moderator

Male Posts : 5140
Reputation : 478
Language : English
Location : USA

http://broadcastingduo.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


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