Witam, otóż wydziurkałem taki kod i chciałbym was zapytać o jego poprawność, dopiero zaczynam przygodę z IPB i mam problem, otóż przy pobraniu zawartości danego posta nie jest on sprasowany(bbcode) jak zrobić, by był
<?php
class public_helloworld_example_mysection extends ipsCommand
{
public function doExecute( ipsRegistry $registry )
{
/* Init */
if ( ! $this->registry->isClassLoaded('topics') )
{
$classToLoad = IPSLib::loadLibrary( IPSLib::getAppDir( 'forums' ) . "/sources/classes/topics.php", 'app_forums_classes_topics', 'forums' );
$this->registry->setClass( 'topics', new $classToLoad( $this->registry ) );
}
$topic = $topic = $this->registry->getClass('topics')->getTopicById(2);
//$member = $registry->member()->fetchMemberData()
//$topic['topic_firstpost']
$parram = array('forumId' => '2');
$topic = $this->registry->getClass('topics')->getTopics($parram);
foreach($topic as $key => $zawartosc)
{
//$zawee.=$zawartosc['tid'];
$post = $this->registry->getClass('topics')->getPostById($zawartosc['tid']);
$zawee .= $post['post'] . '<br>';
}
$this->registry->output->addContent($zawee);
$this->registry->output->sendOutput();
}
}