Page 1 of 2

BBCode List

Posted: 04 Apr 2022, 16:26
by Caesar
I know a lot of people are more familiar with HTML than they are with BBCode so I've decided to start a thread with all the code that is currently on the board. If there is something that you don't see that you think would be helpful, let me know and I'll add it in the backend then put it in this first post.

Div Box
[divbox={COLOR}]{TEXT}[/divbox]

Align
[align={IDENTIFIER}]{TEXT}[/align]

Float (this is what you would use to align an image and wrap the text. Put the image code in {TEXT} and the text after the close tag)
[float={IDENTIFIER}]{TEXT}[/float]

Spoiler
[ spoil ]{TEXT}[/ spoil]

Hidden
[ hidden]{TEXT}[/ hidden]

Horizontal Rule (it's gray so keep that in mind on certain skins)
[ hr][/ hr]

Indent
[indent]{NUMBER}[/indent]

Div without box
[div={NUMBER1},{NUMBER2},{NUMBER3},{NUMBER4}]{TEXT}[/div]
NOTE: This is the corresponding HTML code and what the numbers edit. <div style="border:{NUMBER1}px solid black; margin:auto; padding-left: {NUMBER2}px; padding-right: {NUMBER3}px; width: {NUMBER4}px;">{TEXT}</div>

Table
[ table]{TEXT}[/ table]

Table Row
[ tr]{TEXT}[/ tr]

Table Header
[ th]{TEXT}[/ th]

Table Cell
[ td]{TEXT}[/ td]

Table Body
[ tbody]{TEXT}[/ tbody]

Table Footer
[ tf]{TEXT}[/ tf]

Font (INTTEXT is the font family)
[font={INTTEXT}]{TEXT}[/font]

BBCode List

Posted: 04 Apr 2022, 16:30
by supahotfire
:bowdown: :bowdown: :bowdown:


what is div for? Is it just a box outline?

BBCode List

Posted: 04 Apr 2022, 16:48
by Caesar
mvp wrote:
04 Apr 2022, 16:30
:bowdown: :bowdown: :bowdown:


what is div for? Is it just a box outline?
From what I can tell, one you can put color into and one you can't.

Div Box
Test
Div
Test

BBCode List

Posted: 06 Apr 2022, 09:17
by supahotfire
What's the possibility we can get more options, like this (https://www.therpnexus.com/index.php?th ... -tags.384/), added to our site?

BBCode List

Posted: 06 Apr 2022, 10:51
by Caesar
Updated the div code. You can now control the size.

BBCode List

Posted: 06 Apr 2022, 10:58
by supahotfire
This is major. Props man, appreciate this update

BBCode List

Posted: 16 Nov 2025, 09:51
by toysoldier00
Apologies if there is a way to do this already that I cannot figure out. But if not,

Is there any way to add a BBCode wrapper that allows margin control inside posts? essentially a narrowed text column?
For example, something like:
[column=20]Text here[/column]

Which would render as:
<div style="margin-left:20%; margin-right:20%;">Text here</div>

The goal is simply to create a readable centered column of text instead of having the full post width. It could make writeups look much cleaner when matching text width to resized images. And give a little bit more flexibility to what can be made.

BBCode List

Posted: 16 Nov 2025, 10:13
by supahotfire
toysoldier00 wrote:
16 Nov 2025, 09:51
Apologies if there is a way to do this already that I cannot figure out. But if not,

Is there any way to add a BBCode wrapper that allows margin control inside posts? essentially a narrowed text column?
For example, something like:
[column=20]Text here[/column]

Which would render as:
<div style="margin-left:20%; margin-right:20%;">Text here</div>

The goal is simply to create a readable centered column of text instead of having the full post width. It could make writeups look much cleaner when matching text width to resized images. And give a little bit more flexibility to what can be made.
Yes! I figured out how to do this with using this nesting:

centerTable
Tr
Td
Table
Tr
TD
Div (put in your custom sizes)
/div
/td
/tr
/table
/td
/tr
/centerTable

BBCode List

Posted: 16 Nov 2025, 10:58
by toysoldier00
six7 wrote:
16 Nov 2025, 10:13
toysoldier00 wrote:
16 Nov 2025, 09:51
Apologies if there is a way to do this already that I cannot figure out. But if not,

Is there any way to add a BBCode wrapper that allows margin control inside posts? essentially a narrowed text column?
For example, something like:
[column=20]Text here[/column]

Which would render as:
<div style="margin-left:20%; margin-right:20%;">Text here</div>

The goal is simply to create a readable centered column of text instead of having the full post width. It could make writeups look much cleaner when matching text width to resized images. And give a little bit more flexibility to what can be made.
Yes! I figured out how to do this with using this nesting:

centerTable
Tr
Td
Table
Tr
TD
Div (put in your custom sizes)
/div
/td
/tr
/table
/td
/tr
/centerTable
Thank you! I thought there must be a way. That was going to drive me crazy haha!

BBCode List

Posted: 16 Nov 2025, 12:12
by djp73
Can one of you post an example of that?

Is there a way to center a table?