Bom vamos lá, esse tutorial é baseado no tutorial do Adriano para o IPB 3.1.x de mesmo nome Para iniciar, você deve pegar o arquivo ssi.php e a pasta ssi_templates dentro da pasta Tools do ZIP do IP.Board baixado da IPS Então você precisa modificar o ssi.php e criar um template para que funcione corretamente Abra o arquivo ssi.php e encontre: case 'stats': $this->_doStats(); break; Adicione abaixo: case 'topics': $this->_doTopics(); break; Encontre: /** * Do Stats * * Show totals */ function _doStats() { Insira ACIMA /* * Do Topics * * 10 Últimos Tópicos, por Adriano (SOS Invision) */ function _doTopics() { //---------------------------------------- // INIT //---------------------------------------- $forum = 2; $topicos = 10; $to_echo = ""; //----------------------------------------- // Load the template... //----------------------------------------- $template = $this->_loadTemplate("topics.html"); //----------------------------------------- // Get the topics, member info and other stuff //----------------------------------------- $this->DB->build( array( 'select' => '*', 'from' => array( 'topics' => 't', 'profile_portal' => 'p' ), 'where' => "t.forum_id={$forum} AND t.approved=1 AND p.pp_member_id=t.starter_id", 'order' => 't.tid DESC', 'limit' => array( 0, $topicos ) ) ); $o = $this->DB->execute(); while ( $row = $this->DB->fetch( $o ) ) { /* Generate the output */ $to_echo .= $this->_parseTemplate( $template, array ( 'photo' => $this->settings['board_url']."/uploads/{$row['pp_thumb_photo']}", 'date' => $this->registry->getClass('class_localization')->getDate( $row['start_date'], 'LONG' ), 'sid' => $this->settings['base_url']."showuser={$row['starter_id']}", 'starter' => $row['starter_name'], 'lid' => $this->settings['base_url']."showuser={$row['starter_id']}", 'last_poster' => $row['last_poster_name'], 'title' => $row['title'], 'id' => $this->settings['base_url']."showtopic={$row['tid']}" ) ); } echo $to_echo; exit(); } Salve as modificações Abra a pasta ssi_templates e crie um arquivo chamado topics.html Insira esse conteúdo:
Postado por: {starter} | Tópico: {title} | Em: {date} | Ultimo Por: {last_poster}
Salve o arquivo Entre no seu fórum, e digite na url, após o dominio (ex: www.exemplo.com/forum/ssi.php?a=topics) E veja o resultado Imagem Postada Ainda no arquivo ssi.php não esqueça de configurar o fórum de onde serão mostrados os tópicos e a quantidade, em $forum e $topicos respectivamente :) Outra opções validas para se mostrar são stats e active (stats vai mostrar o status do fórum e active vai mostrar os usuários ativos)