Replies

Jan 14, 2018 8 years ago Official
Bug
User Avatar
Segfault

Troubleshooting Broken Profiles

The new sCode processor is a lot stricter about enforcing the rules of both sCode and HTML. It also has a few quirks of its own. Here are some common issues to look for if your code has stopped working. Please give this a read and make a post if nothing here solves your issue.

Spoiler titles When using the spoiler= sCode, you can no longer include sCode within the title; it must be plaintext. If you need a fancier title, you can use this workaround for now: [spoilertitle]
Fancy title
[/spoilertitle][spoilercontent]Hello world![/spoilercontent]
Which will look like this: [spoilertitle]
Fancy title
[/spoilertitle][spoilercontent]Hello world![/spoilercontent]

If you are targeting spoilers with CSS, use the classes .spoiler-click for the title and .spoiler-text for the content.

Style tag and quotes When including CSS in a profile, make sure your style tag is opened by one of the following: (Preferred) <style type="text/css"> <style> Examples of things that won't work: <style type=text/css>

<style type='text/css'>
Order of closed tags Make sure that nested tags are closed in the correct order. For example: Hellowill result in an error. The correct order would be: Hello
Extra line breaks due to br tag In some places, if you use both a br tag AND a line break (via the enter key), it will interpret each of those as a line break and will give you double line breaks as a result. For example: hello
world
Will give you two line breaks. But this will give you just one line break in between the lines: hello world This will also only give you one line break: hello
world
Square brackets inside CSS If you have something like this inside style tags, it will break: div[style^='width:50%'] { display:none; } This is because of the square brackets within the code. This is unintentional, and will be fixed, but is mentioned here because it could be causing your code to break.
Make sure you check for other HTML syntax errors as well, such as: missing quotation marks, missing closing tags, unclosed divs, etc Still having issues? Please paste your code somewhere (we recommend Pastebin.org) and include a link to this paste and the profile in question when asking for help. You may post on this topic where I (and hopefully other users!) will try to help you. There is no need to ping me as I will be checking on this topic regularly to respond. Please see this topic to read more about the sCode update itself: Update: New sCode Processor

🐝 ☕ bug (he/him) | your friendly neighborhood code wrangler. stay in the loop! join and check out the latest admin post highlights

Jan 17, 2018 8 years ago Official
Bug
User Avatar
Segfault

Please read the first post! This is already mentioned (under the spoiler "Square Brackets in CSS") and it's also mentioned there's no need to ping me personally here.

🐝 ☕ bug (he/him) | your friendly neighborhood code wrangler. stay in the loop! join and check out the latest admin post highlights

Please log in to reply to this topic.