NATION

PASSWORD

Custom BBCodes for the new forum

Bug reports, general help, ideas for improvements, and questions about how things are meant to work.

Advertisement

Remove ads

User avatar
Reploid Productions
Forum Admin
 
Posts: 26150
Founded: Antiquity
Democratic Socialists

Postby Reploid Productions » Wed Feb 03, 2016 1:07 am

Yeah, sadly, due to the limitations of BBCode, our table codes are extremely basic.
Forum mod since May 8, 2003 -- Game mod since May 19, 2003
Reppy's DoGA FAQ - For those using DoGA to make their NS military and such
One Stop Rules Shop -- Reppy's Sig Workshop -- Getting Help Page
[violet] wrote:Maybe we could power our new search engine from the sexual tension between you two.
Ifreann wrote:Bring Reppy your signet rings, she is our Brony Queen now!

I believe in the magic of friendship, the wholly awesome bronydom, the conventions of fans,
the forgiveness of haters, the resurrection of faith in humanity, and love everlasting.

In nomine poni, et filly, et spiritus stable.
Char Aznable/Giant Meteor 2020! - Forcing humanity to move into space and progress whether we goddamn want to or not!

User avatar
Alien Space Bats
Powerbroker
 
Posts: 9987
Founded: Sep 28, 2009
Benevolent Dictatorship

Re: Custom BBCodes for the new forum

Postby Alien Space Bats » Fri Feb 05, 2016 11:31 am

Four years ago (in my Presidential horse-race thread, which involved a lot of tables full of polling results) I ran into problems with the [bgcolor=][/bgcolor] tag not being properly implemented on this server (which I noted at the time). Is there any hope of having that code implemented soon, so that the coming 2016 Presidential horse-race thread won't suffer from similar issues?

Remember, this is a feature that SHOULD already be working, because it's actually a part of the BBCode language.
"These states are just saying 'Yes, I used to beat my girlfriend, but I haven't since the restraining order, so we don't need it anymore.'" — Stephen Colbert, Comedian, on Shelby County v. Holder

"Do you see how policing blacks by the presumption of guilt and policing whites by the presumption of innocence is a self-reinforcing mechanism?" — Touré Neblett, MSNBC Commentator and Social Critic

"You knew damn well I was a snake before you took me in."Songwriter Oscar Brown in 1963, foretelling the election of Donald J. Trump

President Donald J. Trump: Working Tirelessly to Make Russia Great Again

User avatar
Enfaru
Minister
 
Posts: 2921
Founded: Apr 20, 2012
Ex-Nation

Postby Enfaru » Fri Feb 05, 2016 11:49 am

No...that's not how it works at all.

These are the standard bbcodes: http://www.bbcode.org/reference.php
https://en.wikipedia.org/wiki/BBCode
https://www.phpbb.com/community/faq.php?mode=bbcode

If you mean "Background" which is a custom bbcode, it is implemented.

My text
Code: Select all
[background=blue][color=white]My text[/color][/background]
Sovereign Charter Quick Links
Factbook · Role-plays · RMB · Map (Origin | Quantum) · Chat · Members: 73
Myraxia: One does not learn to GM; One throws oneself in and prays they don't fuck up too badly.
Game Master
Founder of the Sovereign Charter,
4th President and,
Tutor of the College of Theatrics

User avatar
Shazbotdom
Powerbroker
 
Posts: 7538
Founded: Sep 28, 2004
Anarchy

Postby Shazbotdom » Fri Feb 05, 2016 2:04 pm

ASB,
It's part of standard HTML, but not BBCode. The Table BBCode is a custom code that Reppy threw together. For you to be able to use the BCGolor code within a table, it would have to be manually added into the Table code. I'm not sure what it would do to the existing codes that others are currently using, as it might break their varied codes within hundreds of thousands of threads.
VGS (28-22-8|64PTS) || CHI (25-23-8|58PTS) || COL (33-16-6|72PTS) || NYR (28-23-4|60PTS)
The Shazbotdom Empire || ShazWeb || IIWiki || Embassies v6.0 || #SITHLIVESMATTER
Shazbert Bot's Gaming Adventures || PolyComp: E: -0.52 | S: -3.33 || WSPT: E: 100% | P: 100%

User avatar
Alien Space Bats
Powerbroker
 
