[Split] User Customizable Table BBcode

Get help developing custom BBCodes or request one.
defvenom
Registered User
Posts: 6
Joined: Thu Jul 11, 2024 1:44 am

[Split] User Customizable Table BBcode

Post by defvenom »

I realize this is an extremely old topic but this is exactly what I'm looking for. Is this possible to make? Or is an extension available?
Last edited by Mick on Mon Aug 12, 2024 8:58 am, edited 2 times in total.
Reason: Solved.
User avatar
Sniper_E
Registered User
Posts: 1189
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: User Customizable Table BBcode

Post by Sniper_E »

It depends on what you want it to do. The bbcode for the table part asked for in the first post could be done as...

Code: Select all

[table={COLOR1},{COLOR2}]{TEXT}[/table]
html replacement

Code: Select all

<table style="background-color: {COLOR1};border:1px solid {COLOR2}"><tr><td>{TEXT}</td></tr><table>
usage

Code: Select all

[table=#000000,#ff0000]Blah Blah Blah[/table]
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
defvenom
Registered User
Posts: 6
Joined: Thu Jul 11, 2024 1:44 am

Re: User Customizable Table BBcode

Post by defvenom »

No, I want the user to be able to choose their own styles when they are writing their bbcode. I have a lot of users who are used to ProBoards bbcode, which lets you style posts like you would html with

Code: Select all

[div style="{PROPERTY}: {VALUE};"]{TEXT}[/div]
Last edited by Mick on Sat Aug 10, 2024 6:26 am, edited 1 time in total.
Reason: Removed unnecessary quotes.
User avatar
Sniper_E
Registered User
Posts: 1189
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: [Split] User Customizable Table BBcode

Post by Sniper_E »

Code: Select all

[div style="{PROPERTY}: {VALUE};"]{TEXT}[/div]
To get exactly what you posted you could try bbcode:
[div={SIMPLETEXT1},{SIMPLETEXT2}]{TEXT}[/div]
Replacement:
<div style="{SIMPLETEXT1}: {SIMPLETEXT2}">{TEXT}</div>
Post example:
[div=background,white]Example post.[/div]

You could use many style variables using this bbcode:
[div={TEXT1}]{TEXT2}[/div]
Replacement:
<div style="{TEXT1}">{TEXT2}</div>
Post example:
[div=background: #000;color: #fff;padding: 6px;border: solid 1px #999;]Example post.[/div]

You just have to know what you want and construct your bbcode to suit your needs.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
defvenom
Registered User
Posts: 6
Joined: Thu Jul 11, 2024 1:44 am

Re: [Split] User Customizable Table BBcode

Post by defvenom »

Sniper_E wrote: Sat Aug 10, 2024 9:26 pm You could use many style variables using this bbcode:
[div={TEXT1}]{TEXT2}[/div]
Replacement:
<div style="{TEXT1}">{TEXT2}</div>
Post example:
[div=background: #000;color: #fff;padding: 6px;border: solid 1px #999;]Example post.[/div]

You just have to know what you want and construct your bbcode to suit your needs.
omg this is what i have been looking for thank you!! i can't believe it was this simple lol.

Return to “Custom BBCode Development and Requests”