public function formMinecraft()
{
/* Load editor stuff */
$classToLoad = IPSLib::loadLibrary( IPS_ROOT_PATH . 'sources/classes/editor/composite.php', 'classes_editor_composite' );
$this->editor = new $classToLoad();
/* HTML checkbox language strings */
$this->registry->getClass('class_localization')->loadLanguageFile( array( 'public_post' ), 'forums' );
//-----------------------------------------
// Check to make sure that we can edit profiles..
//-----------------------------------------
if ( ! $this->memberData['g_edit_profile'] AND ! $this->memberData['g_minecraft_unit'] )
{
$this->registry->getClass('output')->showError( 'members_profile_disabled', 1024, null, null, 403 );
}
if( $form['_noPerm'] )
{
return $this->registry->getClass('output')->getTemplate('ucp')->membersMinecraftFormError( $form );
}
/* Set content in editor */
$this->editor->setAllowBbcode( true );
$this->editor->setAllowSmilies( true );
$this->editor->setAllowHtml( $this->memberData['g_dohtml'] );
$this->editor->setIsHtml( $this->memberData['bw_html_minecraft'] );
$this->editor->setBbcodeSection('minecraft');
$this->editor->setContent( $this->memberData['minecraft'] );
/* Load parser */
$classToLoad = IPSLib::loadLibrary( IPS_ROOT_PATH . 'sources/classes/text/parser.php', 'classes_text_parser' );
$parser = new $classToLoad();
$parser->set( array( 'memberData' => $this->memberData,
'parseBBCode' => 1,
'parseHtml' => ( $this->memberData['g_dohtml'] && $this->memberData['bw_html_minecraft'] ),
'parseArea' => 'minecraft',
'parseEmoticons' => 1 ) );
$minecraft = $parser->display( $this->memberData['minecraft'] );
return $this->registry->getClass('output')->getTemplate('ucp')->membersSignatureForm( $this->editor->show( 'Post', array( 'noSmilies' => false ) ), $minecraft );
}