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
-Bederich-
Ambassador
 
Posts: 1475
Founded: Aug 23, 2010
Ex-Nation

Postby -Bederich- » Fri Sep 30, 2011 1:17 pm

You can make text larger than size 300! I discovered this when working on one of my storefronts. I must have made a bb code error, I clicked preview, and everything was massive. Then, I refined it into this.
Code: Select all
[size=300][background=ooo][/size][size=300]MEGATEXT[/background][/size]
MEGATEXT

Size 300 Text

User avatar
Hassett
Ambassador
 
Posts: 1957
Founded: Sep 11, 2009
Anarchy

Postby Hassett » Tue Oct 04, 2011 10:13 pm

-Bederich- wrote:You can make text larger than size 300! I discovered this when working on one of my storefronts. I must have made a bb code error, I clicked preview, and everything was massive. Then, I refined it into this.
Code: Select all
[size=300][background=ooo][/size][size=300]MEGATEXT[/background][/size]
MEGATEXT

Size 300 Text

Very interesting trick, I will have to keep this in mind :)

It also works if you split it using the font color code, so you can make it even bigger.

Code: Select all
[spoiler][size=300][color=red][/size][size=300][background=white][/size][size=300]EVEN BIGGER TEXT[/background][/color][/size][/spoiler]


EVEN BIGGER TEXT
Black and Yellow
Economic Left/Right: 8.38
Social Libertarian/Authoritarian: -2.82
-Former United States
-Hassett: A History through Flags

User avatar
Hassett
Ambassador
 
Posts: 1957
Founded: Sep 11, 2009
Anarchy

Postby Hassett » Tue Oct 04, 2011 10:22 pm

More testing

Code: Select all
[spoiler=test][size=300][color=red][/size][size=300][background=white][/size][size=300][tab=5][/size][size=300][align=right][/size][size=300]E[/align][/tab][/background][/color][/size][/spoiler]


E
Black and Yellow
Economic Left/Right: 8.38
Social Libertarian/Authoritarian: -2.82
-Former United States
-Hassett: A History through Flags

User avatar
Reploid Productions
Director of Moderation
 
Posts: 30511
Founded: Antiquity
Democratic Socialists

Postby Reploid Productions » Tue Oct 04, 2011 10:34 pm

I wouldn't advise going with lolheug text in ordinary posts though. Garish post rules and possibly running afoul of spam rules.
Forum mod since May 8, 2003 -- Game mod since May 19, 2003 -- Nation turned 20 on March 23, 2023!
Sunset'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.
Char Aznable/Giant Meteor 2024! - Forcing humanity to move into space and progress whether we goddamn want to or not!

User avatar
-Bederich-
Ambassador
 
Posts: 1475
Founded: Aug 23, 2010
Ex-Nation

Postby -Bederich- » Wed Oct 05, 2011 12:06 pm

Reploid Productions wrote:I wouldn't advise going with lolheug text in ordinary posts though. Garish post rules and possibly running afoul of spam rules.

I put it to good use, by making a storefront logo; viewtopic.php?f=6&t=116832.

User avatar
Reploid Productions
Director of Moderation
 
Posts: 30511
Founded: Antiquity
Democratic Socialists

Postby Reploid Productions » Wed Oct 05, 2011 10:17 pm

-Bederich- wrote:
Reploid Productions wrote:I wouldn't advise going with lolheug text in ordinary posts though. Garish post rules and possibly running afoul of spam rules.

I put it to good use, by making a storefront logo; viewtopic.php?f=6&t=116832.

Yeah, that sort of use works and doesn't break the page width or anything. :)
Forum mod since May 8, 2003 -- Game mod since May 19, 2003 -- Nation turned 20 on March 23, 2023!
Sunset'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.
Char Aznable/Giant Meteor 2024! - Forcing humanity to move into space and progress whether we goddamn want to or not!

User avatar
-The Universe
Secretary
 
Posts: 31
Founded: Oct 16, 2011
Ex-Nation

Postby -The Universe » Mon Oct 17, 2011 10:26 am

With background highlighter, how would i make the background back but the text white??
--------------------------------------------------------------------------------------------------------------------------------------
This is the true Universe here.
The totality of everything that exists.
You can refer to me as Uni, or in IC: The Universe.
--------------------------------------------------------------------------------------------------------------------------------------

User avatar
YellowApple
Postmaster-General
 
Posts: 13821
Founded: Apr 08, 2011
Ex-Nation

Postby YellowApple » Mon Oct 17, 2011 10:37 am

-The Universe wrote:With background highlighter, how would i make the background back but the text white??


