Jump to content

Guidance to update your BBCode - December 2023


Pickysaurus

Recommended Posts

This thread is part of the announcement posted on Nexus Mods here, please check that post if you're unsure of why the BBCode has changed. 

 

If you need help with your formatting please include a link to the content you're trying to update as part of your reply. 

 

To update a mod page BBCode to ensure it loads correctly after the security update on 20 December 2023, you should follow these general guidelines. 

 

  • Treat each new type of formatting as a "block" and ensure that everything the formatting is intended to apply to is inside that section. 
  • Don't close BBCode tags inside other BBCode tags - this will create an invalid hierarchy.
  • When using spoilers, keep any formatting for the spoiler content self-contained so it doesn't "leak" out onto other content. 
  • If you want to make your BBCode easier to read, you may want to consider putting the formatting tags on new lines.

The most common area for formatting to stop working is with spoilers.

 

Examples

These examples show common cases where the page will not display properly and how to fix them.

❌ Invalid - Italics tag starts outside the spoiler but ends inside it.

[i][spoiler]
Text I want inside the spoiler that is italic[/i]
[/spoiler]

❌ Invalid - Italics tag starts inside the spoiler but ends outside of it.

[spoiler]
[i]Text I want inside the spoiler that is italic
[/spoiler][/i]

✔ Valid - The italics only apply to the text inside the spoiler.

Some regular text
[spoiler]
[i]Text I want insider the spoiler that is italic[/i]
[/spoiler]

✔ Valid - The italics apply to everything, including the spoiler.

[i]Some regular text
[spoiler]
Text I want insider the spoiler that is italic
[/spoiler]
[/i]

Here's an example of the error. The spoiler should include all the content down to the red line, but is empty. 

image.thumb.png.7a64ee702034a4ef0e4dd7a1fd8acbc7.png

 

Editing BBCode directly

BBCode can be edited directly by swapping to the BBCode view in the editor. This is not available on mobile devices. 

image.thumb.png.a5b03a774a74bc6562f3d573416126ba.png

Link to comment
Share on other sites

  • 2 weeks later...
3 hours ago, haplessAccreditation said:

Valid nested lists are broken.

 

[list]
	[*] This is a top level comment
	[list]
		[*]This is a nested comment, and it will break the bbc interp
	[/list]
[/list]

 

Thanks. I can't promise this will be looked at until the new year now but I'll pass it on. 

Link to comment
Share on other sites

  • 3 weeks later...

It took me a lot of time and work but I figured out that single bulleted lists do work in a spoiler still but they will on the back end cause the BB code to put a size flag on each line/bullet when you use the bulleted list tool on the mod page which now breaks the spoiler. If you simply go to the BB code of the mod page and then remove the size flags and just leave the bulleted list in there and define size at a high level over the whole mod page it will work. While this isnt hard to do it is work* and will take a hot min. Just make sure you go slow and methodical as you do it. I personally make a backup copy of the original bb code in a notepad ++ doco.

This was in a way addressed in posts here and on the big community shout out but not specifically about how bulleted lists are breaking things via inserting flags on every single bullet on every line. Which was the source and cause of my personal issues.

 

 

Edited by EdmondNoir
High level all edits were to clarify things better but also I found out that BB code I was showcasing was being used here (of course duh) so it was getting hidden and just used by my text - It needed to be redone in a "Code" but it was too much work
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...