Replies

Apr 23, 2018 7 years ago Official
Bug
User Avatar
Segfault

How to Fix Broken Pet Profiles

(Previously spread over 3 topics. Now consolidated into one.)
As you know, some coding was affected by site updates. There have been troubleshooting tips and fixes for common problems in a few topics here, so I've compiled them into this post. If there's anything not here that you think should be added, please let me know.


If the < and > symbols got messed up

How to fix it (Click to open) This is the easiest way to restore your code:

  1. Select all of your code and COPY it.
  2. Go to an online "html entities decoder", for instance this one (warning: link is offsite)
  3. PASTE your code into the text box and click "Decode" to get your result.
  4. Replace your profile code with the decoded text.

If you don't want to use a free online tool, you can use Find & Replace in any text editor: -- Replace > with > -- Replace < with < -- Replace " with " In most cases, doing these three find-and-replace commands will suffice to fix it.


If the layout is broken or misaligned

The good news is it is usually not as bad as it looks. You don't need to rewrite your entire profile. Usually the required fix is just 1-2 lines of code; the tricky part is figuring out what fix is required.

1. This one fixes most profiles, so definitely give this a try. Add this to the beginning of your CSS. html,body,,-content,{position:static!important;} .container-fluid {position:absolute;top:0;left:0;right:0;bottom:0;}If this fixes your profile, but the entire thing is now shifted to the left or right, simply tweak the values for left and right in the second line. For example: left:176px;

2. If your profile is mostly fine, but has extra scrollbars, try the following. {height:auto!important;} 3. Pages now have an extra container, with the CSS id "main-content". In some cases, the code can be fixed by looking for CSS rules on containers and adding this. For example, if you see a CSS rule that begins with this - html,body,,Try adding the main-content, so it looks like this - html,body,,,-content


If you have broken spoilers or formatting

The new sCode processor is a lot stricter about enforcing the rules of both sCode and HTML. Please see this topic to read more about the sCode update itself: Update: New sCode Processor And check out the updated sCode reference as well.

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? Feel free to make a topic about your problem. Please paste your code somewhere (we recommend Pastebin.org - link is offsite!) and link both the pastebin AND the profile in question when asking for help.

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

Apr 25, 2018 7 years ago
Hongske
is lost in space
User Avatar

Thank you for this topic! It's great that there's just 1 thread for this now :)

Apr 28, 2018 7 years ago
placebo
has x-ray vision
User Avatar
dimitri.

@ Bug are these fixes for pet profiles? i have at least 1 broken. (as i didn't check all of them) [edit]You got a forum point while making a post! Check out the shop.. cool!

I really have to update my blog ObscureJourney and my review site BeingObscure. French speakers can read my reviews here.

Apr 29, 2018 7 years ago
Bug
User Avatar
Segfault

Yes, pet profiles. I've edited the first post to make that clearer :)

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

Sep 8, 2019 6 years ago
FabulousViolet
is a gem
User Avatar
ShotBomb

i need profile help please.. my whole profile is all on the left side no longer centered or taking up the full page as it should

this makes the add a feature not work because it is covered by other images and music sections

i would like it to be full page again and to add other sections to it.

ClickWHAT YOU NEEDplay~ [url=https://youtu.be/OCyu_MZdTJM]ClickPlay RUN Snow Patrol~[/url ]

Aug 21, 2022 3 years ago
raw
has been spooked
User Avatar
Khonsu

Hey! I am having issues with my treasure chest being affected every time I try to mess with the pet image and basic description (ie owner, name, legacy name, birthdate, etc) I want to place this in a DIV but for some reason when I try to do this my TC is moved from the fixed position I'd like it to stay in. I also had issues when I tried to make the treasure chest have a scroll bar, the entire page began to scroll, not just the TC.

Any ideas or help would be much appreciated!

EDIT I have corrected some of my issues, hah. Getting there...


Wishlist
Message
[box=#CDC2D9][/box]

Please log in to reply to this topic.