Bay 12 Games Forum

Finally... => General Discussion => Topic started by: GameBoyBlue on April 27, 2015, 05:09:19 pm

Title: This Forum's BBCode Help Thread
Post by: GameBoyBlue on April 27, 2015, 05:09:19 pm
BBCode or Bulletin Board Code is a lightweight markup language used to format posts in many message boards.
https://en.wikipedia.org/wiki/BBCode

I aim to compile all the neat and useful stuff available to spice up your experience when contributing to these fine forums. Forum Games and Roleplaying (http://www.bay12forums.com/smf/index.php?board=15.0) is one of the internet's most active hubs for forum games(I blame it on the fact that with how complex some game makers make the games, it takes Dwarf Fortress player's to derive pleasure in unraveling them), So I intent to highlight any code or tricks that may help with creating games, which should cover many more common uses aswell. So let's get started!

Tip! Before we break out the markers, colored paper, and crazy glue, lets talk about your eraser: [nobbc] and it's matching closing tag [/nobbc]. With this, all BBCode inside will not work, which is good for discussing it. just so you know!


Spoiler: UNSOLVED MYSTERIES (click to show/hide)

BONUS
Spoiler: ❦ FONT TEST (click to show/hide)
Secret Smilies (http://www.bay12forums.com/smf/index.php?topic=142975.0)

Thank You!
Code contributors(In Alphabetical Order): Bumber, Criptfeind, Flying Dice(and many more names I will add when I use your contribution in this guide!)
And thanks to all who are and were enthusiastic about this ongoing project!

Official resource: here (http://wiki.simplemachines.org/smf/Bulletin_board_code)
http://www.bay12forums.com/smf/index.php?topic=153900.msg6591948#msg6591948

The thread itself is meant to be a place to ask and answer questions. For example:



Original post:
I was wondering if there is a resource to see what BBC is enabled specifically to this forum. For example I want to add 'hover text' to images, though I dont know how or if this forum can do it.
Title: Re: This Forum's BBC
Post by: Tawa on April 27, 2015, 05:10:11 pm
I'm not sure where something like that would be, but hover text definitely exists.
Title: Re: This Forum's BBC
Post by: Sergarr on April 27, 2015, 05:11:09 pm
Not sure if it works for images,
Title: Re: This Forum's BBC
Post by: BlackFlyme on April 27, 2015, 05:14:10 pm
Text is like this:
Code: [Select]
[abbr=hover text is here]normal text goes here[/abbr]
Does it work for images?
(http://i.imgur.com/XJzO4Db.png)
Title: Re: This Forum's BBC
Post by: Flying Dice on April 27, 2015, 05:15:29 pm
Yes, yes it does.
Title: Re: This Forum's BBC
Post by: GameBoyBlue on April 27, 2015, 05:46:52 pm
Thanks! Ok, if there is no guide then this will be it. Post BBC questions and tricks here! Or die.
Title: Re: This Forum's BBC
Post by: Orange Wizard on April 27, 2015, 06:06:38 pm
Code: [Select]
[color=transparent]Use this to be annoying.[/color]
Title: Re: This Forum's BBC
Post by: Gentlefish on April 27, 2015, 06:10:24 pm
There's
which is
Code: [Select]
[x]and I only discovered it last week :D
Title: Re: This Forum's BBC
Post by: Arx on April 28, 2015, 01:52:38 pm
I was wondering if there is a resource to see what BBC is enabled specifically to this forum. For example I want to add 'hover text' to images, though I dont know how or if this forum can do it.

You can link to sections of a post using

Code: [Select]
[anchor=anchor]...[/anchor]

[iurl=#anchor]...[/iurl]

...









... (#post_anchor)



Horizontal rules:

Code: [Select]
[hr]



Provides monospace for ASCII art.

Code: [Select]
[tt][/tt]



Images can be resized by adding width=x and/or height=y to the tag. Leaving either out will maintain proportions.

Code: [Select]
[img width=x height=y][/img]



Under 'Attachments and other options', you can elect to keep smileys in plain text.



Oh yeah, and if you're not using Darkling as your theme you should be.
Profile->Modify->Look and Layout->Current theme (change)->Darkling.



So yeah, please don't kill me. That's all the hidden trickery I can think of offhand.
Title: Re: This Forum's BBC
Post by: penguinofhonor on April 28, 2015, 01:53:51 pm
.
Title: Re: This Forum's BBC
Post by: Digital Hellhound on April 28, 2015, 01:55:43 pm
The Bay 12 Broadcasting Corporation?

Honestly, when I first opened this thread, my head was full of theories on what the title could mean - someone claiming this forum is like the BBC (and whether that was good or bad)? Someone asking what the BBC-equivalent of this forum is? This is cool too. I GUESS.
Title: Re: This Forum's BBC
Post by: penguinofhonor on April 28, 2015, 02:02:58 pm
.
Title: Re: This Forum's BBC
Post by: Baffler on April 28, 2015, 02:06:52 pm
These are all really useful, especially the horizontal bar and [tt| tags, but hover text kinda irritates me. I don't want to slowly skim over every word in a post on the off chance it contains some hidden message.
Title: Re: This Forum's BBC
Post by: Arx on April 28, 2015, 02:11:14 pm
I'm going to take a guess here and say you're using Chrome. Firefox displays a dashed underline below words that are allegedly abbreviations, as (I believe) does IE.
Title: Re: This Forum's BBC
Post by: BlitzDungeoneer on April 28, 2015, 02:15:14 pm
IE doesn't, actually.
I know since I'm using it right now.
Title: Re: This Forum's BBC
Post by: penguinofhonor on April 28, 2015, 02:16:35 pm
.
Title: Re: This Forum's BBC
Post by: Pancakes on April 28, 2015, 04:43:22 pm
I like not knowing about hidden things sometimes. What would be the point of hiding them otherwise?
Wait, what?
I mean... Wait..... WHAT?
That's some serious Catch-22
Title: Re: This Forum's BBC
Post by: My Name is Immaterial on April 28, 2015, 07:57:55 pm
Oh yeah, and if you're not using Darkling as your theme you should be.
Profile->Modify->Look and Layout->Current theme (change)->Darkling.
I like Darkling, but I hate the giant logo at the top; it just takes up so much screen real estate. Anyone know how to get rid of that?
Title: Re: This Forum's BBC
Post by: Orange Wizard on April 28, 2015, 08:12:38 pm
You can block it with Adblock, etc.
Title: Re: This Forum's BBC
Post by: My Name is Immaterial on April 28, 2015, 08:27:09 pm
Since I don't use Adblock (I prefer Ghostery), what's the etc.?
Title: Re: This Forum's BBC
Post by: Orange Wizard on April 28, 2015, 08:29:30 pm
Anything that lets you block specific scripts or elements on a page. I would assume Ghostery can do the same thing, although I don't know anything about it.
Title: Re: This Forum's BBC
Post by: Starver on April 28, 2015, 09:03:18 pm
Just in case nobody has said this (didn't appear that anyone had), clicking on "Help" (on the tabbed "Home... Help... Search..." etc bar, above the Forum hierarchy line and below the News/Guidelines block) gets you a page with a link to the http://wiki.simplemachines.org/smf/Bulletin_board_code that...  oh.

Someone poke the SMF admins, perhaps...  It looks like they've at some time upgraded their Wiki software and not checked their old pages are compatible with some of the back-end 'internalesque' Wikicoding being used.  (Like the {{#set...}} stuff

Which means you now have to dig a little, but pages such as http://wiki.simplemachines.org/smf/Category:Bulletin_Board_Code give you (a subset of) the kind of thing the method I was trying to tell you about should have given you.
Title: Re: This Forum's BBC
Post by: Itnetlolor on April 29, 2015, 01:21:17 pm
I actually find [nobbc] to be especially handy for instructing others some code bits, without needing to screw around with writing differently. Now it can be copy-pasted/read properly, if someone's in the dark about it.

Like instructing formatting and such.
[i]like[/i] [b]so[/b]

And without:
like so

EDIT:
Actually, it helps for any forum games and the like to use as a pre-formatted setup for submissions for succession games and the like.

Example direct-copy/paste form (great for let's plays like XCOM):
[b]Name:[/b]
[b]Class:[/b]
[b]Bio:[/b]

Then again, [code][/code] works just as well, if not, better.
Code: [Select]
[b]Name:[/b]
[b]Class:[/b]
[b]Bio:[/b]

And then others can post like this:

Name: Itnetlolor
Class: Freelancer
Bio: Does what comes to mind.

Basically, reduce the amount of work other posters need to do.
Title: Re: This Forum's BBC
Post by: GameBoyBlue on May 01, 2015, 03:41:02 pm
Wow! Good stuff. Should we have this stickied.. somewhere?
Title: Re: This Forum's BBC
Post by: GameBoyBlue on May 02, 2015, 10:37:17 pm
Here is a list of forum colors, but I think many might still be missing: http://www.w3schools.com/html/html_colornames.asp

[color=rgb(136,136,136)]Gandalf[/color] [color=rgb(255,255,255)Gandalf[/color]

Gandalf Gandalf


[color=blue]Ranger[/color] [color=darkblue]Ranger[/color] [color=lightblue]Ranger[/color]

Ranger Ranger Ranger



Q: How to wrap text within a certain distance?
Title: Re: This Forum's BBC
Post by: Starver on May 02, 2015, 11:18:00 pm
Personally, I prefer hexadecimal sextuplets/triplets.  You generally know what you're going to get, with them.  (Like the rgb()ing, above, but IMO neater.)
**********************************************

The only complaint I have is that "colour" isn't generally acceptable as a synonym for "color" in the various specifications.  I wouldn't typo tags so easily, if it were...  I'm quite disappointed with TBL, in that regard.  (Also applies to <centre>, etc.)


Q: How to wrap text within a certain distance?
Not entirely sure what you mean by that, there's always the way to
[br]eak a line artificially, although it respects an actual line-feed, unlike raw HTML, but can sometimes be
most
interesting
useful
forms
in
of
various
tables...
Code: [Select]
[table][tr][td]most[br]interesting[/td][td]useful[br]forms[/td][td]in[br]of[/td][td]various[br]tables...[/td][/tr][/table]
Title: Re: This Forum's BBC
Post by: Orange Wizard on May 03, 2015, 03:47:27 am
The only complaint I have is that "colour" isn't generally acceptable as a synonym for "color" in the various specifications.  I wouldn't typo tags so easily, if it were...  I'm quite disappointed with TBL, in that regard.  (Also applies to <centre>, etc.)
That's my biggest complaint, right there.
Title: Re: This Forum's BBC
Post by: GameBoyBlue on May 03, 2015, 10:25:54 am
ok, here:

wrap text challenge:

Run on sentence that just runs on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on, but does eventually end.

Make the above sentence:

A) Wrap to the width of this image:
(http://cdn.makeuseof.com/wp-content/uploads/2012/04/tvtropes-logo.jpg?80a471)


B) Wrap to this text:
<----------------------------------------------------->

C) Wrap to a width of 300.

All without manually breaking each line. This would be good in a table too, where it is allowed to wrap tighter on smaller monitors if needed. If there is several columns.

Run on sentence that just runs on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on, but does eventually end.Run on sentence that just runs on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on and on, but does eventually end.

...and would help it not spread out so much on larger monitors. (This is annoying if there are just a few sentences longer than others, manually broken though they will become 'choppy' on small monitors.

This:
And on and on and on and on and on and on and on and
on and on and on and on and on and on and on and on
and on and on and on and on and on and on and on and
on and on and on and on and on and on and on and on
and...

Looks like this:
And on and on and on and on and on and on and
on and
on and on and on and on and on and on and on
and on
and on and on and on and on and on and on and
on and
on and on and on and on and on and on and on
and on
and...


Personally, I switch between a netbook and a latop, and host forum games. Making me aware of and motivated to dispay things well for a variety of viewers.
Title: Re: This Forum's BBC
Post by: GameBoyBlue on May 05, 2015, 01:32:48 pm
oddity about the [x] bbc:





example 1:

topic 1
[x]bla bla

topic 2
[x]bla bla

topic 3
[x]bla bla

topic 4
[x]bla bla





example 2:
topic 1
[x]bla [i]bla[/i]

topic 2
[x]bla bla

topic 3
[x]bla bla

topic 4
[x]bla bla






example 1:

topic 1


topic 2


topic 3


topic 4






example 2:
topic 1


topic 3


topic 4


("topic 2" is indented when code(italic, bold, color, ect.) is used in a bullet under topic 1.
Title: Re: This Forum's BBC
Post by: Radio Controlled on May 05, 2015, 03:43:51 pm
This thread. This thread is pretty cool. I'd support a sticky! So convenient.
Title: Re: This Forum's BBC
Post by: i2amroy on May 05, 2015, 03:50:26 pm
Code: [Select]
[color=transparent]Use this to be annoying.[/color]
This right here is the worst. I know that some browsers might let you see it when you highlight, but mine certainly doesn't, meaning every time I want to read the damn invisible text I either have to copy/paste it into a decent text box or hit the quote button to see what the heck people have in their post. It's very annoying.
Title: Re: This Forum's BBC
Post by: WealthyRadish on May 05, 2015, 04:22:08 pm
Personally I like using transparent text, if only as a way of helping ensure a joke doesn't get taken seriously. If someone quotes a post with transparent text in it (to try and start a debate or something) they should notice the unformatted text if they're paying any attention. Adding random smileys to the ends of things also works and is far more common, but I try to avoid using them, since I've always found them disingenuous.
Title: Re: This Forum's BBC
Post by: TheDarkStar on May 05, 2015, 08:20:37 pm
Personally I like using transpar :Pent text, >:( if only as a way of :-X helping ensure a joke :'( doesn't get :-\ taken seriously. If someone quotes a post :) wi ;)th transparent text in it (to try and start a debate or :-* something) they should notice the unformatte 8)d text if they're ;D paying any attention. Adding random smileys t :) o th ??? e ends of things also works and is far  :omore common, but I try to avoid using them, since I've always foun :P d them disingenuous.

FTFY  :D
Title: Re: This Forum's BBC
Post by: Starver on May 05, 2015, 10:32:36 pm
ok, here:

wrap text challenge:

[snip]
...I see.  (Sorry, I somehow missed this, until the further posts.)

I'm not sure how I would (reliably) fulfil most of what you're asking for even in HTML.  Without using explicit pixel-widths.  In a way that works in all browsers.  (Note, some new-fangled HTML5 that I can't recall might allow this, but again at the cost that not all browsers will reliably enact it.)

Without that, even a BBCode enhanced with extra HTML tricks behind the scenes.  (Like, conceivably, a [tag] could be allowed to be further defined as [tag width="300px"] or [tag width="50em"] or something.  And I know that [table border="1"] isn't accepted on this particular board, but there may be something else that does this thing...)

Anyway, without that:

A) Wrap to the width of (an) image:
...possibly fit both into a [table] column and create a second column with non-breaking whitespace enough to demand as much as you can wish for to 'encourage' this first column to be as narrow as it can be.  But that's a fudge.  And may not work the same in all browsers (again).  And would be horribly wasteful, as if anyone cared about bandwidth these days.

B) Wrap to (given) text:
...might be similar.  Would be harder for text with spaces in (if you don't make all those non-breaking), and the same problems.

C) Wrap to a width of 300.
...Easiest, if the board's main admin (that's Toady) or associates (Threetoe, primarily) allow the parsing of the "width=" as given above, probably by a custom rule although other administrators will probably have already worked out the best format for the custom rule regexp/whatever.

Quote
All without manually breaking each line. This would be good in a table too, where it is allowed to wrap tighter on smaller monitors if needed. If there is several columns.
This always was a thing, in HTML.  Special purpose markup is used to not do this (and these days I lose track of all the bells and whistles demanded by people who insist on pixel-perfect rendering, in an attempt to be exactly the same, when the original functionality was intended to be "render something like this, let the browser work out the best way of doing it".  (And by even imagining that it's definitely going to be a web-page it leaves browsers like the old classic Lynx unable to comply...)  But that's always been a problem.

(I once found a website I was asked to re-edit had originally been created by making a screen-sized image and a "clickmap" emulating the hot-spots where hyperlinks would be, were it text and not just image pixels-of-the-text.  Of course, it had assumed the size of the visible screen (or, rather, web-page canvas area), and you can imagine what it looked like on larger or narrower screens or in a non-maximised browser.)

Quote
Personally, I switch between a netbook and a latop, and host forum games. Making me aware of and motivated to dispay things well for a variety of viewers.
Good for you.  As a past-master of the art (well, maybe I flatter myself), the image-mapping example above is just the tip of the iceberg when it comes to people demanding something that HTML was never intended to do... and BBCode is (at best) a subset of that.
Title: Re: This Forum's BBC
Post by: GameBoyBlue on May 08, 2015, 02:57:35 am
Starver would you mind posting live copies of those examples like the image/table one.
Title: Re: This Forum's BBC
Post by: Starver on May 09, 2015, 01:18:33 am
Sorry, been busy.  Not sure if I'm giving you what you're asking for, here, but...

Tested the above on several browsers, from IE8 (XP) through to several Mozilla-types (fine-tuning on SeaMonkey, as my Firefox is a couple of versions behind).  I gave each table a border="1"; remove or edit to "0" to get a cleaner 'no-border' version, but without the same indication of what's actually going on.  (Was going to use a style on the page and class to do that, given it's actually deprecated these days, but forgot.  Was also going to background-colo[u]r the classes of "success", etc, but retasked the idea to demonstrate the non-tabular width-clipping.)

Also I put some 'real' text at the end of the spacing block cell.  Partly as comment (see next paragraph), but also serves to show you where the it all ends up.

Anyway, all tabular versions except the one that moderates with the width-parameter are definitely fugly.  Needs must when you don't know what your control width item will actually be, though.  That was just my original first thought, and maybe there's a way of handling it.  (For the image-width version, with sufficient control of the server-side software, one could actually grab the image size from the suggested image file and dynamically set the width in the following bit to match that, as if you'd asked for a straight "300" value, or whatever it ought to have been.  But that's probably beyond the capabilities of the regexp engine that merely translates BBCode into served HTML.)

And of course none of this works in BBCode.  Until and unless it gets programmed into the server-side.

And if you have criticisms of my HTML... like I said, I just bashed it up for a quick test that should serve you well enough. ;)
Title: Re: This Forum's BBC
Post by: GameBoyBlue on January 11, 2016, 01:49:30 am
Was there every a BBCode solution found for this text wrapping question?

On another note I am curious, I believe I've seen people post images that you can click on and then they grow bigger. I am wondering how to do that. Will post if I find out on my on by coming across it again.
Title: Re: This Forum's BBC
Post by: Arx on January 11, 2016, 01:59:15 am
On another note I am curious, I believe I've seen people post images that you can click on and then they grow bigger. I am wondering how to do that. Will post if I find out on my on by coming across it again.

The BBCode image resize does that.
Title: Re: This Forum's BBC
Post by: Tack on January 11, 2016, 05:10:13 am
The Bay 12 Broadcasting Corporation?

Honestly, when I first opened this thread, my head was full of theories on what the title could mean - someone claiming this forum is like the BBC (and whether that was good or bad)? Someone asking what the BBC-equivalent of this forum is? This is cool too. I GUESS.
None of those were what I was thinking of...
...
Title: Re: This Forum's BBC
Post by: Shadowlord on January 11, 2016, 03:33:10 pm
The Bay 12 Broadcasting Corporation?

Honestly, when I first opened this thread, my head was full of theories on what the title could mean - someone claiming this forum is like the BBC (and whether that was good or bad)? Someone asking what the BBC-equivalent of this forum is? This is cool too. I GUESS.
None of those were what I was thinking of...
...
... well, you aren't the only one.
Title: Re: This Forum's BBC
Post by: RedKing on January 11, 2016, 04:10:11 pm
The Bay 12 Broadcasting Corporation?

Honestly, when I first opened this thread, my head was full of theories on what the title could mean - someone claiming this forum is like the BBC (and whether that was good or bad)? Someone asking what the BBC-equivalent of this forum is? This is cool too. I GUESS.
None of those were what I was thinking of...
...
... well, you aren't the only one.
Same here.

*cough*

Just sayin.
Title: Re: This Forum's BBCode Help Thread
Post by: GameBoyBlue on January 17, 2016, 12:08:47 am
[glow=red,2,300][/glow]

Anyone found any function of the first and second number on this forum? Can you create different results?
Title: Re: This Forum's BBCode Help Thread
Post by: Bumber on January 17, 2016, 01:53:13 am
[glow=red,2,300][/glow]

Anyone found any function of the first and second number on this forum? Can you create different results?
By my understanding, the original format was textcolor,glowcolor,glowstrength, but it's nonfunctional now; you can change the color of the glow by changing the listed color, but that's it.
Title: Re: This Forum's BBCode Help Thread
Post by: GameBoyBlue on January 20, 2016, 12:07:16 pm
[glow=red,2,300][/glow]

Anyone found any function of the first and second number on this forum? Can you create different results?
By my understanding, the original format was textcolor,glowcolor,glowstrength, but it's nonfunctional now; you can change the color of the glow by changing the listed color, but that's it.
That doesn't really make sense. Why would "text color" be a part of it when that is a separate thing?


Does anyone know how to indent? I found a sloppy way of doing it. You make a list of bullets with [x], if one contains bbc like italic the following will indent along with any text.

Title: Re: This Forum's BBCode Help Thread
Post by: Flying Dice on January 20, 2016, 12:38:05 pm
[glow=red,2,300][/glow]

Anyone found any function of the first and second number on this forum? Can you create different results?
By my understanding, the original format was textcolor,glowcolor,glowstrength, but it's nonfunctional now; you can change the color of the glow by changing the listed color, but that's it.
That doesn't really make sense. Why would "text color" be a part of it when that is a separate thing?
Because the color is applied to the glow, not the text itself. That's just how I've always found it to be described. It's the color of the glow applied to the text within the tag, in plain English.

For example, green text with a red glow. The text color is green. The text color of the glow is red.
Title: Re: This Forum's BBCode Help Thread
Post by: GameBoyBlue on January 20, 2016, 08:32:34 pm
[glow=red,2,300][/glow]

Anyone found any function of the first and second number on this forum? Can you create different results?
By my understanding, the original format was textcolor,glowcolor,glowstrength, but it's nonfunctional now; you can change the color of the glow by changing the listed color, but that's it.
That doesn't really make sense. Why would "text color" be a part of it when that is a separate thing?
Because the color is applied to the glow, not the text itself. That's just how I've always found it to be described. It's the color of the glow applied to the text within the tag, in plain English.

For example, green text with a red glow. The text color is green. The text color of the glow is red.


No that doesnt make sense, what you just did is this:
[color=green][glow=red,2,300]For example, green text with a red glow.[/glow][/color]

You added color as an additional command. How then, does "red,2,300" mean "textcolor,glowcolor,glowstrength"?
Title: Re: This Forum's BBCode Help Thread
Post by: USEC_OFFICER on January 21, 2016, 11:55:43 am
No that doesnt make sense, what you just did is this:
[color=green][glow=red,2,300]For example, green text with a red glow.[/glow][/color]

You added color as an additional command. How then, does "red,2,300" mean "textcolor,glowcolor,glowstrength"?

It doesn't.

Because the color is applied to the glow, not the text itself.

Flying Dice clearly stated that the colour parameter in the glow tag applies only to the colour of the glow. So if you want to change the text colour, you have to add in a colour tag too (as you have pointed out). Thus the glow tag works like [glow=glowcolour.nothing.nothing]Text goes here[/glow]. Does that make sense?
Title: Re: This Forum's BBCode Help Thread
Post by: Bumber on January 22, 2016, 07:49:49 am
Does anyone know how to indent? I found a sloppy way of doing it. You make a list of bullets with [x], if one contains bbc like italic the following will indent along with any text.
        You can just use spaces.
                There's 8 per "tab".
Title: Re: This Forum's BBCode Help Thread
Post by: Bumber on January 22, 2016, 07:54:01 am
   I tried copying in a tab character from notepad,
      but it's not that big when displayed as a post.

Code: [Select]
It works okay in code tags.
        Confirmed 8 spaces per tab.

   Teletype is at least bigger than default.
Title: Re: This Forum's BBCode Help Thread
Post by: Flying Dice on January 22, 2016, 02:32:02 pm
Apologies, I think I misremembered. It's been a long while. The actual format for the glow tag we have is
Code: [Select]
[glow=color,strength,width][/glow] As before, the last two are nonfunctional on B12. I think that there might have been another iteration of the tag with different content (i.e. specifying both text color and text glow color), but TBH it's hazy as fuck in my memory.
Title: Re: This Forum's BBCode Help Thread
Post by: GameBoyBlue on January 23, 2016, 01:24:26 pm
No that doesnt make sense, what you just did is this:
[color=green][glow=red,2,300]For example, green text with a red glow.[/glow][/color]

You added color as an additional command. How then, does "red,2,300" mean "textcolor,glowcolor,glowstrength"?

It doesn't.

Because the color is applied to the glow, not the text itself.

Flying Dice clearly stated that the colour parameter in the glow tag applies only to the colour of the glow. So if you want to change the text colour, you have to add in a colour tag too (as you have pointed out). Thus the glow tag works like [glow=glowcolour.nothing.nothing]Text goes here[/glow]. Does that make sense?

Of course not haha. Yes it does nothing so far as we can tell, though it can be assumed, can it not, that it originally did something.

Does anyone know how to indent? I found a sloppy way of doing it. You make a list of bullets with [x], if one contains bbc like italic the following will indent along with any text.
        You can just use spaces.
                There's 8 per "tab".

That is far from ideal in a long list of information especially when the bullet trick makes it automatic. Would seem there should be a way to initiate that indent protocol without the bullet trick though.

   I tried copying in a tab character from notepad,
      but it's not that big when displayed as a post.

Code: [Select]
It works okay in code tags.
        Confirmed 8 spaces per tab.

   Teletype is at least bigger than default.

Oh nice. I'd still say that's slightly inferior for practical use but definitely an option.

Apologies, I think I misremembered. It's been a long while. The actual format for the glow tag we have is
Code: [Select]
[glow=color,strength,width][/glow] As before, the last two are nonfunctional on B12. I think that there might have been another iteration of the tag with different content (i.e. specifying both text color and text glow color), but TBH it's hazy as fuck in my memory.

I'll mark this down as the believed system unless someone wants to say otherwise.
Title: Re: This Forum's BBCode Help Thread
Post by: GameBoyBlue on January 23, 2016, 01:37:29 pm
Hmm....


*facepalm*

[list] is what I wanted.
thaaanks FD...
Title: Re: This Forum's BBCode Help Thread
Post by: GameBoyBlue on January 29, 2016, 02:14:39 pm
Are there more smileys than the default ones that work here ???
Title: Re: This Forum's BBCode Help Thread
Post by: Criptfeind on January 29, 2016, 02:38:38 pm
Yes (http://www.bay12forums.com/smf/index.php?topic=142975.0)
Title: Re: This Forum's BBCode Help Thread
Post by: GameBoyBlue on February 01, 2016, 12:45:19 am
 :P
Yes (http://www.bay12forums.com/smf/index.php?topic=142975.0)
Wow, what else is there, extra fonts perhaps? Does anyone know of more smileys than the ones mentioned there, even they mentioned a ninja one.


In regards to testing cross post anchoring:
Does work between posts, but I do not believe it does between pages. I am not %100 sure, as I cant get this code to act reliably the way its seemingly supposed to anyway. But to prove my point I hijacked Arx's anchor.
Title: Re: This Forum's BBCode Help Thread
Post by: GameBoyBlue on February 01, 2016, 12:45:38 am
You can create an indent in your post by using a bullet [x] that uses any code in it. For ex.

Title: Re: This Forum's BBCode Help Thread
Post by: Bumber on February 01, 2016, 02:59:27 pm
You can create an indent in your post by using a bullet [x] that uses any code in it. For ex.

  • why hello
    I said goodday

    Good day!

    Unknown how to stop.
You need a [/list] tag to stop it. [x] seems to work as an implicit [list].

It's unfortunate that italic tags seem to ruin the ability to do an indent without the bullet. See below.

In related news:
Stumbled across it while looking for a working blank list. Can't find any comprehensive list (no pun intended) anywhere. Found it in the online manual (http://wiki.simplemachines.org/smf/List):

None, disc, circle, square, decimal, decimal-leading-zero, lower-roman, upper-roman, lower-alpha, upper-alpha, lower-greek, lower-latin, upper-latin, hebrew, armenian, georgian, cjk-ideographic, hiragana, katakana, hiragana-iroha and katakana-iroha.

[list type=none][li]Your indented lines here.[/list]
This is how you stop.
Title: Re: This Forum's BBCode Help Thread
Post by: GameBoyBlue on February 02, 2016, 03:54:02 pm
Great stuff, very important. However the indent caused by a the bullet trick doesn't require list brackets for each item. It just does it.


Is there bbcode to make an image change to a different one when hovered over?
Title: Re: This Forum's BBCode Help Thread
Post by: Bumber on February 03, 2016, 12:37:23 am
Great stuff, very important. However the indent caused by a the bullet trick doesn't require list brackets for each item. It just does it.
[list type=none][li]It
works
just
fine.[/list]

List brackets go around the entire thing to tell it when to stop. If you meant [li], that's for adding new bullet points, which is pointless (another unintended pun) when type=none makes them invisible.

[list type=none][li]Now
[list type=none][li]with
[list type=none][li]nesting![/list][/list][/list]
Title: Re: This Forum's BBCode Help Thread
Post by: Atian the Elephantman God on March 25, 2016, 12:08:47 pm
Now this font is blue
Title: Re: This Forum's BBCode Help Thread
Post by: Starver on March 25, 2016, 12:10:17 pm
So it is (or was?).

Have you considered just using the Preview button, if you're testing something?

(You also didn't close the [color=] tag.  Which is a stylistic error, even if it doesn't create rendering problems.)
Title: Re: This Forum's BBCode Help Thread v2
Post by: RoseHeart on September 13, 2016, 12:07:20 pm
This post will represent the "preview version", so that I can continue to work on this project and not need to log into my old Alt but once a great while. (Unless there's a way to steal ownership of it? Mods?)

Making my roseheart account the OP somehow would be spiffy
(Toady One looked into it. Decided No), but I'll probably just remake the thread when I've updated enough to warrant it, otherwise.

notes:
added:
-comment to symbol section.
-more colors. (1/6th complete)

todo:
absorb:
Bumber's List Types (http://www.bay12forums.com/smf/index.php?topic=150365.msg6782021#msg6782021)

BBCode or Bulletin Board Code is a lightweight markup language used to format posts in many message boards.
https://en.wikipedia.org/wiki/BBCode

I aim to compile all the neat and useful stuff available to spice up your experience when contributing to these fine forums. Forum Games and Roleplaying (http://www.bay12forums.com/smf/index.php?board=15.0) is one of the internet's most active hubs for forum games(I blame it on the fact that with how complex some game makers make the games, it takes Dwarf Fortress player's to derive pleasure in unraveling them), So I intent to highlight any code or tricks that may help with creating games, which should cover many more common uses aswell. So let's get started!

Tip! Before we break out the markers, colored paper, and crazy glue, lets talk about your eraser: [nobbc] and it's matching closing tag [/nobbc]. With this, all BBCode inside will not work, which is good for discussing it. just so you know!



Spoiler: UNSOLVED MYSTERIES (click to show/hide)

BONUS
Spoiler: ❦ FONT TEST (click to show/hide)
Secret Smilies (http://www.bay12forums.com/smf/index.php?topic=142975.0)

Thank You!
Code contributors(In Alphabetical Order): Bumber, Criptfeind, Flying Dice(and many more names I will add when I use your contribution in this guide!)
And thanks to all who are and were enthusiastic about this ongoing project!

Official resource: here (http://wiki.simplemachines.org/smf/Bulletin_board_code)
http://www.bay12forums.com/smf/index.php?topic=153900.msg6591948#msg6591948

The thread itself is meant to be a place to ask and answer questions. For example:



Original post:
I was wondering if there is a resource to see what BBC is enabled specifically to this forum. For example I want to add 'hover text' to images, though I dont know how or if this forum can do it.
Title: Re: This Forum's BBCode Help Thread
Post by: Starver on September 13, 2016, 12:23:12 pm
Quite obviously they do... But when you've finished filling the gaps, it'll be interesting to see.
Title: Re: This Forum's BBCode Help Thread
Post by: Bumber on September 14, 2016, 06:32:20 pm
It's dirty and unpredictable. The cleaner way is just:

Unindented
[list type=none][li]Indented
Text[/list]
Unindented

Unindented
Unindented

"[list type=none][li]" should be thought of as one tag. The "[li]" part allows formatting within the indent. "[/list]" automatically adds "[/li]". It'll show up in subsequent edits.
Title: Re: This Forum's BBCode Help Thread
Post by: TheBiggerFish on September 14, 2016, 09:36:02 pm
You're missing mediumorchid.

For that matter, I have this feeling that there are a lot of light- colors missing...
Title: Re: This Forum's BBCode Help Thread
Post by: Tiruin on September 14, 2016, 10:16:42 pm
I aim to compile all the neat and useful stuff available to spice up your experience when contributing to these fine forums. Forum Games and Roleplaying (http://www.bay12forums.com/smf/index.php?board=15.0) is one of the internet's most active hubs for forum games(I blame it on the fact that with how complex some game makers make the games, it takes Dwarf Fortress player's to derive pleasure in unraveling them), So I intent to highlight any code or tricks that may help with creating games, which should cover many more common uses aswell. So let's get started!
I took this trick from Evil Lincoln and I think others noticed it when I used it in my RtD (obviously biased by experience).
I recall I ruined the forum format (which caused the forum post boxes to glitch with text) in editing the OP of that game once, due to all those table tags, especially within the Personality spoiler. :P

But you can tabulate (table) "(http://www.bay12forums.com/smf/Themes/darkling/images/bbc/table.gif)" spoilers here. While you cannot put spoilers within spoilers, you are able to 'make them appear' within paragraphs.



Though care should be used if you wish to put a spoiler within a paragraph.
Spoiler: Like so: (click to show/hide)
The line must begin on its own with the {td} being set up to accommodate the spoiler on its own.
This kind of...visualization is best used if spoilers are to be at the start of your paragraphs or sentences instead of at the end.

Edit: Cleaned it up for easier visibility. :-[ Also exchanged spoiler positions because I just realized that last sentence applies here too.

Also so Evil Lincoln has more credit, he used that in his second game-thread being made. (http://www.bay12forums.com/smf/index.php?topic=97703.0) Check it out :D Although he's inactive nowadays...
Title: Re: This Forum's BBCode Help Thread
Post by: My Name is Immaterial on September 14, 2016, 10:21:59 pm
MFW:
Spoiler (click to show/hide)


Title: Re: This Forum's BBCode Help Thread
Post by: Max™ on September 15, 2016, 01:05:26 am
Missing LimeGreen, plus transparent, isn't it?

Adding [abbr=Abbreviation][/abbr] tags makes sense too, though it doesn't work on mobile browsers apparently.
Title: Re: This Forum's BBCode Help Thread
Post by: Arx on September 15, 2016, 01:27:07 am
Spoiler (click to show/hide)

This is also useful for manipulating the sizes of quote boxes, by the way. Or their position, in the same way as a spoiler. It is, for instance, how I got the quotes in my sig image to fit so neatly.
Title: Re: This Forum's BBCode Help Thread
Post by: Starver on September 15, 2016, 04:22:15 am
Missing LimeGreen, plus transparent, isn't it?

Adding [abbr=Abbreviation][/abbr] tags makes sense too, though it doesn't work on mobile browsers apparently.
Ah. Had thought that worked, myself, posted it in (on Mobile) and found it oddly behaved (tags 'absorbed' and non-visible as if parsed, unlike [codswallop]non-working tags[/codswallop], but no effect arose) and thus removed the suggestion from my intended post.

Server-side parsing and acceptence but conversion to browser-side apathy would explain that entirely.
Title: Re: This Forum's BBCode Help Thread
Post by: RoseHeart on September 30, 2016, 05:41:45 pm
Quite obviously they do... But when you've finished filling the gaps, it'll be interesting to see.
What would be... most useful to you? Which section ...if there's one in particular.
Title: Re: This Forum's BBCode Help Thread
Post by: RoseHeart on December 30, 2016, 01:06:20 am
Suddenly I can't have certain bbcode boxes next to each other. The preview will come up empty.

If I have:
2 quotes next to each other.
both have color and glow.

It won't preview and I cannot post it. "the body of the message was left empty"

I know this is a new problem because I was just trying to add information to an old post not related to this matter and it triggered it because of what was originally in the post that is now not getting through.

Try reposting the below code, or at least previewing it:

[quote]
[glow=red,2,300][color=red]quote 1[/color][/glow]
[/quote]
[quote][glow=red,2,300][color=red]quote 2[/color][/glow]
[/quote]
Title: Re: This Forum's BBCode Help Thread
Post by: TheBiggerFish on December 30, 2016, 01:07:04 am
Yes, bug with 2.0.12, fix is in the works.
Title: Re: This Forum's BBCode Help Thread
Post by: RoseHeart on December 30, 2016, 01:11:51 am
Where do you track these things?

Edit: I took a jump to the simple machines page linked at the bottom of bay 12, and went to the community page.

I did not, from an admittedly quick browse, see anything relating to problems with reviewing and posting quotes.

Fish are you aware of a "known problems" page?
Title: Re: This Forum's BBCode Help Thread
Post by: TheBiggerFish on December 30, 2016, 01:24:24 am
It's in the Bug Reports section of the forum.

http://www.simplemachines.org/community/index.php?topic=548896.0

The title is a bit counterintuitive, but it's there.
Title: Re: This Forum's BBCode Help Thread
Post by: RoseHeart on December 30, 2016, 01:41:18 am
Thank you.
Title: Re: This Forum's BBCode Help Thread
Post by: RoseHeart on January 15, 2017, 12:40:52 pm
Help



I need some tips. How can I get them to both look similar and good? For testing PC I just turned my phone sideways...

I'm trying to get the title and the image to be similarly width proportioned.
Title: Re: This Forum's BBCode Help Thread
Post by: RoseHeart on March 29, 2017, 03:00:38 am
Posting this here alone and more manageable.

Title: Re: This Forum's BBCode Help Thread
Post by: Doubloon-Seven on March 29, 2017, 08:00:19 pm
How in blazes does one make an avatar slideshow, with a new avatar every time the page is refreshed?
Title: Re: This Forum's BBCode Help Thread
Post by: Starver on March 29, 2017, 08:45:46 pm
How in blazes does one make an avatar slideshow, with a new avatar every time the page is refreshed?
If I were to do it then (given this forum's reliance upon an external image URL, anyway, rather than an uploaded-to-Bay12 one) I'd use a webspace that I own and control at the mod_alias level (or just otherwise lets me write a script-handler called with an apparent image extension, but runs as a script) such that I can use any trickery I want to randomly/sequentially/'interactively'-by-reading-HTTP-request-header-data-ly return something via a $cgi->header(-type=>"image/gif"); sort of configuration...

But if there aren't already resource-sites set up to provide such a server-service (with a minimum of effort on your part, just specify a pool for random or rotating or otherwise selection from), I'd be surprised.
Title: Re: This Forum's BBCode Help Thread
Post by: Doubloon-Seven on March 29, 2017, 08:53:08 pm
My apologies, I have no idea what that meant. Well, I get the gist of it, that it works by connecting some other script, but i have no diea how to do such a thing.
Title: Re: This Forum's BBCode Help Thread
Post by: Arx on March 29, 2017, 11:21:07 pm
Signavatar.com is what I use.
Title: Re: This Forum's BBCode Help Thread
Post by: RoseHeart on April 15, 2017, 08:15:27 pm
Quote from: me
Hey.

Quote
This code:
Code: [Select]
<blockquote>stuff</blockquote>

Does this. Neat eh? Also the >< symbols work with bold and so on.
Title: Re: This Forum's BBCode Help Thread
Post by: Starver on April 15, 2017, 08:33:35 pm
To me, it seems to just indent the text. Does it do anything else?  Is there supposed to be a border or something?

Maybe that's enough, but you'd really want enough sample text to demonstrate... whatever it is you're demonstrating.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce semper ipsum vel diam ullamcorper tristique quis vitae neque. Pellentesque porttitor tortor a sem venenatis, id molestie arcu porttitor. Quisque eu ipsum euismod, tristique mauris id, sodales orci. Vivamus vehicula mollis dolor, sed lobortis arcu. Aliquam eu lorem massa. Proin dapibus vulputate tortor, a tincidunt ligula bibendum vel. Suspendisse vestibulum malesuada est ut varius. Curabitur consectetur finibus nibh et blandit. Pellentesque ultrices lectus sed auctor faucibus. Quisque id nibh ipsum. Vestibulum iaculis sem nec scelerisque facilisis. Ut quis leo tortor. Aenean sit amet fermentum quam. In hac habitasse platea dictumst.

Nam laoreet nisl vitae condimentum porttitor. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Suspendisse lobortis pellentesque tincidunt. Vestibulum imperdiet augue nec dapibus malesuada. Quisque eleifend, est suscipit vestibulum pretium, erat ex volutpat metus, vehicula luctus lorem sem eu elit. Sed a mauris pulvinar, fringilla sapien at, consectetur nisi. Donec ultricies, felis quis malesuada convallis, tortor nibh mattis velit, vel egestas sem lacus eget justo. Sed molestie ut tellus a hendrerit. Pellentesque efficitur mattis dapibus.


And it suggests that either HTML sanitising-to-&lt;-and-&gt; isn't used, or bold/italic (also <strong>strong</strong>/em? Only the em one, obviously) and blockquote are whitelisted as harmless format-only.
Title: Re: This Forum's BBCode Help Thread
Post by: RoseHeart on December 05, 2017, 11:04:14 am
How are you supposed to get a list to indent if you've got sub items on one item?
Title: Re: This Forum's BBCode Help Thread
Post by: Starver on December 05, 2017, 11:39:54 am
How are you supposed to get a list to indent if you've got sub items on one item?

Code: [Select]
[list]
[li]Do you mean[/li]
[li][list type=decimal]
[li]Like this[/li]
[li]and this? [/li]
[/list][/li]
[/list]


Code: [Select]
[list]
[li]Or[list]
[li]A[/li]
[li]B[/li]
[/list][/li]
[li]and[list]
[li]C[/li]
[li]D[/li]
[/list][/li]
[/list]

I didn't give it the (code-level) whitespace that it really deserved, in either case, but basically within a [li][/li] from one [list]...[/list] I put a further full[list](LIs)[/list], and it indents each time.

Interesting thing, also:
Code: [Select]
[list]Within List, Outside List-Item
[li]List Item[/li]
And more 'bare' text here.
[li]List Item[/li]
[/list]

Compare with:
...with no 'unitemed' text. On my browser, it acts like a bulletless header List Item that then demands the browser further indent the 'simple' List Items to the next level (of indent, and bullet/number style), or negates the type specification. But I'm not sure it'll behave the same on all browsers.


Code: [Select]
[list type=decimal]
[li]Decimal item[list type=decimal]
[li]Decimal subitem[/li]
[li]Decimal subitem[/li]
[/list][/li]
[li]Decimal item[list type=decimal]Bare non-item within decimal list within item
[li]'Decimal' subitem[/li]
[li]'Decimal' subitem[/li]
[/list][/li]
[/list]
Title: Re: This Forum's BBCode Help Thread
Post by: KittyTac on September 18, 2018, 05:06:01 am
A lot of fonts work. I tested Rodchenko and Wide Latin.
Title: Re: This Forum's BBCode Help Thread
Post by: Starver on September 18, 2018, 10:41:24 am
By which you mean that the BBCode doesn't stop you trying things that your system may or may not be able to honour?

Test 1 ('courier', standard)
Test 2 ('sanserif', parsably vague?)
Test 3 ('wingdings', not on my tablet?)
Test 4 ('unobtanium', probably not a thing)

Edit: For me only the first does anything obvious (second may just be 'normal'  I realised...)
Source (with linefeeds restored in place of BR/ tags, for readability)::
Code: [Select]
<span style="font-family: courier;" class="bbc_font">Test 1 (&#039;courier&#039;, standard)</span>
<span style="font-family: sanserif;" class="bbc_font">Test 2 (&#039;sanserif&#039;, parsably vague?)</span>
<span style="font-family: wingdings;" class="bbc_font">Test 3 (&#039;wingdings&#039;, not on my tablet?)</span>
><span style="font-family: unobtanium;" class="bbc_font">Test 4 (&#039;unobtanium&#039;, probably not a thing)</span>

Edit2: I have no idea where this OS stores/manages/lists its fonts, I realise just now. Going hunting....
Title: Re: This Forum's BBCode Help Thread
Post by: KittyTac on September 18, 2018, 10:49:55 am
The third is wingdings on my laptop. Most phones do not support most fonts.
Title: Re: This Forum's BBCode Help Thread
Post by: Bumber on September 20, 2018, 12:05:18 am
Test 1 ('courier', standard)
Test 2 ('sanserif', parsably vague?)
Test 3 ('wingdings', not on my tablet?)
Test 4 ('unobtanium', probably not a thing)
I only see courier, and I'm on Windows 7. I definitely have the Wingdings font on my computer. It's probably something to do with Firefox.
Title: Re: This Forum's BBCode Help Thread
Post by: KittyTac on September 20, 2018, 01:14:33 am
Yandex (which is based on Chromium) shows WIngdings.
Title: Re: This Forum's BBCode Help Thread
Post by: RoseHeart on January 22, 2019, 05:53:37 pm
1.
^LAST

2.
LAST (http://www.bay12forums.com/smf/index.php?topic=150365.msg7635698#msg7635698)
(right-click copy of quote address)

3.
LAST (http://www.bay12forums.com/smf/index.php?topic=150365.msg7635698#msg7635698)
(direct copy of post url, actually the same url as last one, so redundant)

4.
LAST (http://www.bay12forums.com/smf/index.php?topic=150365.msg7635698#msg7635698)
(browser bar url when clicking on post title url, also the same/redundant)

Edit 1: Only the first allows the link to open in the same window, on PC. Windows Chrome.

Edit 2: Same result on Android Chrome (phone).

Example Use:

◀◀
▶▶

Code: [Select]
[center][table]
[tr][td]FirstQuoteHere[/td][td]LastQuoteHere[/td][td]NextQuoteHere[/td][td]SkipQuoteHere[/td][/tr][/table][/center]

Code: [Select]
[center][size=12pt]◀◀[/size][/center]
Code: [Select]
[center][size=12pt]◀[/size][/center]
Code: [Select]
[center][size=12pt]▶[/size][/center]
Code: [Select]
[center][size=12pt]▶▶[/size][/center]
Just forward and back:

Code: [Select]
[center][table]
[tr][td]LastQuoteHere[/td][td]NextQuoteHere[/td][/tr][/table][/center]

Title: Re: This Forum's BBCode Help Thread
Post by: Starver on February 02, 2021, 11:05:08 pm
As I've been wrestling with an annoying niggle, I thought I'd post my various findings here, in case they're useful.

Note that several things have changed since my last (2018) post, not far above this one, including which mobile device (and browers upon it) I'm using. And that I am satisfied that all my various issues (like the continuing [abbr] incomplete functionality) are at my end.

Basically, the [font]-tag is entirely dependant upon the reader's system taking the paramaterised 'suggested' font that is supplied (via simple HTML) as the font-family style parameter to a <SPAN>. As with the Wingdings, above, it works when it can work. Other tags, when translated, specify (directly and/or via CSS) a fuller font-family, particular ones that are specifically fixed-width users. Again, it depends upon the end-user's system, but it at least includes multiple fallbacks.

Test .W_- font=courier - fails to become Courier-like on this browser+device, after invoking any font-family style for the sole parameter (browser/device issue)
(Note that I haven't discovered any cascaded use for the bbc_font class that this could invoke, but it wouldn't help this issue much anyway, the way it 'works'.)

Test .W_- font=courier new - fails on this browser (could it work with quotes passed around to multiword style?)

[font="courier new"]Test .W_- font="courier new"[/font] - entirely fails to parse as BBCode (doesn't appear to like me giving it quotes to transform into the HTML form)

Test .W_- font=monospace - works on my device, though it's a sub-sized font in direct comparison with non-monospace of same pointsize spec. Unknown if "monospace" is universally acceptable, though I think it'll have a decent chance to widely so.

Code: [Select]
Test .W_- code-tagged - invokes DIV-nested style that specifies a thorough font-family listing that works, even if just upon the one last listed (monospace). But doesn't help with SPAN-type inline styling.

Test .W_- tt-tagged - 'normal' fixed-width (calls bbc_tt style in CSS; full family list with monospace but renders larger than font=monospace, so may be one of the other after all). I shall probably use this option more in future, though it isn't rendered via any 'editor' button so is slightly fiddlier.

You, dear reader, may have entirely a different set of results for everything I describe in this post. Which is more a vanity project for myself than an instruction-manual.



And, while I'm here, I'll echo another recent conversation I had (with a fellow member of this parish) about the Glow and Shadow tags.  They render badly here (i.e. this particular device, 2020-vintage rather than possibly half a dozen years older). Pinch-zooming indicates that they are placing correctly (Glow and Shadow layer sit behind, and slightly offset to, the primary version of the text) and the zoomed-in or font-upscaled effects are pleasant and readable (though may need side-scrolling!), but at 'normal' size the glow overdominates. A purple 'glow' behind a fuschiaedit: no, orchid I meant text just looks blurry purple (but then fuschiaedit: orchid! and purple are a similar hue). Changing to a 'red' glow for some notable contrast, the glow clearly dominates (it actually gives a rose-pink effect, but still looks just blurry). Giving a totally contrasting glow (e.g. green) makes it messy and blurry at non-zoomed appearance.

Obviously, again, somewhat specific to my device (and eyes), but FYI while this is all at the forefront of my mind.  i.e. full standardisation/uniformity of presentation is a dodgy assumption to make, even these days. But I hope this helps someone else in some unknown future who goes looking for similar reasons for similar issues.
Title: Re: This Forum's BBCode Help Thread
Post by: RoseHeart on February 03, 2021, 12:48:13 am
^Nice bump. I should really remake this thread on my new account, so I can compile all the additions in the OP. This (http://www.bay12forums.com/smf/index.php?topic=164890.0) will be that if it happens. I have a lot of little projects like this one.
Title: Re: This Forum's BBCode Help Thread
Post by: RoseHeart on March 21, 2022, 09:12:35 am
Is there a way to put a link in a image, and have the link open in the current tab? Via BBC...
Title: Re: This Forum's BBCode Help Thread
Post by: Starver on March 21, 2022, 10:01:47 am
Hmmm.. Let's see...
Code: (This, of course, opens in a new tab, though) [Select]
[url=http://i.postimg.cc/0QRTfC7F/Rose-Heart-Logo-Modified.jpg][img]http://i.postimg.cc/0QRTfC7F/Rose-Heart-Logo-Modified.jpg[/img][/url]
(Huge image, BTW, I hope I'm not downloading that every time I see your messages... ;) )

...the best external help I can find, is https://www.simplemachines.org/community/index.php?topic=510222.0 - nine years ago and states reasons why the default is the default (I'd have put it differently, but automatically keeping where you launch from is useful). And no obvious way to get around it, at the user-side. A homegrown extension (external 'eurl' to match the internal 'iurl' mod?) might do it. But is there a great enough need to ask for it?





PS, I nearly posted in this thread yesterday, after rediscovering the problems behind monospace font-specifications such as I already went into a couple of messages above. I wrote it and then went looking for the thread to paste into, only to find that I'd already analysed it just over a year ago. :P )
Title: Re: This Forum's BBCode Help Thread
Post by: RoseHeart on March 22, 2022, 06:04:50 am
A lot of webcomics allow you to click on the image to go to the next part. I have and am currently making a webcomic in Forum Games & Rleplaying, and I'm not the only one to do so, such as MadMonkey's Losing Is Fun since 2017. Shoot, was doubtful but hoping it was possble already. T0ady0ne has expressed a willingness to the possibility of adding some forum mods. Perhaps if several people expressed an interest in a same tab image url mod, it could happen.
Title: Re: This Forum's BBCode Help Thread
Post by: Starver on March 22, 2022, 11:13:46 am
...but that doesn't help you, it's just my rationalisation for the way the backend rationalises these things. In ways that disfavour your intentions.


But, having read what you actually want, it looks like you want a "Skip to next 'creative point' in the thread" link that re-uses the current page (unless the person uses their "open in new tab/window" powers, explicilty, of course). Once (say) Day 2 is up, you might currently add a forwarding link from Day 1 (as well as post-Zero, or the reserved 'index' post you set up after it) and you want it to skip the new-tab (target="_blank", or whatever) aspect.

I think the "iurl" idea would work for that. It would need to accept only a bay12forums domain (maybe also bay12games?) fully-formed URL, or else the same kind of reference as goes into a [quote]-tag's parameters (e.g. the "link=" bit in [quote author=roseheart link=topic=150365.msg8361316#msg8361316 date=1647947090]) and translate that into a "_blank"less <a href=… form. Which would work around an image just as easily as the _blanking version currently does, although I'd suggest [internalLinkTo]Day 2[/iLT…] would be more obvious unless you had explicit "Click this image to move on" text rendered upon the image-raster. (As I said in the Spoiler, I don't think I've ever tried to click on a main comic image to get to the next one, just any obvious and separate "Next" (image-)button.)


I've not looked at the docs that specify the format for tag-translation/etc. I think it should be 'easy', but I have neither the access of Tarn to the system, nor know how willing he is to add such a fundemental change. Not that it changes existing url-tag behaviour, but it has to be worth using to be worth enabling, and there are possible mis-uses to it that I can't rule out, so if caution is the watchword (and/or if Tarn isn't otherwise keen to risk breaking an already slightly creaking Forum-Handler package for minimal useful utility) it could be a request he won't pay heed to.


But I'd not say it isn't worth asking about. Or you/anyone correcting my amateur(ish) assumptions about what I now think you need to be done. I'm trying to be helpful, but you know me well enough by now to understand how I am often a stranger to both minimal-verbosity and nontangential imagination. ;)
Title: Re: This Forum's BBCode Help Thread
Post by: heydude6 on March 22, 2022, 01:01:34 pm
Well, after re-reading this thread, I thought that I would share my own discoveries.

How to use a quote to link to a website outside of Bay12

How to create something like this:

Quote from: http://unitedfederationofcharles.blogspot.ca/2015/07/what-is-grimdark.html
This is when the fourteen-year-old-boy market was recognized as the bloodthirsty collection of little psychopaths we were.

You simply do
Code: [Select]
[quote=*insert link here*][/quote]

It must be the full address with http and everything though. You cannot have it be shortened.

Quote from: https://www.youtube.com/
This works

Quote from: www.youtube.com
Does not work

WTF! WHY IS THAT WORKING SUDDENLY! IT NEVER WORKED BEFORE!


A new type of list

You ever wanted your ordered lists to be in the form of a, b, c, rather than 1,2,3, ?

This:

Rather than this:


Well you can! All you need to do is this:

Code: [Select]
[list type=lower-alpha]
[li]An item[/li]
[li]A better item[/li]
[li]Another item[/li]
[/list]

You also make


with

Code: [Select]
[list type=upper-alpha]
[li]An item[/li]
[li]A better item[/li]
[li]Another item[/li]
[/list]

And there are possibly even more options. {list type} hooks into the list-style-type attribute in HTML which has a lot of options. Here's a link to some easy-to-read documentation (https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type) on what may be possible. Not everything in the documentation can be done with BBcode though.


But you can do weird things like Roman Numerals.
Title: Re: This Forum's BBCode Help Thread
Post by: MadMonkey on March 22, 2022, 04:13:52 pm
A lot of webcomics allow you to click on the image to go to the next part. I have and am currently making a webcomic in Forum Games & Rleplaying, and I'm not the only one to do so, such as MadMonkey's Losing Is Fun since 2017. Shoot, was doubtful but hoping it was possble already. T0ady0ne has expressed a willingness to the possibility of adding some forum mods. Perhaps if several people expressed an interest in a same tab image url mod, it could happen.

I have longed for links that optionally open in the same tab since I started my comic. I'd be interested in this mod for sure!
Title: Re: This Forum's BBCode Help Thread
Post by: RoseHeart on March 24, 2022, 05:18:34 am
A lot of webcomics allow you to click on the image to go to the next part. I have and am currently making a webcomic in Forum Games & Rleplaying, and I'm not the only one to do so, such as MadMonkey's Losing Is Fun since 2017. Shoot, was doubtful but hoping it was possble already. T0ady0ne has expressed a willingness to the possibility of adding some forum mods. Perhaps if several people expressed an interest in a same tab image url mod, it could happen.

I have longed for links that optionally open in the same tab since I started my comic. I'd be interested in this mod for sure!

At least quotes can do that! ...alas, if only we could squeeze that quote-link into an image somehow :o
Title: Re: This Forum's BBCode Help Thread
Post by: Starver on March 24, 2022, 05:34:44 am
It's not that quotes do something additional, though, but that they don't. ;)

And you can't put a link into an image[1], you're actually putting the image into a link.



[1] Well, unless you start to implement image-mapping, but I don't think you're imagining that to be added as functionality. It'd be overkill for the use I understand you to desire, anyway, and far more open to cheeky abuse.