Like this?

Code: Select all
[background=#000000][color=#FFFFFF]Like this?[/color][/background]

Mallorea and Riva should resign
Member of the One True Faith and Church. Join The Church of Derpy today!

User avatar
-The Universe
Secretary
 
Posts: 31
Founded: Oct 16, 2011
Ex-Nation

Postby -The Universe » Mon Oct 17, 2011 10:40 am

YellowApple wrote:
-The Universe wrote:With background highlighter, how would i make the background back but the text white??


Like this?

Code: Select all
[background=#000000][color=#FFFFFF]Like this?[/color][/background]

Thankyou!
--------------------------------------------------------------------------------------------------------------------------------------
This is the true Universe here.
The totality of everything that exists.
You can refer to me as Uni, or in IC: The Universe.
--------------------------------------------------------------------------------------------------------------------------------------

User avatar
The Germania Alliance
Diplomat
 
Posts: 981
Founded: Oct 18, 2011
Ex-Nation

Postby The Germania Alliance » Thu Dec 22, 2011 9:11 pm

Quick question, how does one link to a specific post?
Salty Corporal in the Marine Corps.
God.Bless.America.
Alert Status: |Low| |Guarded| |Elevated| |High| |Severe|
Defcon: |5| |4| |3| |2| |1|

User avatar
Shanix
Negotiator
 
Posts: 5168
Founded: Jul 07, 2010
Father Knows Best State

Postby Shanix » Thu Dec 22, 2011 9:34 pm

The Germania Alliance wrote:Quick question, how does one link to a specific post?

On each post, beside the "By [nation here]" part, there's a picture of a piece of paper with a corner folded.

What you want to do is click it, and copy the URL (The www. thingamajig string of characters), then, you've got the link.

Quicker, right-click the paper, and it should say "Copy Link Address" or something like it, and get that one. Bam, you've got the url.
Just know when it's real and when it isn't.

User avatar
The Germania Alliance
Diplomat
 
Posts: 981
Founded: Oct 18, 2011
Ex-Nation

Postby The Germania Alliance » Thu Dec 22, 2011 11:03 pm

That helps a LOT. I never would have thought of that. Thank you very much.
Salty Corporal in the Marine Corps.
God.Bless.America.
Alert Status: |Low| |Guarded| |Elevated| |High| |Severe|
Defcon: |5| |4| |3| |2| |1|

User avatar
YellowApple
Postmaster-General
 
Posts: 13821
Founded: Apr 08, 2011
Ex-Nation

Postby YellowApple » Thu Jan 12, 2012 8:50 am

Two suggestions (if they don't already exist):

One, word wrapping for the [pre] tag. I'd like to use preformatted text for communiques without having to put in newlines manually. I'm sure others feel my pain. I already know that alignment works with the tag.

Two, a BBCode suppression tag. Not sure how feasible this is. And no, I don't mean the [code] tag. I want to be able to have BBCode inline without suppressing all BBCode.

If these could be implemented somehow, that would be great. Thanks :)

Mallorea and Riva should resign
Member of the One True Faith and Church. Join The Church of Derpy today!

User avatar
Frisbeeteria
Senior Game Moderator
 
Posts: 27796
Founded: Dec 16, 2003
Capitalizt

Postby Frisbeeteria » Thu Jan 12, 2012 9:00 am

IIRC, the old Jolt forums had a [nocode] tag, but that was on a different platform. I used to fool other forums by embedding false codes within codes, (i.e. putting an italic open and close adjacent to each other, within another tag) but phpBB is apparently smarter than that and discards them.

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

Postby Mousebumples » Thu Jan 12, 2012 9:44 am

YellowApple wrote:Two, a BBCode suppression tag. Not sure how feasible this is. And no, I don't mean the [code] tag. I want to be able to have BBCode inline without suppressing all BBCode.

I had initially thought that the [box] tags discarded code, but I now see (quite obviously) that that is not the case.

I don't know if some sort of [codebox] tag would be an option? (I, of course, also have no idea how complicated it is to add new coding things to the forum.) Although I'm not sure if that would even solve the challenge posed by YellowApple.

YellowApple, can you give us an example of what you're trying to code and use different brackets for the BBCode you want to show inline? Is this a line-by-line thing or more of a midstream, random {b}bold{/b} thing?

EDIT: Did some poking around on the phpBB forums, and - unsurprisingly - it looks like the way that BBCode is entered on the forum side of things is by saying [CODEx] --> <HTMLx>

YellowApple, do you know of an HTML code that would allow you to do what you want to do on a regular webpage? I don't have time to search around for one now, but if you have one, that might make it a more possible addition ...
Last edited by Mousebumples on Thu Jan 12, 2012 9:57 am, edited 1 time in total.
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
YellowApple
Postmaster-General
 
Posts: 13821
Founded: Apr 08, 2011
Ex-Nation

Postby YellowApple » Thu Jan 12, 2012 12:27 pm

Mousebumples wrote:YellowApple, can you give us an example of what you're trying to code and use different brackets for the BBCode you want to show inline?


Sure.

Mousebumples wrote: Is this a line-by-line thing


No, we have the code tag for that.

Mousebumples wrote: or more of a midstream, random {b}bold{/b} thing?


Exactly. I'd like to be able to post something along the lines of this:

Code: Select all
To make text [b]bold[/b], you wrap it in [nocode][b]bold[/b][/nocode] tags.


To result in this:

To make text bold, you wrap it in {b]bold{/b] tags.

Mousebumples wrote:YellowApple, do you know of an HTML code that would allow you to do what you want to do on a regular webpage? I don't have time to search around for one now, but if you have one, that might make it a more possible addition ...


I can try setting up a test phpbb server at home and hack away at it until I figure out exactly what the procedure is for how BBCode is parsed, but until then, not really. Obviously it would utilize the <span> tag, but with some other weird code that forces phpbb's parser to ignore the tags within that <span>...</span> and just post everything inside as-is. However phpbb does it.

I know it's possible; there seem to be multiple non-phpbb sites that have [nocode] tags. Perhaps we could look at the code for the [code] tag and see what fancy things it does?
Last edited by YellowApple on Thu Jan 12, 2012 12:28 pm, edited 1 time in total.

Mallorea and Riva should resign
Member of the One True Faith and Church. Join The Church of Derpy today!

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

Postby Mousebumples » Thu Jan 12, 2012 11:11 pm

This thread on the phpBB forum seems like it might be relevant. I'm tired enough that the coding details are going over my head, but hopefully that has some useful information - either for YellowApple to parse through or for an admin to say yay/nay with regards to feasibility. I'm sure that knowing they won't have to reinvent the wheel to implement such a coding change/addition, it may be more of a possibility.
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
YellowApple
Postmaster-General
 
Posts: 13821
Founded: Apr 08, 2011
Ex-Nation

Postby YellowApple » Fri Jan 13, 2012 1:11 am

Mousebumples wrote:This thread on the phpBB forum seems like it might be relevant. I'm tired enough that the coding details are going over my head, but hopefully that has some useful information - either for YellowApple to parse through or for an admin to say yay/nay with regards to feasibility. I'm sure that knowing they won't have to reinvent the wheel to implement such a coding change/addition, it may be more of a possibility.


It looks like all that is PHP code, which means that it's up to the admins to decide whether or not they want to play with the .php files. I'm breaking apart phpbb's source code to see if I can figure out what makes the [code] tag tick.

Mallorea and Riva should resign
Member of the One True Faith and Church. Join The Church of Derpy today!

User avatar
The New Texas Lands
Envoy
 
Posts: 271
Founded: Oct 10, 2011
Ex-Nation

Postby The New Texas Lands » Sun Jan 29, 2012 8:43 pm

I've seen signatures with stars in them. :| Is that just a image like a bullet point without the coding ( • ), or it it some new code that I'm unaware of?
Katganistan wrote:"I'm getting DEATed in the morning
Hot Damn! those Mods are gonna smile
Spammed Moderation
Got a bannination
My nation's getting DEAT in style!
Katganistan wrote:
Shanix wrote:So basically all the mods?

Ooooh, no, we're not ALL female....
Nightkill the Emperor wrote:What's the difference between a GAP T-shirt and Aquitayne's corpse?

I don't have a GAP T-shirt in my closet.
Utceforp wrote:Tex is amazing, when he sweats, he sweats out chuck norrisses. Everyone loves Tex, even Seneca Crane's beard loves him, as well as his sweat-chuck-norrisses. If I were attacked by a bear cavalry army, I would ask for help from Tex. Tex is cool

User avatar
Fischistan
Ambassador
 
Posts: 1384
Founded: Oct 16, 2011
Ex-Nation

Postby Fischistan » Sun Jan 29, 2012 8:50 pm

The New Texas Lands wrote:I've seen signatures with stars in them. :| Is that just a image like a bullet point without the coding ( • ), or it it some new code that I'm unaware of?
It's an ASCII character. No special bbcode there.
Xavier D'Montagne
Fischistani Ambassador to the WA
Unibot II wrote:It's Carta. He CANNOT Fail. Only successes in reverse.
The Matthew Islands wrote:Knowledge is knowing the Tomato is a fruit. Wisdom is knowing not to put it in a fruit salad.
Anthony Delasanta wrote:its was not genocide it was ethnic cleansing...
Socorra wrote:A religion-free abortion thread is like a meat-free hamburger.
Help is on its Way: UDL
Never forget 11 September.
Never look off the edge of cliff on a segway.

11 September 1973, of course.

User avatar
Itanica
Ambassador
 
Posts: 1081
Founded: Nov 16, 2011
Ex-Nation

Postby Itanica » Tue Mar 27, 2012 8:27 am

Late to the party, but do you mean like this?

To make text bold, you wrap it in [­b]bold[­/­b] tags
Instead of reverse engineering the PHPBB code you could just slice a ALT+0173 inside, making the code invalid.

[­i]hello[/i]
Last edited by Itanica on Tue Mar 27, 2012 8:33 am, edited 1 time in total.
The Socialist Republic of Itanica
Domus liberis Gentibus - Home to the free People
We are currently at COCON 4. Conscription is in effect for all able men and women above the age of 18.
-CONFLICT CONDITION-
0 - Homeland Conquered
1 - Full Scale War
2 - Major Conflict
3 - Minor Conflict
-> 4 - Conflict Readiness <-
5 - Peacetime
Nuclear Silos are at ARECON 3.
Itanica has 30K active ICBMs and 56K inactive (not loaded into silos / mounted to vehicles) ICBMs.
-ATTACK READINESS CONDITION-
0 - Missiles Launched
1 - Ready for launch
2 - Doors opened
-> 3 - Systems online <-
4 - Power activated
5 - All systems offline
Factbook
Red Star Weaponry
My only puppets are Exotica, Esperanzado and The Mamluks.

User avatar
Johz
Negotiator
 
Posts: 5471
Founded: Jan 26, 2010
Ex-Nation

Postby Johz » Tue Mar 27, 2012 12:23 pm

Itanica wrote:Late to the party, but do you mean like this?

To make text bold, you wrap it in [­b]bold[­/­b] tags
Instead of reverse engineering the PHPBB code you could just slice a ALT+0173 inside, making the code invalid.

[­i]hello[/i]

Okay, quoting that shizzle, I can't work out what you've done. So, if no-one minds, I might fiddle for a moment.

I'm making text bold, so I wrap it like this?
Or I'm making text bold, so I wrap it like this?
Oho! Read this. Or in fact, [url­=http://alt-codes.org/list/]read this[/­url].

Issues would be that you cannot then copy and paste [b­]this code[­/b] and allow it to be used directly. (As demonstrated: [b­]this code[­/b]) Being as [nocode­]-type brackets are almost always there for the use of those who are learning to use BBCode, and being as those folks are always inclined towards the copy-and-paste, I feel this wouldn't be the most useful fix.



Fiddling around with how the WYSIWIG-HTML converter HotEditor deals with unwanted <b> tags in the WYSIWIG editor pane. It's quite simple really: <b> becomes &lt;b&gt; Could a bbcode tag be made that converts entity names/numbers into the actual symbol - this should be a fairly simple 'empty' html tag of some description?

This would then allow the poster to use [entity]&#91;[/entity]b[entity]&#91;[/entity]. This should just produce the [­b] tag in such a way that someone who then copy-and-pastes it into their own text would find that it worked.

I can't think of a way to work this into a [nocode] tag, as that would require something that could hunt out just the left and right square brackets and convert them into entities, which would require someone sitting down with the source code. I mean, it should be a common-enough parser modification, but, not knowing much about the code used, I won't comment.



Re the original attempted solutions: I did have a look at custom codes on an old forum of mine. What is needed is a html tag that will find the brackets, as I said before, and replace them, or ignore them. I'm quite sure html doesn't do this very well, although there may be some sort of strange parsing tag somewhere. I suspect not, though, so using the in-built 'custom PhP' mod will not produce a solution.
Always Ready (With a Cuppa): UDL
Praise [violet] for safe switching!

The Village of Johz - (Factbook)
Head of Foreign Affairs:
Mr Newman
Head of the Flower Rota: Mrs Figgis
Population: 269 (Johzians)
Sometime between when the "evolution is just a theory" nonesense dies out, and when Ashmoria starts using captitalization. - EnragedMaldivians
It's called a tangent. It tends to happen on NSG. - Olthar
[E]very Brit I've met on the internet has been violently apathetic. - Conserative Morality
This is Johz. I'd like to give him a hug someday. - Celly
See a mistake? Send me a telegram!|I would be very much indebted to you.
LINKS: My Website|Barryman|Gay Marriage: Who will be next?

#NSG on esper.net - Join us!
Also, bonobos zygons.

User avatar
YellowApple
Postmaster-General
 
Posts: 13821
Founded: Apr 08, 2011
Ex-Nation

Postby YellowApple » Wed Mar 28, 2012 6:44 pm

Itanica wrote:Late to the party, but do you mean like this?

To make text bold, you wrap it in [­b]bold[­/­b] tags
Instead of reverse engineering the PHPBB code you could just slice a ALT+0173 inside, making the code invalid.

[­i]hello[/i]


Not all of us are Windows users. I myself am predominantly a Linux user (the exception being when I'm in that gaming kind of mood, which would be the only time I'll bother with Windows), and therefore use a compose key instead of tedious ALT codes.

Additionally, people who use laptops lacking a numeric keypad (like, again, myself) cannot use ALT codes even in Windows, as Microsoft decided it would be prudent to restrict use of ALT codes to the numeric keyboard exclusively and leave the vast majority of laptop users in the dark unless they happen to have an external keyboard/keypad.

Mallorea and Riva should resign
Member of the One True Faith and Church. Join The Church of Derpy today!

User avatar
Itanica
Ambassador
 
Posts: 1081
Founded: Nov 16, 2011
Ex-Nation

Postby Itanica » Sat Mar 31, 2012 4:37 pm

YellowApple wrote:
Itanica wrote:Late to the party, but do you mean like this?

To make text bold, you wrap it in [­b]bold[­/­b] tags
Instead of reverse engineering the PHPBB code you could just slice a ALT+0173 inside, making the code invalid.

[­i]hello[/i]


Not all of us are Windows users. I myself am predominantly a Linux user (the exception being when I'm in that gaming kind of mood, which would be the only time I'll bother with Windows), and therefore use a compose key instead of tedious ALT codes.

Additionally, people who use laptops lacking a numeric keypad (like, again, myself) cannot use ALT codes even in Windows, as Microsoft decided it would be prudent to restrict use of ALT codes to the numeric keyboard exclusively and leave the vast majority of laptop users in the dark unless they happen to have an external keyboard/keypad.

There is several ways to do it on laptops without an external keyboard. Using the Fn key is one example.
The Socialist Republic of Itanica
Domus liberis Gentibus - Home to the free People
We are currently at COCON 4. Conscription is in effect for all able men and women above the age of 18.
-CONFLICT CONDITION-
0 - Homeland Conquered
1 - Full Scale War
2 - Major Conflict
3 - Minor Conflict
-> 4 - Conflict Readiness <-
5 - Peacetime
Nuclear Silos are at ARECON 3.
Itanica has 30K active ICBMs and 56K inactive (not loaded into silos / mounted to vehicles) ICBMs.
-ATTACK READINESS CONDITION-
0 - Missiles Launched
1 - Ready for launch
2 - Doors opened
-> 3 - Systems online <-
4 - Power activated
5 - All systems offline
Factbook
Red Star Weaponry
My only puppets are Exotica, Esperanzado and The Mamluks.

User avatar
YellowApple
Postmaster-General
 
Posts: 13821
Founded: Apr 08, 2011
Ex-Nation

Postby YellowApple » Sun Apr 01, 2012 9:28 am

Itanica wrote:
YellowApple wrote:
Not all of us are Windows users. I myself am predominantly a Linux user (the exception being when I'm in that gaming kind of mood, which would be the only time I'll bother with Windows), and therefore use a compose key instead of tedious ALT codes.

Additionally, people who use laptops lacking a numeric keypad (like, again, myself) cannot use ALT codes even in Windows, as Microsoft decided it would be prudent to restrict use of ALT codes to the numeric keyboard exclusively and leave the vast majority of laptop users in the dark unless they happen to have an external keyboard/keypad.

There is several ways to do it on laptops without an external keyboard. Using the Fn key is one example.


I call shenanigans.

Also doesn't solve the problem for non-Windows users.

Mallorea and Riva should resign
Member of the One True Faith and Church. Join The Church of Derpy today!

PreviousNext

Advertisement

Remove ads

Return to Technical

Who is online

Users browsing this forum: Bawkie, Dimetrodon Empire, Draganisia, Evensiania, Franners, Gepanzerberg, IDEVK, Moloto Japan, Siluvia, TescoPepsi, Tiami, Triumphiam, Tumbra

Advertisement

Remove ads