Advertisement:

Author Topic: don't forget the "unbound" [hr] BBCode for a horizontal ruler/line  (Read 916 times)

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,494
  • Gender: Male
  • "mods" junkie
    • dopetalk
don't forget the "unbound" [hr] BBCode for a horizontal ruler/line
« on: September 03, 2019, 06:27:59 PM »
I have been getting into html and then issuing a <hr> command to print a horizontal line to delineate sub-posts.

Then i thought that i would write a BBCode to do it instead ... but only to find that it's provided by Simple Machines already.

it is unbound so just issue this > [b][hr][/b]

i know, not the most amazing tip of the century but still, it bears mentioning if you didn't know about it.

i use it all the time and you can too !  8)
The configuration of my Linux VPS (SMF 2.0 with 145 mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum)

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,494
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: don't forget the "unbound" [hr] BBCode for a horizontal ruler/line
« Reply #1 on: September 03, 2019, 07:39:11 PM »
EDIT: ignore and remove the [b] and the [/b], i left that inside the nobbc BBCode section by mistake, sorry about that.

(yes, there is also a "nobbc" BBCode, too.)
The configuration of my Linux VPS (SMF 2.0 with 145 mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum)

Offline Antechinus

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,751
  • Master of BBC Abuse
Re: don't forget the "unbound" [hr] BBCode for a horizontal ruler/line
« Reply #2 on: September 03, 2019, 07:48:43 PM »
I'm not sure what your tip actually is. For a start, what does "unbound" mean in this context?

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,494
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: don't forget the "unbound" [hr] BBCode for a horizontal ruler/line
« Reply #3 on: September 04, 2019, 03:59:12 AM »
Sorry, unbound means no closing [/hr] required.

I admit i made the term up, forgive. It's the only BBCode i know that stands alone.
The configuration of my Linux VPS (SMF 2.0 with 145 mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum)

Offline shadav

  • Jr. Member
  • **
  • Posts: 208
  • Gender: Female
Re: don't forget the "unbound" [hr] BBCode for a horizontal ruler/line
« Reply #4 on: September 27, 2019, 11:16:17 AM »
i'm a bit confused also

wouldn't the html just be
Code: [Select]
<hr />or do you mean for the bbc you can just use
Code: [Select]
[hr] and not need the closing bbc

@firstly hr is a horizontal rule, basically just puts a line across the screen.... you can stylize these lines ;)
it's helpful for separating information on pages, like using underline, but it is not set to the word and it is usually a full page line, unless you style it with a set width

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,634
    • StoryBB/StoryBB on GitHub
Re: don't forget the "unbound" [hr] BBCode for a horizontal ruler/line
« Reply #5 on: September 27, 2019, 01:21:44 PM »
Um, why do you need the b bbc? Yes, it’s an empty (“unbound”) tag but the parser is quite capable of handling it, just as it is with the br bbcode.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,494
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: don't forget the "unbound" [hr] BBCode for a horizontal ruler/line
« Reply #6 on: September 28, 2019, 12:04:52 AM »
I like to delineate posts about a similar and specific topic ie. conflicting reports on a certain matter.

I find the line just appeals to me and dropping into HTML isn't required.
The configuration of my Linux VPS (SMF 2.0 with 145 mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum)

Offline Antechinus

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,751
  • Master of BBC Abuse
Re: don't forget the "unbound" [hr] BBCode for a horizontal ruler/line
« Reply #7 on: September 28, 2019, 01:20:26 AM »
But the problem is that nobody can understand what your tip actually is. If it's "Hey, SMF provides an hr button in its editor" then I'm not sure how this is any more newsworthy than any other standard SMF button that has always been there.

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,494
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: don't forget the "unbound" [hr] BBCode for a horizontal ruler/line
« Reply #8 on: September 28, 2019, 02:58:11 AM »
It does ? I didn't know that.

What button, please ?
The configuration of my Linux VPS (SMF 2.0 with 145 mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum)

Offline Antechinus

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,751
  • Master of BBC Abuse
Re: don't forget the "unbound" [hr] BBCode for a horizontal ruler/line
« Reply #9 on: September 28, 2019, 03:00:18 AM »
In the standard editor (non-wysiwyg) it's the third button from the right, just below the "Change color" select. It has a sort of <------> on it.

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,634
    • StoryBB/StoryBB on GitHub
Re: don't forget the "unbound" [hr] BBCode for a horizontal ruler/line
« Reply #10 on: September 28, 2019, 03:51:56 AM »
I like to delineate posts about a similar and specific topic ie. conflicting reports on a certain matter.

I find the line just appeals to me and dropping into HTML isn't required.

Yes but why do you wrap it in a bold bbc tag that achieves nothing?
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,494
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: don't forget the "unbound" [hr] BBCode for a horizontal ruler/line
« Reply #11 on: October 02, 2019, 03:18:02 AM »
In the standard editor (non-wysiwyg) it's the third button from the right, just below the "Change color" select. It has a sort of <------> on it.

Thanks !
The configuration of my Linux VPS (SMF 2.0 with 145 mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum)

Offline aegersz

  • SMF Hero
  • ******
  • Posts: 1,494
  • Gender: Male
  • "mods" junkie
    • dopetalk
Re: don't forget the "unbound" [hr] BBCode for a horizontal ruler/line
« Reply #12 on: October 02, 2019, 03:19:21 AM »
I like to delineate posts about a similar and specific topic ie. conflicting reports on a certain matter.

I find the line just appeals to me and dropping into HTML isn't required.

Yes but why do you wrap it in a bold bbc tag that achieves nothing?

I don't understand your question, i didn't know there was a button for the horizontal line: (see below)



i hope that i haven't wasted your time.
The configuration of my Linux VPS (SMF 2.0 with 145 mods & some assorted manual tweaks) can be found here and notes on my mods can be found here (warning: those links will take you to a drug related forum)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,634
    • StoryBB/StoryBB on GitHub
Re: don't forget the "unbound" [hr] BBCode for a horizontal ruler/line
« Reply #13 on: October 02, 2019, 03:34:49 AM »
Nah, you’re all good, I was just confused by what you were saying.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.