News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Changing List Bullet

Started by Burke ♞ Knight, November 24, 2014, 04:34:37 PM

Previous topic - Next topic

Burke ♞ Knight

Okay, I know this is going to be a strange request, but what file do I edit, to change the default bullet for list bbc?
Instead of the round bullet, I'd like to use a different html special character.

Arantor

What type of list are you planning to change?

There are a multitude of list types in SMF, not all of them bullet lists but generated with the same code. And using characters for bullet items is complicated, using images is simpler.

Burke ♞ Knight

For when people use the list BBC, in the posts. I had figured changing it from the code for the bullet to the code for the one I want would be easier, but if you think an image would be, that would actually be better....lol

Arantor

The list bbc supports a huge range of different list types... Like more than a dozen different types, some of which create an ordered list, others create an unordered list.

And that is before we get into nesting tags.

Burke ♞ Knight

I just want to change the default bullet for when they use this style of list:


  • Item 1
  • Item 2

Arantor

My point is that it isn't as simple as that.

Burke ♞ Knight

So there is no easy way at all, to replace the code for that one particular bullet for bbc list with the code for another symbol, is what you are saying.

Okay, then what would be my options?
Is there some kind of selector that the members could use, to select which bullet to use when they use the list bbc?

Arantor

So let's start with all the types SMF supports out of the box, shall we? I'm sure you can figure out why this might be something of a problem for you. For each style, I'll give you an example of it, then the code for it.

I would use a table for formatting purposes - if the parser wouldn't choke on it.


     
  • item 1
  • item 2
  • item 3

[list type=none]
  [li]item 1[/li]
  [li]item 2[/li]
  [li]item 3[/li]
[/list]



     
  • item 1
  • item 2
  • item 3

[list type=disc]
  [li]item 1[/li]
  [li]item 2[/li]
  [li]item 3[/li]
[/list]



     
  • item 1
  • item 2
  • item 3

[list type=circle]
  [li]item 1[/li]
  [li]item 2[/li]
  [li]item 3[/li]
[/list]



     
  • item 1
  • item 2
  • item 3

[list type=square]
  [li]item 1[/li]
  [li]item 2[/li]
  [li]item 3[/li]
[/list]



     
  • item 1
  • item 2
  • item 3

[list type=decimal]
  [li]item 1[/li]
  [li]item 2[/li]
  [li]item 3[/li]
[/list]



     
  • item 1
  • item 2
  • item 3

[list type=decimal-leading-zero]
  [li]item 1[/li]
  [li]item 2[/li]
  [li]item 3[/li]
[/list]



     
  • item 1
  • item 2
  • item 3

[list type=lower-roman]
  [li]item 1[/li]
  [li]item 2[/li]
  [li]item 3[/li]
[/list]



     
  • item 1
  • item 2
  • item 3

[list type=upper-roman]
  [li]item 1[/li]
  [li]item 2[/li]
  [li]item 3[/li]
[/list]



     
  • item 1
  • item 2
  • item 3

[list type=lower-alpha]
  [li]item 1[/li]
  [li]item 2[/li]
  [li]item 3[/li]
[/list]



     
  • item 1
  • item 2
  • item 3

[list type=upper-alpha]
  [li]item 1[/li]
  [li]item 2[/li]
  [li]item 3[/li]
[/list]



     
  • item 1
  • item 2
  • item 3

[list type=lower-greek]
  [li]item 1[/li]
  [li]item 2[/li]
  [li]item 3[/li]
[/list]



     
  • item 1
  • item 2
  • item 3

[list type=lower-latin]
  [li]item 1[/li]
  [li]item 2[/li]
  [li]item 3[/li]
[/list]



     
  • item 1
  • item 2
  • item 3

[list type=upper-latin]
  [li]item 1[/li]
  [li]item 2[/li]
  [li]item 3[/li]
[/list]



     
  • item 1
  • item 2
  • item 3

[list type=hebrew]
  [li]item 1[/li]
  [li]item 2[/li]
  [li]item 3[/li]
[/list]



     
  • item 1
  • item 2
  • item 3

[list type=armenian]
  [li]item 1[/li]
  [li]item 2[/li]
  [li]item 3[/li]
[/list]



     
  • item 1
  • item 2
  • item 3

[list type=georgian]
  [li]item 1[/li]
  [li]item 2[/li]
  [li]item 3[/li]
[/list]



     
  • item 1
  • item 2
  • item 3

[list type=cjk-ideographic]
  [li]item 1[/li]
  [li]item 2[/li]
  [li]item 3[/li]
[/list]



     
  • item 1
  • item 2
  • item 3

[list type=hiragana]
  [li]item 1[/li]
  [li]item 2[/li]
  [li]item 3[/li]
[/list]



     
  • item 1
  • item 2
  • item 3

[list type=katakana]
  [li]item 1[/li]
  [li]item 2[/li]
  [li]item 3[/li]
[/list]



     
  • item 1
  • item 2
  • item 3

[list type=hiragana-iroha]
  [li]item 1[/li]
  [li]item 2[/li]
  [li]item 3[/li]
[/list]



     
  • item 1
  • item 2
  • item 3

[list type=katakana-iroha]
  [li]item 1[/li]
  [li]item 2[/li]
  [li]item 3[/li]
[/list]

Burke ♞ Knight

I understand, and I don't want to change them all. Just the default one, if people just use the list bbc button without adding their own.


  • Just this one
  • Is all I want to change

[list]
[li][/li]
[li][/li]
[/list]

Arantor

I don't think you get it... THEY ALL USE THE SAME UNDERLYING CODE.

Burke ♞ Knight

Each symbol has to have a different code to use. I'm not meaning the bbc code, but the dec or hex for the symbol. Sorry for not being more clear in that.

If not mistaken the default bullet is using & #8226 ; Minus the spaces, as did not want it to be parsed.

Arantor

You are mistaken. That is not how the system works.

Advertisement: