Re: [New Plugin] BuddyPress Group Forum Extras
Vipers Plugin has these options….
add_shortcode( ‘b’ , array(&$this, ‘shortcode_bold’) );
add_shortcode( ‘i’ , array(&$this, ‘shortcode_italics’) );
add_shortcode( ‘u’ , array(&$this, ‘shortcode_underline’) );
add_shortcode( ‘url’ , array(&$this, ‘shortcode_url’) );
add_shortcode( ‘img’ , array(&$this, ‘shortcode_image’) );
add_shortcode( ‘quote’ , array(&$this, ‘shortcode_quote’) );
I added this last night. (messy I know but it works and it was late)
add_shortcode( 'color' , array(&$this, 'shortcode_color') );
// bOingball - color shortcode
function shortcode_color( $atts = array(), $content = NULL ) {
if ( NULL === $content ) return '';
//convert color by making the array a string
$attribs = implode("",$atts);
//then take the start and start it at the color start.
$subattribs = substr ( $attribs, 1);
return '<font color=' . $subattribs . '>' . do_shortcode($content) . '</font>';
}
So what do we need in there….
Strike Through… Underline…. List… Li?… center and code.
I could update that plugin to do the following I’m sure. – Maybe tonight or tomorrow.