looking for indent

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

looking for indent

Post by DWFII » Wed Apr 24, 2013 1:45 pm

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: 51696
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: looking for indent

Post by Brf » Wed Apr 24, 2013 2:07 pm

Like a quote?
this is indented

DWFII
Registered User
Posts: 335
Joined: Fri Oct 20, 2006 2:17 am
Name: D.W.
Contact:

Re: looking for indent

Post by DWFII » Wed Apr 24, 2013 2:22 pm

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: 51696
Joined: Tue May 10, 2005 7:47 pm
Location: {postrow.POSTER_FROM}
Contact:

Re: looking for indent

Post by Brf » Wed Apr 24, 2013 2:34 pm

You could try using

Code: Select all

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

Code: Select all

<blockquote>{TEXT}</blockquote>

DWFII
Registered User
Posts: 335
Joined: Fri Oct 20, 2006 2:17 am
Name: D.W.
Contact:

Re: looking for indent

Post by DWFII » Wed Apr 24, 2013 3:03 pm

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: 335
Joined: Fri Oct 20, 2006 2:17 am
Name: D.W.
Contact:

Re: looking for indent

Post by DWFII » Wed Apr 24, 2013 6:28 pm

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

User avatar
5hocK
Registered User
Posts: 3011
Joined: Wed Nov 23, 2011 7:00 pm
Location: England

Re: looking for indent

Post by 5hocK » Wed Apr 24, 2013 6:45 pm

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
A thread is pretty much a topic. Stop with the pedantics will ya.

User avatar
Mick
Support Team Member
Support Team Member
Posts: 21055
Joined: Fri Aug 29, 2008 9:49 am
Location: Watching cricket - definitely

Re: looking for indent

Post by Mick » Wed Apr 24, 2013 6:49 pm

Does indent do what you want?
"The more connected we get the more alone we become" - Kyle Broflovski

DWFII
Registered User
Posts: 335
Joined: Fri Oct 20, 2006 2:17 am
Name: D.W.
Contact:

Re: looking for indent

Post by DWFII » Wed Apr 24, 2013 7:06 pm

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: 335
Joined: Fri Oct 20, 2006 2:17 am
Name: D.W.
Contact:

Re: looking for indent

Post by DWFII » Wed Apr 24, 2013 7:11 pm

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”