Posts: 9987
Founded: Sep 28, 2009
Benevolent Dictatorship

Re: Custom BBCodes for the new forum

Postby Alien Space Bats » Fri Feb 05, 2016 2:25 pm

I've seen discussions of [bgcolor] as a way of coloring table cells in a number of places on the web, which led me to believe that was a standard part of BBCode.

As for [background], that only works on a character-by-character basis. It doesn't let you simply color the cell background a single color.

Now, if there were a way to fix the length of a cell, then [background] would work just fine. But there's not.
"These states are just saying 'Yes, I used to beat my girlfriend, but I haven't since the restraining order, so we don't need it anymore.'" — Stephen Colbert, Comedian, on Shelby County v. Holder

"Do you see how policing blacks by the presumption of guilt and policing whites by the presumption of innocence is a self-reinforcing mechanism?" — Touré Neblett, MSNBC Commentator and Social Critic

"You knew damn well I was a snake before you took me in."Songwriter Oscar Brown in 1963, foretelling the election of Donald J. Trump

President Donald J. Trump: Working Tirelessly to Make Russia Great Again

User avatar
Enfaru
Minister
 
Posts: 2921
Founded: Apr 20, 2012
Ex-Nation

Postby Enfaru » Fri Feb 05, 2016 3:11 pm

Part of standard html? O_o;;; That's a style tag, it should not be a part of standard html, it should have been deprecated already. CSS provides more than enough to cover that.

It was deprecated as part of HTML 4.01.

https://www.w3.org/TR/html401/present/graphics.html

Not even part of standard html. We're now on HTML5, which was formally published in October 2014.

Using out of date HTML is not recommended. Browsers progress and newer browsers may not support compatibility for old websites.
Sovereign Charter Quick Links
Factbook · Role-plays · RMB · Map (Origin | Quantum) · Chat · Members: 73
Myraxia: One does not learn to GM; One throws oneself in and prays they don't fuck up too badly.
Game Master
Founder of the Sovereign Charter,
4th President and,
Tutor of the College of Theatrics

User avatar
Reploid Productions
Forum Admin
 
Posts: 26150
Founded: Antiquity
Democratic Socialists

Postby Reploid Productions » Fri Feb 05, 2016 3:20 pm

Part of the difficulty of making things like background colors and all the other myriad things you can do with tables stems from the fact that tables + CSS provides a huge amount of customization options. BBCode, in contrast, does not; it's limited basically to one customizable variable (for instance, the options on the align tag, or the color tag.) That's the big reason that our table BBCode is so heavily limited; we lack a good way to translate the variety of variables from HTML/CSS into the far more limited BBCode. Putting a background fill in a specific table cell is something done via CSS attached to the table's tags (be it the main table, a row, or a specific cell's tag,) it's not a separate piece of HTML. The closest thing we have is the background BBCode, but that can't do a background for a section of a table, it can only put a background on a specific slice of text.

Not really something we can fix, unfortunately. =/
Forum mod since May 8, 2003 -- Game mod since May 19, 2003
Reppy's DoGA FAQ - For those using DoGA to make their NS military and such
One Stop Rules Shop -- Reppy's Sig Workshop -- Getting Help Page
[violet] wrote:Maybe we could power our new search engine from the sexual tension between you two.
Ifreann wrote:Bring Reppy your signet rings, she is our Brony Queen now!

I believe in the magic of friendship, the wholly awesome bronydom, the conventions of fans,
the forgiveness of haters, the resurrection of faith in humanity, and love everlasting.

In nomine poni, et filly, et spiritus stable.
Char Aznable/Giant Meteor 2020! - Forcing humanity to move into space and progress whether we goddamn want to or not!

User avatar
Leppikania
Minister
 
Posts: 2301
Founded: Apr 13, 2015
Scandinavian Liberal Paradise

Postby Leppikania » Thu Feb 11, 2016 11:53 am

Can there be an extra field in the [url] tag for opening in a new tab/window?
INTP, -4.25 Economic Left/Right, -4.1 Social Libertarian/Authoritarian, tastes like chicken.
I do use NS stats, thank you very much.
Funny Quotes
Pie charts for industries
Request an Embassy

User avatar
Enfaru
Minister
 
Posts: 2921
Founded: Apr 20, 2012
Ex-Nation

Postby Enfaru » Thu Feb 11, 2016 1:22 pm

