Simple Machines Community Forum

Customizing SMF => Tips and Tricks => Topic started by: aegersz on September 03, 2019, 06:27:59 PM

Title: don't forget the "unbound" [hr] BBCode for a horizontal ruler/line
Post by: aegersz 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)
Title: Re: don't forget the "unbound" [hr] BBCode for a horizontal ruler/line
Post by: aegersz 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.)
Title: Re: don't forget the "unbound" [hr] BBCode for a horizontal ruler/line
Post by: Antechinus 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?
Title: Re: don't forget the "unbound" [hr] BBCode for a horizontal ruler/line
Post by: aegersz 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.
Title: Re: don't forget the "unbound" [hr] BBCode for a horizontal ruler/line
Post by: shadav on September 27, 2019, 11:16:17 AM
i'm a bit confused also

wouldn't the html just be
<hr />
or do you mean for the bbc you can just use
[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
Title: Re: don't forget the "unbound" [hr] BBCode for a horizontal ruler/line
Post by: Arantor 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.
Title: Re: don't forget the "unbound" [hr] BBCode for a horizontal ruler/line
Post by: aegersz 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.
Title: Re: don't forget the "unbound" [hr] BBCode for a horizontal ruler/line
Post by: Antechinus 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.
Title: Re: don't forget the "unbound" [hr] BBCode for a horizontal ruler/line
Post by: aegersz on September 28, 2019, 02:58:11 AM
It does ? I didn't know that.

What button, please ?
Title: Re: don't forget the "unbound" [hr] BBCode for a horizontal ruler/line
Post by: Antechinus 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.
Title: Re: don't forget the "unbound" [hr] BBCode for a horizontal ruler/line
Post by: Arantor on September 28, 2019, 03:51:56 AM
Quote from: aegersz 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.

Yes but why do you wrap it in a bold bbc tag that achieves nothing?
Title: Re: don't forget the "unbound" [hr] BBCode for a horizontal ruler/line
Post by: aegersz on October 02, 2019, 03:18:02 AM
Quote from: Antechinus 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.

Thanks !
Title: Re: don't forget the "unbound" [hr] BBCode for a horizontal ruler/line
Post by: aegersz on October 02, 2019, 03:19:21 AM
Quote from: Arantor on September 28, 2019, 03:51:56 AM
Quote from: aegersz 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.

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.
Title: Re: don't forget the "unbound" [hr] BBCode for a horizontal ruler/line
Post by: Arantor on October 02, 2019, 03:34:49 AM
Nah, you're all good, I was just confused by what you were saying.