Understanding Nested Quotes and Other Nested BBcode

Understanding Nested Quotes and Other Nested BBcode

PostBy: Richard S. On: Sun Jan 24, 2010 10:44 pm

Firstly you can quote directly from the control panel, see this topic here for more information:

Using the Quote Botton, Special Tip

Th only limitation where that might not work is if the post you want to quote is more than 15 back.

----------------------------

Quotes and some other BBcodes can be nested, the first thing to understand is a BBcode has start and end tag. The end tag is indicated by having a slash. What we're doing is formatting what is between the tags. The start tag says to start formatting and the end tag say to cease formatting.

Code: Select all
[quote]Some text[/quote]


When you quote a post that has already has quotes you'll get nested quotes like this:

Code: Select all
[quote="poster1"]Some text[quote="poster2"]Some other text[/quote][/quote]


This will look like this:

poster1 wrote:Some text
poster2 wrote:Some other text


If we just wanted to quote poster2's text you'd remove the first part and don't forget the end quote:

Code: Select all
[quote="poster2"]Some other text[/quote]



Another type of BBcode that can be nested is lists:

Code: Select all
[list]
[*]List 1
[*]List 1

[list]
[*]List 2
[*]List 2
[*]List 2
[/list]

[/list]


Which looks like this:

  • List 1
  • List 1

    • List 2
    • List 2
    • List 2

Now if you wanted to get fancy we could nest some URL's
Code: Select all
[list]
[*][url=http://example.com]List 1 Link[/url]
[*]List 1

[list]
[*]List 2
[*][url=http://example.com]List 2 Link[/url]
[*][url=http://example.com]List 2 Link[/url][/list]
[/list]


You can even nest a URL to attribute a quote:
Code: Select all
[quote="[url=http://neapcrossroads.com]NEPA Crossroads[/url]"]How to nest quotes can be found here.[/quote]


NEPA Crossroads wrote:How to nest quotes can be found here.



There is more information and examples here:

http://nepacrossroads.com/faq.php?mode=bbcode

Feel free to use the testing forum to try whatever you want.
User avatar
Richard S.
Mayor
 
Posts: 11047
Joined: Fri Oct 01, 2004 8:35 pm
Location: NEPA
Stove/Furnace Make: Van Wert
Stove/Furnace Model: VA1200