or an extra field for "image"...alt? Anyone for accessibility?
Sovereign Charter Quick Links
Factbook · Role-plays · RMB · Map (Origin | Quantum) · Chat · Members: 73
Myraxia: One does not learn to GM; One throws oneself in and prays they don't fuck up too badly.
Game Master
Founder of the Sovereign Charter,
4th President and,
Tutor of the College of Theatrics

User avatar
Floor 448
Envoy
 
Posts: 282
Founded: Mar 05, 2016
Ex-Nation

Postby Floor 448 » Fri Apr 29, 2016 6:51 am

I wonder if Reppy could, at some point, document that [ osrs] tag. It's ridiculously obscure at the moment. It just links to the OSRS, as you may have guessed, but given that most of the active mods don't know about it, I think it deserves documentation. To be known.
Guess who I am! Or, rather, was.
Speak of the Devil, and he shall appear. He gets a notification that someone mentioned him.
When posting an image for me, please don't use Imgur.
Cumberlanda wrote:I, for one, am currently happy with our robot oppressors.

Gest II wrote:Somehow that was interpreted to mean: those foreign devils and their squiggly languages are incapable of learning Her Majesty's Tongue.
And now that I've gotten used to StackOverflow, I can't seem to wrap my head around not being able to edit posts with terrible spelling and/or grammar.

User avatar
The Macabees
Senior N&I RP Mentor
 
Posts: 3448
Founded: Antiquity
Anarchy

Postby The Macabees » Fri Apr 29, 2016 10:47 am

Is there a target=_blank for the url bbcode?

User avatar
Mousebumples
Game Moderator
 
Posts: 8444
Founded: Antiquity
Inoffensive Centrist Democracy

Postby Mousebumples » Sat Apr 30, 2016 5:09 am

Floor 448 wrote:I wonder if Reppy could, at some point, document that [ osrs] tag. It's ridiculously obscure at the moment. It just links to the OSRS, as you may have guessed, but given that most of the active mods don't know about it, I think it deserves documentation. To be known.

You sure most of the active mods don't know about it? I think it's pretty well known among staff, at least. Another helpful link is to the GHR. [.help][./help]
Leader of the Mouse-a-rific Mousetastic Moderator Mousedom of Mousebumples
Past WA Delegate for Europeia & Monkey Island
Proud Member of UNOG
I'm an "adorably marvelous NatSov" - Mallorea and Riva
GA Resolutions (sorted by category) | Why Repeal? | Reppy's Sig Workshop

User avatar
Floor 448
Envoy
 
Posts: 282
Founded: Mar 05, 2016
Ex-Nation

Postby Floor 448 » Mon Jun 06, 2016 8:06 pm

Hmm… tag idea:
Code: Select all
[osrs={INTTEXT}]{TEXT}[/osrs]

||
V
Code: Select all
<a href="./viewtopic.php?f=16&t=260044#{INTTEXT}">{TEXT}</a>
Guess who I am! Or, rather, was.
Speak of the Devil, and he shall appear. He gets a notification that someone mentioned him.
When posting an image for me, please don't use Imgur.
Cumberlanda wrote:I, for one, am currently happy with our robot oppressors.

Gest II wrote:Somehow that was interpreted to mean: those foreign devils and their squiggly languages are incapable of learning Her Majesty's Tongue.
And now that I've gotten used to StackOverflow, I can't seem to wrap my head around not being able to edit posts with terrible spelling and/or grammar.

User avatar
Shazbotdom
Powerbroker
 
Posts: 7538
Founded: Sep 28, 2004
Anarchy

Postby Shazbotdom » Tue Sep 06, 2016 3:56 pm

I hate to bump this up, but would someone with access to the Administration Options on the forums be so kind as to give me the HTML Equivalent for the [box] tag?


Gratzi.
VGS (28-22-8|64PTS) || CHI (25-23-8|58PTS) || COL (33-16-6|72PTS) || NYR (28-23-4|60PTS)
The Shazbotdom Empire || ShazWeb || IIWiki || Embassies v6.0 || #SITHLIVESMATTER
Shazbert Bot's Gaming Adventures || PolyComp: E: -0.52 | S: -3.33 || WSPT: E: 100% | P: 100%

User avatar
Talchyon
Senator
 
