Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: Goss on October 17, 2010, 04:20:48 PM

Title: Blockquote BBC
Post by: Goss on October 17, 2010, 04:20:48 PM
Is there a way to make the blockquote HTML a BBC tag?  I'm using SMF 2.0 RC3 on my forum and this is a feature that is very much requested by my members.  Mostly because they want to use BBC within the blockquote tags.  At the moment, the blockquote HTML tag does not seem all that friendly to having BBC happening within it.

Thank you in advance!
Title: Re: Blockquote BBC
Post by: Oya on October 17, 2010, 04:23:39 PM
whats wrong with the [quote] tag?
Title: Re: Blockquote BBC
Post by: Goss on October 17, 2010, 05:45:06 PM
Quote gives the whole quote box.  Blockquote sets off a chunk of text. It's almost what the list bbc does, but blockquote sets it off on both sides rather than just on the left.  That's what they're interested in.
Title: Re: Blockquote BBC
Post by: villedepuissance on January 02, 2011, 09:43:14 PM
My members are also requesting this a well. I would love to know if you have found a way to accomplish it.
Title: Re: Blockquote BBC
Post by: Kays on January 02, 2011, 09:54:05 PM
See if this works. Add it to the bbc array in Subs.php


array(
'tag' => 'blockquote',
'before' => '<blockquote>',
'after' => '</blockquote>',
'block_level' => true,
),
Title: Re: Blockquote BBC
Post by: Mari-chi on January 03, 2011, 02:54:29 PM
I've been wondering how to do blockquote with BBC as well, so I tested the code Kays gave on my testboard--and it works like a charm. :) Thank-you for sharing that.