looking for indent

Get help developing custom BBCodes or request one.
Post Reply
DWFII
Registered User
Posts: 386
Joined: Fri Oct 20, 2006 2:17 am
Name: D.W.
Contact:

looking for indent

Post by DWFII »

I'm looking for a bbcode that will let me select a block of text...a paragraph, for instance...and indent it from, ideally, both margins.

I know this must be possible because other php based boards offer this facility--there's always a button/icon on the toolbar for both increasing and decreasing indent.

I have finally gotten the hang of the standard indent code but every time you hit enter the indenting disappears.
Last edited by DWFII on Wed Apr 24, 2013 2:21 pm, edited 1 time in total.
DWFII
In the High Desert of Central Oregon
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53411
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: looking for indent

Post by Brf »

Like a quote?
this is indented
DWFII
Registered User
Posts: 386
Joined: Fri Oct 20, 2006 2:17 am
Name: D.W.
Contact:

Re: looking for indent

Post by DWFII »

Brf wrote:Like a quote?
this is indented
Yes, but without the quotation marks and without the background colour change.
DWFII
In the High Desert of Central Oregon
User avatar
Brf
Support Team Member
Support Team Member
Posts: 53411
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: looking for indent

Post by Brf »

You could try using

Code: Select all

<blockquote><div>{TEXT}</div></blockquote>
or

Code: Select all

<blockquote>{TEXT}</blockquote>
DWFII
Registered User
Posts: 386
Joined: Fri Oct 20, 2006 2:17 am
Name: D.W.
Contact:

Re: looking for indent

Post by DWFII »

Brf wrote:You could try using

Code: Select all

<blockquote><div>{TEXT}</div></blockquote>
or

Code: Select all

<blockquote>{TEXT}</blockquote>

Will that get rid of the quotation marks?

What does the <div> do?

And what is the html reference code, for either/both, if I want to add these to my bbcode?
DWFII
In the High Desert of Central Oregon
DWFII
Registered User
Posts: 386
Joined: Fri Oct 20, 2006 2:17 am
Name: D.W.
Contact:

Re: looking for indent

Post by DWFII »

The <blockquote> code doesn't work, or I don't understand it. At least not in my localhost test forum. Plus searching on the 'Net, it seems to add the quotes.

It's kind of sad...I can indent blocks of text in my email program (TBird), in nearly any word processor and in a lot of php based forums such as vBulletin. I know it can be implemented in phpBB because the Advanced BBCode Mod offers it. I guess I could install the mod but I am told it writes to files and I don't want any kind of hassle when the next upgrade comes down the pike. Plus the mod has way more stuff than I need.

I don't know why the default board won't support something like what Advanced BBCode is doing as an addon bbcode in the APC.

??Thoughts?
DWFII
In the High Desert of Central Oregon
5hocK
Registered User
Posts: 3139
Joined: Wed Nov 23, 2011 7:00 pm
Location: UK

Re: looking for indent

Post by 5hocK »

Using this:
BBCode usage

Code: Select all

[indent]{TEXT}[/indent]
HTML replacement

Code: Select all

<div style="margin-left: 3em;">
{TEXT}
</div>
Help line

Code: Select all

[indent]Your text here[/indent]
Will give you this: http://www.headnog.com/viewtopic.php?f=2&t=5
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26546
Joined: Fri Aug 29, 2008 9:49 am

Re: looking for indent

Post by Mick »

Does indent do what you want?
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
DWFII
Registered User
Posts: 386
Joined: Fri Oct 20, 2006 2:17 am
Name: D.W.
Contact:

Re: looking for indent

Post by DWFII »

5hocK wrote:Using this:
BBCode usage

Code: Select all

[indent]{TEXT}[/indent]
HTML replacement

Code: Select all

<div style="margin-left: 3em;">
{TEXT}
</div>
Help line

Code: Select all

[indent]Your text here[/indent]
Will give you this: http://www.headnog.com/viewtopic.php?f=2&t=5
I think that works ...haven't tried it yet but the example provided looks like just the ticket,

Thanks.
DWFII
In the High Desert of Central Oregon
DWFII
Registered User
Posts: 386
Joined: Fri Oct 20, 2006 2:17 am
Name: D.W.
Contact:

Re: looking for indent

Post by DWFII »

5hocK wrote:Using this:
BBCode usage

Code: Select all

[indent]{TEXT}[/indent]
HTML replacement

Code: Select all

<div style="margin-left: 3em;">
{TEXT}
</div>
Help line

Code: Select all

[indent]Your text here[/indent]
Will give you this: http://www.headnog.com/viewtopic.php?f=2&t=5
Yes!! it did work! Thank you, thank you...I knew I could count on you guys!
DWFII
In the High Desert of Central Oregon
Post Reply

Return to “Custom BBCode Development and Requests”