Posts: 4802
Founded: May 05, 2016
Iron Fist Consumerists

Postby Talchyon » Sat Oct 01, 2016 9:37 pm

I need some help.

First time OP. And I'm doing a reboot, with permission. So I'm trying to use all of the text from the original OOC... and everything not in boxes, spoilers, or lists is coming back with weird spacing problems I can't seem to fix. Like the whole thing went to double-spaced in between lines.


Also, another thing. At the very bottom are two lines that give credit to artists. Problem is, they say they're size 50 but the preview puts them at super tiny so you can hardly read it. Is it just the preview?

Thanks. May have more questions.
In a world, where heroes have turned chicken... (literally)
In a world, where the most powerful are insane with keeping that power...
In a world, where one of the next greatest enemies may be a Southern Colonel with 11 Herbs and Spices -

Some of the lamest powered, D-level heroes try to take a stand, in the long-running RP comedy series: The Infinites!

Join me for: The Infinites - INFINITE GAUNTLET (OOC) - and the IC page is here!

User avatar
Shazbotdom
Powerbroker
 
Posts: 7538
Founded: Sep 28, 2004
Anarchy

Postby Shazbotdom » Sat Oct 01, 2016 10:12 pm

Talchyon wrote:I need some help.

First time OP. And I'm doing a reboot, with permission. So I'm trying to use all of the text from the original OOC... and everything not in boxes, spoilers, or lists is coming back with weird spacing problems I can't seem to fix. Like the whole thing went to double-spaced in between lines.


Also, another thing. At the very bottom are two lines that give credit to artists. Problem is, they say they're size 50 but the preview puts them at super tiny so you can hardly read it. Is it just the preview?

Thanks. May have more questions.


What's the thread? A link would help us help you.
VGS (28-22-8|64PTS) || CHI (25-23-8|58PTS) || COL (33-16-6|72PTS) || NYR (28-23-4|60PTS)
The Shazbotdom Empire || ShazWeb || IIWiki || Embassies v6.0 || #SITHLIVESMATTER
Shazbert Bot's Gaming Adventures || PolyComp: E: -0.52 | S: -3.33 || WSPT: E: 100% | P: 100%

User avatar
Talchyon
Senator
 
Posts: 4802
Founded: May 05, 2016
Iron Fist Consumerists

Postby Talchyon » Sun Oct 02, 2016 11:14 am

Shazbotdom wrote:
Talchyon wrote:I need some help.

First time OP. And I'm doing a reboot, with permission. So I'm trying to use all of the text from the original OOC... and everything not in boxes, spoilers, or lists is coming back with weird spacing problems I can't seem to fix. Like the whole thing went to double-spaced in between lines.


Also, another thing. At the very bottom are two lines that give credit to artists. Problem is, they say they're size 50 but the preview puts them at super tiny so you can hardly read it. Is it just the preview?

Thanks. May have more questions.


What's the thread? A link would help us help you.


Sorry. Thread is "The Infinites". Premise is comedic, group of D-level superheroes that are the lamest heroes of them all.

The old OOC that I'm copying a lot of the first post - https://forum.nationstates.net/viewtopi ... 1&t=388689

The old IC if you're interested - viewtopic.php?f=31&t=389006


The problem was happening with a saved file that I haven't posted yet, but I'm working on to get it going well before I post...


EDIT - Ok, I got the new OOC post up here. https://forum.nationstates.net/viewtopi ... 1&t=390875 - Notice how there are several paragraphs of double-spaced lines? I can't figure that out! (But I did get the other one, with the really small typesize before. It was being messed up by a "floatleft" command above it, for some reason).

Thanks. - Talc
Last edited by Talchyon on Sun Oct 02, 2016 8:41 pm, edited 2 times in total.
In a world, where heroes have turned chicken... (literally)
In a world, where the most powerful are insane with keeping that power...
In a world, where one of the next greatest enemies may be a Southern Colonel with 11 Herbs and Spices -

Some of the lamest powered, D-level heroes try to take a stand, in the long-running RP comedy series: The Infinites!

Join me for: The Infinites - INFINITE GAUNTLET (OOC) - and the IC page is here!

User avatar
Mousebumples
Game Moderator
 
Posts: 8444
Founded: Antiquity
Inoffensive Centrist Democracy

Postby Mousebumples » Mon Oct 03, 2016 3:15 am

You've got a mis-nested tag issue. Tags need to be closed in the opposite order that they're opened.

Code: Select all
i.e. [a][b][c][/c][/b][/a]


On first glance, check the coding around where you mention THE INFINITES!

You've also got a random [size] tag that doesn't seem to be closed before a [.box] code.
Leader of the Mouse-a-rific Mousetastic Moderator Mousedom of Mousebumples
Past WA Delegate for Europeia & Monkey Island
Proud Member of UNOG
I'm an "adorably marvelous NatSov" - Mallorea and Riva
GA Resolutions (sorted by category) | Why Repeal? | Reppy's Sig Workshop

User avatar
Imperium Anglorum
Powerbroker
 
Posts: 9129
Founded: Aug 26, 2013
Left-Leaning College State

Postby Imperium Anglorum » Mon Oct 03, 2016 4:08 am

Shazbotdom wrote:I hate to bump this up, but would someone with access to the Administration Options on the forums be so kind as to give me the HTML Equivalent for the [box]tag?

The box is just a blockquote tag with a certain style. That style is entirely implemented in CSS.

Author: 1 SC and 31 GA resolutions
Maintainer: GA Passed Resolutions
Developer: Communiqué and InfoEurope
Delegate for Europe
Out-of-character unless marked otherwise
Ideological Bulwark 285, WALL delegate
Dastardly villain providing free services to the community sans remuneration

User avatar
Talchyon
Senator
 
Posts: 4802
Founded: May 05, 2016
Iron Fist Consumerists

Postby Talchyon » Mon Oct 03, 2016 7:20 am

Mousebumples wrote:You've got a mis-nested tag issue. Tags need to be closed in the opposite order that they're opened.

Code: Select all
i.e. [a][b][c][/c][/b][/a]


On first glance, check the coding around where you mention THE INFINITES!

You've also got a random [size] tag that doesn't seem to be closed before a [.box] code.



Thanks. It's a LOT better.
In a world, where heroes have turned chicken... (literally)
In a world, where the most powerful are insane with keeping that power...
In a world, where one of the next greatest enemies may be a Southern Colonel with 11 Herbs and Spices -

Some of the lamest powered, D-level heroes try to take a stand, in the long-running RP comedy series: The Infinites!

Join me for: The Infinites - INFINITE GAUNTLET (OOC) - and the IC page is here!

User avatar
Leppikania
Minister
 
Posts: 2301
Founded: Apr 13, 2015
Scandinavian Liberal Paradise

Postby Leppikania » Mon Oct 03, 2016 1:11 pm

Shazbotdom wrote:I hate to bump this up, but would someone with access to the Administration Options on the forums be so kind as to give me the HTML Equivalent for the [box] tag?


Gratzi.

Don't need them. You just need to view the page source. The HTML equivalent is this:
Code: Select all
<blockquote style="background-image:none; margin-left:0">{TEXT}</blockquote>
INTP, -4.25 Economic Left/Right, -4.1 Social Libertarian/Authoritarian, tastes like chicken.
I do use NS stats, thank you very much.
Funny Quotes
Pie charts for industries
Request an Embassy

User avatar
NationHelper
Envoy
 
Posts: 247
Founded: Mar 27, 2017
Ex-Nation

Postby NationHelper » Sun Apr 23, 2017 11:40 am

How do we do this "code: select all" thing?

User avatar
Leutria
Ambassador
 
Posts: 1615
Founded: Oct 29, 2012
Civil Rights Lovefest

Postby Leutria » Sun Apr 23, 2017 2:17 pm

Code: Select all
[code]Text Here[/code]

User avatar
NationHelper
Envoy
 
Posts: 247
Founded: Mar 27, 2017
Ex-Nation

Postby NationHelper » Sun Apr 23, 2017 2:20 pm

Leutria wrote:
Code: Select all
[code]Text Here[/code]

Code: Select all
this

User avatar
Dakota Territories
Lobbyist
 
Posts: 19
Founded: Nov 19, 2019
Democratic Socialists

Postby Dakota Territories » Wed Jan 15, 2020 8:10 pm

Is the [code] thing workable for telegrams or?
E

PreviousNext

Advertisement

Remove ads

Return to Technical

Who is online

Users browsing this forum: No registered users

Advertisement

Remove ads