Dificuldade na listagem de topicos em página externa

Suporte à dúvidas gerais relacionadas ao phpBB.
Krunsher
Novato
Novato
Mensagens: 121
Registrado em: 02 Fev 2012, 20:58

Dificuldade na listagem de topicos em página externa

Mensagem por Krunsher »

Qual a URL do seu fórum: http://www.digitalrip.com.br
Tipo de Hospedagem: Free
Qual a versão do phpBB: phpBB 3.0.10
É um novo ou uma conversão: Instalação Limpa
Usuário de teste: Usuário: teste Senha: 123456
Estilos instalados: eTech
Modificações instaladas: Simple Hide BBcode MOD
Qual seu nivel de experiência:: Iniciante
Descreva seu problema: Um dos meus três maiores problemas e pesadelos da criação do meu fórum está sendo a criação dos índices(páginas externas). Eu vi o tutorial do Phpbb (Displaying posts and topics on external pages) e o daqui do Suporte, mas mesmo assim nao estou entendendo bem. E tambem vi o tutorial daqui. Como vocês viram em alguns outros tópicos, eu estou criando um fórum no estilo do http://www.ripando.com.br, se vocês entrarem nele iram ver como eu gostaria, eu ja tentei analizar como Firebug os elementos daqueles links, mas estou sendo um fracasso.. :|
Nao entendi a lógica do http://www.ripando.com.br/indices/geral.php, que ao clicarmos em alguma opção, como animes, ele vai para uma página chamada: "http://www.ripando.com.br/indices/geral.php?&t=animes". Pensei que deveria ser: http://www.ripando.com.br/indices/geral.php?&t=animes, mas depois do geral.php, tem esse elemento ?&t=animes que confundiu minha cabeça toda... Eu editei um indice de Animes, mas não sei o que fazer, pra ficar com as tabelas e tal de acordo com o forum animes.. Eu to perdido.. rs..

Indice de animes que eu editei:

http://digitalrip.com.br/indices/animes.php

CSS:

http://digitalrip.com.br/indices/estilo/css.css
Editado pela última vez por Krunsher em 17 Fev 2012, 21:09, em um total de 2 vezes.
Bruno Dias
Membro Intermediá¡rio
Membro Intermediá¡rio
Mensagens: 448
Registrado em: 22 Set 2005, 19:11
Localização: Araraquara - SP
Contato:

Re: Dificuldade na listagem de topicos em página externa

Mensagem por Bruno Dias »

nao sei como foi feito nesse site, mas estou tentando fazer quem nem o tuto do site phpbb.com

o resultado é esse aqui, ainda falta ageitar a parte visual, mas o script faz o que eu queria msm
http://novogolclube.com/indice-de-fotos/

codigo:

Código: Selecionar todos

<!-- inicio codigo php -->
<?php

require('/home/diasb416/public_html/novogolclube.com/forum/config.php'); //codigo para pegar as configuraçoes do forum
?>
<?php
error_reporting(0);
$table_topics = $table_prefix.'topics';
$cn_forum = mysql_pconnect($dbhost, $dbuser, $dbpasswd) or die(mysql_error());
// Coloque aqui quantas letras você quer que apareça do título?
$letras_Topicos = 300;
// Caminho da página do fórum:
$caminho_Topicos = 'http://novogolclube.com/forum/';
?>
<?php
// Quantos tópicos você quer visualizar
$maxRows_Topicos = 200;
$pageNum_Topicos = 0;
mysql_select_db($dbname, $cn_forum);
mysql_set_charset('utf8', $cn_forum);
$query_Topicos = "SELECT topic_id, topic_title, forum_id, topic_first_poster_name FROM $table_topics WHERE forum_id = 8 ORDER BY topic_title ASC";
$query_limit_Topicos = sprintf("%s LIMIT %d, %d", $query_Topicos, $startRow_Topicos, $maxRows_Topicos);
$Topicos = mysql_query($query_limit_Topicos, $cn_forum) or die(mysql_error());
$row_Topicos = mysql_fetch_assoc($Topicos);
?>
	<table>
		<tr>
			<th>Titulo</th>
			<th>Autor</th>
		</tr>
	</table>
<?php do { ?>
	<table>
	<tr>
		<th>
			<a href="<?php echo $caminho_Topicos; ?>viewtopic.php?t=<?php echo $row_Topicos['topic_id']; ?>" target="new"><?php echo substr($row_Topicos['topic_title'], 0, $letras_Topicos).''; ?></a>
		</th>
		<th>
			<?php echo $row_Topicos['topic_first_poster_name']; ?>
		</th>
	</tr>
	</table>
<?php } while ($row_Topicos = mysql_fetch_assoc($Topicos)); ?>
<?php
mysql_free_result($Topicos);
?>			<!-- fim codigo php -->
eu alterei a linha abaixo, colocando forum_id = 8, pois queria apenas do forum com id 8

Código: Selecionar todos

$query_Topicos = "SELECT topic_id, topic_title, forum_id, topic_first_poster_name FROM $table_topics WHERE forum_id = 8 ORDER BY topic_title ASC";

nao manjo nada de PHP, fui fuçando o codigo, e na tentativa e erro
Forum: Novo Gol Clube
Style: Baseado no Prosilver SE e personalizado por mim, totalmente integrado ao site junto com WP-phpBB Bidge
Mods:
Advanced Quick Reply
Who Was Here
Precise Similar Topics II
Topic Statistics
AOS Who Visited a Topic
Avatar do usuário
robra
Membro Sênior
Membro Sênior
Mensagens: 6065
Registrado em: 02 Dez 2010, 22:29

Re: Dificuldade na listagem de topicos em página externa

Mensagem por robra »

...eu estou criando um fórum no estilo do http://www.ripando.com.br, se vocês entrarem nele iram ver como eu gostaria...
As páginas como Geral, Animes, Desenhos, etc, são personalizadas e é preciso a pessoa saber sobre programação para criar as tabelas, criar o status e o sistema de qualidade como "Links Online", "Links Sendo (Re)Upados" e "Links Offline". Até a estrutura do estilo eTech foi alterada com a inclusão de uma coluna.
Você pode até utilizar a estrutura de alguns MODs para pegar os últimos tópicos postados, conforme postei na mensagem viewtopic.php?f=147&t=45897#p275140, mas quanto a criação das páginas aí tem de saber sobre programação.

OBS: Qual a situação deste seu Tópico: Como traduzir e instalar o portal? ??

Abraço. Imagem
[DICA] Antes de abrir um Novo Tópico, procure saber se a sua dúvida já foi respondida. Pesquise no Google por palavras(em inglês também) relacionadas à ela, somado à palavra "phpbb".
Krunsher
Novato
Novato
Mensagens: 121
Registrado em: 02 Fev 2012, 20:58

Re: Dificuldade na listagem de topicos em página externa

Mensagem por Krunsher »

Opa robra, já fui lá no tópico e falei sua situação :)
-----
"Links Online", "Links Sendo (Re)Upados" e "Links Offline" são os icones os tópicos. Acabei de ver que o link que eu postei no primeiro post estava OFF, eu tinha colocado o link errado, acabei de corrigir. Eu editei o indice do Ripando e fiz um bem simples, de acordo com o meu estilo do fórum. E tipo, é muito complicado inserir topicos externos naquela página minha?
-
PS.

Acho que cada item do meu menu redirecionaria para uma página difernte, para a página animes por exemplo, sem aquele negocio de "geral.php?&t=animes" que tem no Ripando, por exemplo, no meu menu, ao clicar em Animes, iria para a página>

http://digitalrip.com.br/indices/animes.php

Alguem poderia me ajudar a colocar esses scripts de páginas externas que funcionariam juntamente com as tabelas de: icone do topico, nome do topico, descrição do topico, subforum onde ele foi postado, usuario que postou.

Ta dificil aqui.. rs..
Avatar do usuário
robra
Membro Sênior
Membro Sênior
Mensagens: 6065
Registrado em: 02 Dez 2010, 22:29

Re: Dificuldade na listagem de topicos em página externa

Mensagem por robra »

Acho que dá para utilizar o [ABD] Last News and Messages para cada página que você quer montar.
Ao baixar o MOD, você vai ter:
1- Na raiz, os arquivos last_config.php e o recent_messages.php.
2- Na pasta /template do Estilo, o arquivo recent_messages.html.
O last_config.php é o arquivo da configuração, o recent_messages.php é o arquivo da programação e o recent_messages.html é o arquivo da visualização.
Para "Animes" você renomearia os arquivos como:
1- Na raiz, os arquivos animes_config.php e o animes.php.
2- Na pasta /template do eTech, o arquivo animes.html.
Depois, é deixar o animes.html na estrutura do animes.php que você postou em sua mensagem anterior.
O mesmo procedimento você faria para as demais páginas.
Pode ser que dê certo.

OBS:
1) O arquivo last_config.php pode ser eliminado. Nas as primeiras linhas do recent_messages.php tem-se:

Código: Selecionar todos

if (!defined('IN_PHPBB'))
{
    exit;
}

define('IN_RECENT', true);

//
// Read configuration definition
//
if ( file_exists( $phpbb_root_path . 'last_config.' . $phpEx ) )
{
    include( $phpbb_root_path . 'last_config.' . $phpEx );
}
else
{
    $recent_num_news = '3';
    $recent_num_topics = '5';
    $recent_news_forum_id = '3';
    $recent_forums_ignore = '';
    $recent_auth_read = false; 
Pelo que entendi, estas linhas estão "dizendo" para ler a configuração do arquivo last_config.php, e na ausência deste ficará valendo as 3 últimas notícias e os 5 últimos tópicos do fórum de id=3, se eu não estiver enganado.
Como você só quer os Tópicos, o recent_num_news fica =".
Aí ficaria só o recent_messages.php(animes.php) na raiz e o recent_messages.html(animes.html) na pasta /template do eTech.

2) Vai precisar incluir no início do arquivo animes.html a linha <!-- INCLUDE overall_header.html -->, e no final a linha <!-- INCLUDE overall_footer.html -->.

3) Nas instruções do recent_messages.xml, a inclusão da linha no index.php seria
include($phpbb_root_path . 'animes.'.$phpEx); e não haveria edição no arquivo index_body.html.

Abraço. Imagem
[DICA] Antes de abrir um Novo Tópico, procure saber se a sua dúvida já foi respondida. Pesquise no Google por palavras(em inglês também) relacionadas à ela, somado à palavra "phpbb".
Avatar do usuário
robra
Membro Sênior
Membro Sênior
Mensagens: 6065
Registrado em: 02 Dez 2010, 22:29

Re: Dificuldade na listagem de topicos em página externa

Mensagem por robra »

Seguindo a minha própria sugestão... Imagem ...faça o teste abaixo pra você ter apenas uma idéia:
1- Abra o Notepad++ e crie 3 arquivos novos, sendo 2 na linguagem PHP e 1 na HTML.
2- Copie o conteúdo abaixo, cole-o no 1º novo arquivo PHP, salve-o como animes.php e faça upload para a raiz do Fórum:

Código: Selecionar todos

<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);

// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
if ($user->data['user_id'] == ANONYMOUS)
{
    login_box('', $user->lang['LOGIN']);
} 
page_header('Animes');

if (!defined('IN_PHPBB'))
{
	exit;
}

define('IN_RECENT', true);

// Setup config parameters
 
	// NEWS FORUM ID
	$recent_news_forum_id = '3';		// SEPERATE NEWS FORUMS WITH , eg '1,2,3' - SET TO '0' IF YOU DO NOT HAVE A NEWS FORUM 

	// NUMBER OF NEWS ARTICLES YOU WISH TO DISPLAY
	$recent_num_news= 3; 
	
	// NUMBER OF RECENT ARTICLES YOU WISH TO DISPLAY
	$recent_num_topics = 5;

	// FORUMS YOU WISH TO IGNORE IN YOUR RECENT ARTICLES
	$recent_forums_ignore = '';		// SEPERATE FORUMS TO IGNORE WITH , eg '1,2,3' - SET TO '' IF YOU WANT ALL DISPLAYED
 
	// SHOW TOPICS THE USER CAN VIEW, BUT NOT READ? (true / false)
	$recent_auth_read = true;
			
	// TABLE WIDTH
	$recent_table_width = '100%';
	
	// CHANGE THE BULLET IF A TOPIC IS NEW? (true / false)
	$recent_show_new_bullets = true;
	
	// MESSAGE TRACKING WILL TRACK TO SEE IF A USER HAS READ THE TOPIC DURING THEIR SESSION (true / false)
	$recent_track = true;
	 
	// SHOW TOPICS THE USER CAN VIEW, BUT NOT READ? (true / false)
	$recent_auth_read = true;

	// LIMIT THE NUMBER OF CHARACTERS DISPLAYED FOR TOPIC TITLES
    	$recent_topic_length = 0;	// SET TO ZERO TO DISPLAY THE FULL TITLE 

//Do not edit bellow this line

//Images

$recent_news_bullet_old = $user->img('announce_read', 'POST_ANNOUNCEMENT'); 
	
$recent_posts_bullet_old = $user->img('topic_read', 'NEW_POSTS'); 
	
$recent_news_bullet_new = $user->img('announce_unread', 'POST_ANNOUNCEMENT'); 
	
$recent_posts_bullet_new = $user->img('topic_unread', 'NEW_POSTS'); 

//Images SRC

$recent_news_bullet_old_src = $user->img('announce_read', 'POST_ANNOUNCEMENT', false, '', 'src'); 
	
$recent_posts_bullet_old_src = $user->img('topic_read', 'NEW_POSTS', false, '', 'src'); 
	
$recent_news_bullet_new_src = $user->img('announce_unread', 'POST_ANNOUNCEMENT', false, '', 'src'); 
	
$recent_posts_bullet_new_src = $user->img('topic_unread', 'NEW_POSTS', false, '', 'src'); 

// Read language definition
$user->add_lang('pg_personal');

if ( !defined('PHPBB_URL') )
{
	if (!isset($script_path) || empty($script_path))
	{
		$script_path = preg_replace('/^\/?(.*?)\/?$/', '\1', trim($config['script_path']));
	}
	if (!isset($server_name) || empty($server_name))
	{
		$server_name = trim($config['server_name']);
	}
	if (!isset($server_protocol) || empty($server_protocol))
	{
		$server_protocol = ( $config['cookie_secure'] ) ? 'https://' : 'http://';
	}
	if (!isset($server_port) || empty($server_port))
	{
		$server_port = ( $config['server_port'] <> 80 ) ? ':' . trim($config['server_port']) . '/' : '/';
	}
	define('PHPBB_URL', $server_protocol . $server_name . $server_port . $script_path . '/');
}

if ( !function_exists( 'this_recent_url' ) )
{
	function this_recent_url($args = '')
	{
		global $server_protocol, $server_name, $server_port, $script_path, $page_id, $phpEx;

		$url = $server_protocol . $server_name . $server_port . $script_path . '/' . 'index.' . $phpEx;

		if( is_numeric($page_id) && !empty($page_id) )
		{
			$url .= '?page=' . $page_id . ($args == '' ? '' : '&' . $args);
		}
		else
		{
			$url .= '' . ($args == '' ? '' : '?' . $args);
		}

		return $url;
	}
}


// GET USER LAST VISIT

$recent_last_visit = $user->data['user_lastvisit'];
$recent_forums_offset = request_var('recent_posts_offset', '');
$recent_news_offset = request_var('recent_news_offset', '');
	
// MESSAGE TRACKING
if ( !isset($tracking_topics) && $recent_track ) $tracking_topics = request_var($config['cookie_name'] . '_t', '', false, true);
	
// CHECK FOR BAD WORDS
// Define censored word matches
$orig_word = array();
//$replacement_word = array();
//$cache->obtain_word_list($orig_word, $replacement_word);
censor_text($orig_word);
	
// set the topic title sql depending on the character limit
$sql_title = ($recent_topic_length) ? ", LEFT(t.topic_title, " . $recent_topic_length . ") as topic_title" : ", t.topic_title";
    
// GET THE LATEST NEWS TOPIC
if ($recent_num_news)
{

	$sql_news_limit = $recent_num_news; 

	$sql_news_start = ($recent_news_offset) ? $recent_news_offset : 0;

	$sql = $db->sql_build_query('SELECT', array(
			'SELECT'	=> 'f.forum_id, f.forum_name' . $sql_title . ', t.*, p.post_time, p.poster_id, u.username as last_username, u.username as author_username',

			'FROM'		=> array(
				FORUMS_TABLE	=> 'f',
				POSTS_TABLE	=> 'p',
				TOPICS_TABLE	=> 't',
				USERS_TABLE	=> 'u',
			),

			'WHERE'		=> 'f.forum_id IN (' . $recent_news_forum_id . ') 
				AND t.topic_status <> 2
				AND t.forum_id = f.forum_id
				AND p.post_id = t.topic_first_post_id
				AND t.topic_moved_id = 0
				AND p.poster_id = u.user_id
				AND t.topic_poster = u.user_id',

			'ORDER_BY'	=> 't.topic_last_post_id DESC',

			));

	$result = $db->sql_query_limit($sql, $sql_news_limit, $sql_news_start);

	$latest_news = array();

	while ( $topic_row = $db->sql_fetchrow($result) )
	{
		$topic_row['topic_title'] = ( count($orig_word) ) ? preg_replace($orig_word, $replacement_word, $topic_row['topic_title']) : $topic_row['topic_title'];
		$latest_news[] = $topic_row;
	}
	$db->sql_freeresult($result);


       // obtain the total number of topic for our news topic navigation bit
	$sql = "SELECT SUM(forum_topics) as topic_total FROM " . FORUMS_TABLE . " f WHERE f.forum_id IN (" . $recent_news_forum_id . ")";
	$result = $db->sql_query($sql);
	$row = $db->sql_fetchrow($result);
	$overall_news_topics = $row['topic_total'];
	$db->sql_freeresult($result);
}

// GET THE LAST 5 TOPICS

if ($recent_num_topics)
{
	$unauthed_forums = array();

	$sql = "SELECT * FROM " . FORUMS_TABLE . " WHERE forum_id NOT IN (" . $recent_news_forum_id . ")";
	$result = $db->sql_query($sql);

	$recent_auth_level = ( $recent_auth_read ) ? '!f_read' : true;

	$auth_user = array();

	$auth_user = $auth->acl_getf($recent_auth_level, true);

	//print_r($auth_user);

	$recentforumsignore = $recent_news_forum_id;
		
	if ( $num_forums = count($auth_user) )
	{
		while ( list($forum_id, $auth_mod) = each($auth_user) )
		{
			$unauthed = false;
			if ( !$auth_mod['f_list'] && ( strstr($recent_news_forum_id,$auth_mod['forum_id']) === FALSE )) 
			{ 
				$unauthed = true; 
			} 
			if ( !$recent_auth_read && !$auth_mod['f_read'] && ( strstr($recent_news_forum_id,$auth_mod['forum_id']) === FALSE ) ) 
			{ 
				$unauthed = true; 
			} 
			if ( $unauthed )
			{
				$recentforumsignore .= ($recentforumsignore) ? ',' . $forum_id : $forum_id;
			}
		}
	}
	
	$recentforumsignore .= ($recentforumsignore && $recent_forums_ignore) ? ',' : '';

	$sql_forums_limit = $recent_num_topics; 

	$sql_forums_start = ($recent_forums_offset) ? $recent_forums_offset : 0; 

	$sql = $db->sql_build_query('SELECT', array(
			'SELECT'	=> 'f.forum_id, f.forum_name' . $sql_title . ', t.*, p.post_time, p.poster_id, u.username as last_username, u.username as author_username',

			'FROM'		=> array(
				FORUMS_TABLE	=> 'f',
				POSTS_TABLE	=> 'p',
				TOPICS_TABLE	=> 't',
				USERS_TABLE	=> 'u',
			),

			'WHERE'		=> 'f.forum_id NOT IN (' . $recentforumsignore . $recent_forums_ignore . ') 
				AND t.topic_status <> 2
				AND t.forum_id = f.forum_id
				AND p.post_id = t.topic_first_post_id
				AND t.topic_moved_id = 0
				AND p.poster_id = u.user_id
				AND t.topic_poster = u.user_id',

			'ORDER_BY'	=> 't.topic_last_post_id DESC',

			));

	$result = $db->sql_query_limit($sql, $sql_forums_limit, $sql_forums_start);

	$latest_topics = array();
	$latest_anns = array();
	$latest_stickys = array();

	while ( $topic_row = $db->sql_fetchrow($result) )
	{
		$topic_row['topic_title'] = ( count($orig_word) ) ? preg_replace($orig_word, $replacement_word, $topic_row['topic_title']) : $topic_row['topic_title'];

		switch ($topic_row['topic_type'])
		{
			case POST_ANNOUNCE:
				$latest_anns[] = $topic_row;
				break;
			case POST_STICKY:
				$latest_stickys[] = $topic_row;
				break;	
			default:
				$latest_topics[] = $topic_row;
				break;
		}
	}
	$latest_topics = array_merge($latest_anns, $latest_stickys, $latest_topics);
	$db->sql_freeresult($result);

	// obtain the total number of topic for our recent topic navigation bit
	$sql = "SELECT SUM(forum_topics) as topic_total FROM " . FORUMS_TABLE . " f WHERE f.forum_id NOT IN (" . $recentforumsignore . $recent_forums_ignore . $recent_news_forum_id . ")";
	$result = $db->sql_query($sql);

	$row = $db->sql_fetchrow($result);
	$overall_total_topics = $row['topic_total'];
	$db->sql_freeresult($result);
}

if ($recent_num_news)
{
	if ( !empty($latest_news) )
	{
		$bullet_pre = 'recent_news_bullet';
			
		for ( $i = 0; $i < count($latest_news); $i++ )
		{
			if ( $user->data['user_id'] != 1 )
			{
				$unread_topics = false;
				$topic_id = $latest_news[$i]['topic_id'];
				if ( $latest_news[$i]['topic_last_post_time'] > $recent_last_visit )
				{
					$unread_topics = true;
					$topic_tracking_info = get_complete_topic_tracking($latest_news[$i]['forum_id'], $latest_news[$i]['topic_id'], false);

					/*
					if( !empty($tracking_topics[$topic_id]) && $recent_track )
					{
						if( $tracking_topics[$topic_id] >= $latest_news[$i]['topic_last_post_time'] )
						{
							$unread_topics = false;
						}
					}
					*/

					if ($latest_news[$i]['topic_status'] == ITEM_MOVED)
					{
						$topic_id = $latest_news[$i]['topic_moved_id'];
						$unread_topics = false;
					}
					else
					{
						$unread_topics = (isset($topic_tracking_info[$topic_id]) && $latest_news[$i]['topic_last_post_time'] > $topic_tracking_info[$topic_id]) ? true : false;
					}
				}
				else
				{
					$unread_topics = false;
				}
				$shownew = $unread_topics;
			}
			else
			{
				$unread_topics = false;
				$shownew = true;
			}

			$bullet_full = $bullet_pre . ( ( $shownew && $recent_show_new_bullets ) ? '_new' : '_old' );

			$bullet_src = $bullet_pre . ( ( $shownew && $recent_show_new_bullets ) ? '_new_src' : '_old_src' );

			$newest_code = ( $unread_topics && $recent_show_new_bullets ) ? '&view=newest' : '';

			$message_date = $user->format_date($latest_news[$i]['topic_time']);

			$last_poster = get_username_string('username', $latest_news[$i]['topic_last_poster_id'], $latest_news[$i]['topic_last_poster_name'], $latest_news[$i]['topic_last_poster_colour']);
			$last_poster_color = get_username_string('colour', $latest_news[$i]['topic_last_poster_id'], $latest_news[$i]['topic_last_poster_name'], $latest_news[$i]['topic_last_poster_colour']);
			$last_poster_full = get_username_string('full', $latest_news[$i]['topic_last_poster_id'], $latest_news[$i]['topic_last_poster_name'], $latest_news[$i]['topic_last_poster_colour']);

			$topic_poster = get_username_string('username', $latest_news[$i]['topic_poster'], $latest_news[$i]['topic_first_poster_name'], $latest_news[$i]['topic_first_poster_colour']);
			$topic_poster_color = get_username_string('colour', $latest_news[$i]['topic_poster'], $latest_news[$i]['topic_first_poster_name'], $latest_news[$i]['topic_first_poster_colour']);
			$topic_poster_full = get_username_string('full', $latest_news[$i]['topic_poster'], $latest_news[$i]['topic_first_poster_name'], $latest_news[$i]['topic_first_poster_colour']);

			$last_post_time = $user->format_date($latest_news[$i]['topic_last_post_time']);

			if (($recent_news_offset > 0) or ($recent_news_offset+$recent_num_news < $overall_news_topics))
			{
				$new_url = '<a href="' . append_sid(this_recent_url('recent_news_offset='));
				if ($recent_news_offset > 0) 
				{ 
					$prev_news_url = ($recent_forums_offset > 0) ? $new_url . ($recent_news_offset-$recent_num_news) . '&recent_posts_offset=' . $recent_forums_offset . '" class="th"><< Prev ' . $recent_num_news . '</a>' : $new_url . ($recent_news_offset-$recent_num_news).'" class="th"><< Prev ' . $recent_num_news . '</a>';
				}
				else 
				{ 
					$prev_news_url = '';
				}
				if ($recent_news_offset+$recent_num_news < $overall_total_topics)
				{
					$next_news_url = ($recent_forums_offset > 0) ? $new_url . ($recent_news_offset+$recent_num_news) . '&recent_posts_offset=' . $recent_forums_offset . '" class="th">Next ' . $recent_num_news . ' >></a>' : $new_url . ($recent_news_offset+$recent_num_news).'" class="th">Next ' . $recent_num_news . ' >></a>';
				}
				else 
				{ 
					$next_news_url = '';
				}
			}
			else 
			{
				$prev_news_url = ''; 
				$next_news_url = '';
			}
				$recent_news_total_info = count($i);
				$template->assign_block_vars('latest_news', array(
					'NEWEST_POST_IMG' => $$bullet_full,
					'TOPIC_FOLDER_IMG_SRC' => $$bullet_src,					
					'TOPIC_TITLE' => $latest_news[$i]['topic_title'],
					'U_LAST_POST' => append_sid( PHPBB_URL . 'viewtopic.' . $phpEx, 'f=' . $latest_news[$i]['forum_id'] . '&t=' . $latest_news[$i]['topic_id'] . '&p=' . $latest_news[$i]['topic_last_post_id'] . '#p' . $latest_news[$i]['topic_last_post_id']),		
					'TOPIC_TIME' => $message_date,
					'LAST_POST_TIME' => $last_post_time,
					'TOPIC_POSTER' => $topic_poster,
					'TOPIC_VIEWS' => $latest_news[$i]['topic_views'],
					'TOPIC_REPLIES' => $latest_news[$i]['topic_replies'],
					'LAST_POSTER' => $last_poster,
					'LAST_POSTER_COLOUR' => $last_poster_color,
					'LAST_POSTER_FULL' => $last_poster_full,
					'TOPIC_AUTHOR' => $topic_poster,
					'TOPIC_AUTHOR_COLOUR' => $topic_poster_color,
					'TOPIC_AUTHOR_FULL' => $topic_poster_full,
					'FORUM_TITLE' => $latest_news[$i]['forum_name'],
					'U_VIEW_TOPIC' => append_sid( PHPBB_URL . 'viewtopic.' . $phpEx, 'f=' . $latest_news[$i]['forum_id'] . '&t=' . $latest_news[$i]['topic_id'] . $newest_code),
					'U_VIEW_FORUM' => append_sid( PHPBB_URL . 'viewforum.' . $phpEx, 'f=' . $latest_news[$i]['forum_id']),
					'NEXT_URL'	=> $next_news_url,
					'PREV_URL' 	=> $prev_news_url,
					'S_TOPIC_GLOBAL'	=> (!$latest_news[$i]['forum_id']) ? true : false,
					'S_TOPIC_TYPE'	=> $latest_news[$i]['topic_type'],
					'S_USER_POSTED'	=> (!empty($latest_news[$i]['mark_type'])) ? true : false,
					'SWITCH_RECENT_NEWS' => (!empty($recent_num_news)) ? 1 : false,
					'S_HAS_POLL'		=> ($latest_news[$i]['poll_start']) ? true : false,
					'S_POST_ANNOUNCE'	=> ($latest_news[$i]['topic_type'] == POST_ANNOUNCE) ? true : false,
					'S_POST_GLOBAL'	=> ($latest_news[$i]['topic_type'] == POST_GLOBAL) ? true : false,
					'S_POST_STICKY'	=> ($latest_news[$i]['topic_type'] == POST_STICKY) ? true : false,
					'S_TOPIC_LOCKED'	=> ($latest_news[$i]['topic_status'] == ITEM_LOCKED) ? true : false,
					'S_TOPIC_MOVED'	=> ($latest_news[$i]['topic_status'] == ITEM_MOVED) ? true : false,
					'S_ROW_COUNT'	=> $i)
					);
		}

	}
	else
	{
		$recent_news_total_info = 'None';
		$template->assign_block_vars('latest_news', array(
		'TOPIC_FOLDER_IMG_SRC' => $recent_forums_bullet_old,
		'LAST_POSTER' => 'None',
		'TOPIC_POSTER' => 'None',
		'TOPIC_AUTHOR' => 'None',
		'TOPIC_REPLIES' => '0',	
		'TOPIC_TITLE' => 'None'
	        ));
	}
}
	
if ($recent_num_topics)
{
	$recent_info = 'counted recent';
	$bullet_pre = 'recent_posts_bullet';
	if ( !empty($latest_topics) )
	{
		for ( $i = 0; $i < count($latest_topics); $i++ )
		{
			if ( $user->data['user_id'] != 1 )
			{
				$unread_topics = false;
				$topic_id = $latest_topics[$i]['topic_id'];
				if ( $latest_topics[$i]['topic_last_post_time'] > $recent_last_visit )
				{
					$unread_topics = true;
					$topic_tracking_info = get_complete_topic_tracking($latest_topics[$i]['forum_id'], $latest_topics[$i]['topic_id'], false);

					/*
					if( !empty($tracking_topics[$topic_id]) && $recent_track )
					{
						if( $tracking_topics[$topic_id] >= $latest_topics[$i]['topic_last_post_time'] )
						{
							$unread_topics = false;
						}
					}
					*/

					if ($latest_news[$i]['topic_status'] == ITEM_MOVED)
					{
						$topic_id = $latest_news[$i]['topic_moved_id'];
						$unread_topics = false;
					}
					else
					{
						$unread_topics = (isset($topic_tracking_info[$topic_id]) && $latest_topics[$i]['topic_last_post_time'] > $topic_tracking_info[$topic_id]) ? true : false;
					}
				}
				else
				{
					$unread_topics = false;
				}
				$shownew = $unread_topics;
			}
			else
			{
				$unread_topics = false;
				$shownew = true;
			}

			$topic_date_time = $user->format_date($latest_topics[$i]['topic_time']);

			$bullet_full = $bullet_pre . ( ( $shownew && $recent_show_new_bullets ) ? '_new' : '_old' );

			$bullet_src = $bullet_pre . ( ( $shownew && $recent_show_new_bullets ) ? '_new_src' : '_old_src' );

			$newest_code = ( $unread_topics && $recent_show_new_bullets ) ? '&view=newest' : '';
				
			$last_post_time = $user->format_date($latest_topics[$i]['topic_last_post_time']);

			$topic_poster = get_username_string('username', $latest_topics[$i]['topic_poster'], $latest_topics[$i]['topic_first_poster_name'], $latest_topics[$i]['topic_first_poster_colour']);
			$topic_poster_color = get_username_string('colour', $latest_topics[$i]['topic_poster'], $latest_topics[$i]['topic_first_poster_name'], $latest_topics[$i]['topic_first_poster_colour']);
			$topic_poster_full = get_username_string('full', $latest_topics[$i]['topic_poster'], $latest_topics[$i]['topic_first_poster_name'], $latest_topics[$i]['topic_first_poster_colour']);

			$last_poster = get_username_string('username', $latest_topics[$i]['topic_last_poster_id'], $latest_topics[$i]['topic_last_poster_name'], $latest_topics[$i]['topic_last_poster_colour']);
			$last_poster_color = get_username_string('colour', $latest_topics[$i]['topic_last_poster_id'], $latest_topics[$i]['topic_last_poster_name'], $latest_topics[$i]['topic_last_poster_colour']);
			$last_poster_full = get_username_string('full', $latest_topics[$i]['topic_last_poster_id'], $latest_topics[$i]['topic_last_poster_name'], $latest_topics[$i]['topic_last_poster_colour']);

			if (($recent_forums_offset > 0) or ($recent_forums_offset+$recent_num_topics < $overall_total_topics))
			{
				$new_url = '<a href="' . append_sid(this_recent_url('recent_posts_offset='));
				if ($recent_forums_offset > 0) 
				{ 
					$prev_recent_url = ($recent_news_offset > 0) ? $new_url . ($recent_forums_offset-$recent_num_topics) . '&recent_news_offset=' . $recent_news_offset . '" class="th"><< Prev ' . $recent_num_topics . '</a>' : $new_url . ($recent_forums_offset-$recent_num_topics).'" class="th"><< Prev ' . $recent_num_topics . '</a>';
				}
				else 
				{ 
					$prev_recent_url = '';
				}
				if ($recent_forums_offset+$recent_num_topics < $overall_total_topics)
				{
					$next_recent_url = ($recent_news_offset > 0) ? $new_url . ($recent_forums_offset+$recent_num_topics) . '&recent_news_offset=' . $recent_news_offset . '" class="th">Next ' . $recent_num_topics . ' >></a>' : $new_url . ($recent_forums_offset+$recent_num_topics).'" class="th">Next ' . $recent_num_topics . ' >></a>';
				}
				else 
				{ 
					$next_recent_url = '';
				}
			}
			else 
			{
				$prev_recent_url = ''; 
				$next_recent_url = '';
			}
				$recent_forums_total_info = count($i);
				$template->assign_block_vars('latest_topics', array(
				'NEWEST_POST_IMG' => $$bullet_full,
				'TOPIC_FOLDER_IMG_SRC' => $$bullet_src,
				'U_LAST_POST' => append_sid( PHPBB_URL . 'viewtopic.' . $phpEx, 'f=' . $latest_topics[$i]['forum_id'] . '&t=' . $latest_topics[$i]['topic_id'] . '&p=' . $latest_topics[$i]['topic_last_post_id'] . '#p' . $latest_topics[$i]['topic_last_post_id']),
				'TOPIC_POSTS' => $latest_topics[$i]['topic_replies'],
				'TOPIC_TIME' => $topic_date_time,				
				'TOPIC_TITLE' => $latest_topics[$i]['topic_title'],
				'TOPIC_VIEWS' => $latest_topics[$i]['topic_views'],
				'TOPIC_REPLIES' => $latest_topics[$i]['topic_replies'],
				'LAST_POST_TIME' => $last_post_time,
				'LAST_POSTER' => $last_poster,
				'LAST_POSTER_COLOUR' => $last_poster_color,
				'LAST_POSTER_FULL' => $last_poster_full,
				'TOPIC_AUTHOR' => $topic_poster,
				'TOPIC_AUTHOR_COLOUR' => $topic_poster_color,
				'TOPIC_AUTHOR_FULL' => $topic_poster_full,
				'FORUM_TITLE'	=> $latest_topics[$i]['forum_name'],
				'U_VIEW_TOPIC'	=> append_sid( PHPBB_URL . 'viewtopic.' . $phpEx, 'f=' . $latest_topics[$i]['forum_id'] . '&t=' . $latest_topics[$i]['topic_id'] . $newest_code),
				'U_VIEW_FORUM'	=> append_sid( PHPBB_URL . 'viewforum.' . $phpEx, 'f=' . $latest_topics[$i]['forum_id']),
				'NEXT_URL' 	=> $next_recent_url,
				'PREV_URL'	=> $prev_recent_url,
				'S_TOPIC_GLOBAL'	=> (!$latest_topics[$i]['forum_id']) ? true : false,
				'S_TOPIC_TYPE'		=> $latest_topics[$i]['topic_type'],
				'S_USER_POSTED'	=> (!empty($latest_topics[$i]['mark_type'])) ? true : false,
				'SWITCH_RECENT_POSTS'	=> (!empty($recent_num_topics)) ? 1 : false,
				'S_HAS_POLL'		=> ($latest_topics[$i]['poll_start']) ? true : false,
				'S_POST_ANNOUNCE'	=> ($latest_topics[$i]['topic_type'] == POST_ANNOUNCE) ? true : false,
				'S_POST_GLOBAL'	=> ($latest_topics[$i]['topic_type'] == POST_GLOBAL) ? true : false,
				'S_POST_STICKY'	=> ($latest_topics[$i]['topic_type'] == POST_STICKY) ? true : false,
				'S_TOPIC_LOCKED'	=> ($latest_topics[$i]['topic_status'] == ITEM_LOCKED) ? true : false,
				'S_TOPIC_MOVED'	=> ($latest_topics[$i]['topic_status'] == ITEM_MOVED) ? true : false,
				'S_ROW_COUNT'	=> $i)
				);
		}
	}
	else
	{
		$recent_forums_total_info = 'None';
		$template->assign_block_vars('latest_topics', array(
		'BULLET' => $recent_forums_bullet_old,
		'LAST_POSTER' => 'None',
		'TOPIC_POSTER' => 'None',
		'TOPIC_AUTHOR' => 'None',
		'TOPIC_REPLIES' => '0',	
		'TOPIC_TITLE' => 'None'
		));
	}
}

if ($recent_news_total_info == 'None' && $recent_forums_total_info == 'None')
{
	$template->assign_block_vars("no_recent_news_and_recent", array());
}

$template->assign_vars(array(
	'PHPBB_URL' => PHPBB_URL, 
	'BLOCK_SIZE' => ( !empty($recent_table_width) ? $recent_table_width : '100%' )
	));


// Output page
$template->set_filenames(array(
    'body' => 'animes.html',
));

page_footer();
?>
3- Copie o conteúdo abaixo, cole-o no 2º novo arquivo PHP, salve-o como pg_personal.php, altere a codificação do arquivo para UTF-8 sem BOM e faça upload para a pasta language/pt_br:

Código: Selecionar todos

<?php

if (empty($lang) || !is_array($lang))
{
    $lang = array();
}

$lang = array_merge($lang, array(
    'RECENT_NEWS_HEAGING'        => 'ÚLTIMOS ASSUNTOS',
    'RECENT_POSTS_HEAGING'        => 'TÓPICOS RECENTES',
));

?>
4- Copie o conteúdo abaixo, cole-o no novo arquivo HTML, salve-o como animes.html e faça upload para a pasta /styles/etech_2.0.6/template:

Código: Selecionar todos

<!-- INCLUDE overall_header.html -->

<!-- BEGIN latest_news -->
     <!-- IF latest_news.S_FIRST_ROW -->
	<table class="tablebg" width="100%" cellspacing="1">
	<tr>
		<td class="cat" colspan="<!-- IF latest_news.SWITCH_RECENT_NEWS eq 2 -->7<!-- ELSE -->6<!-- ENDIF -->">
		<table width="100%" cellpadding="0" cellspacing="0" border="0">
            	  <tr>
			<td align="left">
                    	<span class="nav">{L_RECENT_NEWS_HEAGING}</span>
                	</td>
			<!-- IF latest_news.SWITCH_RECENT_NEWS eq 1 -->
			<td align="right">
                    	{latest_news.PREV_URL}&nbsp;&nbsp;{latest_news.NEXT_URL}&nbsp;&nbsp;
                	</td>
			<!-- ENDIF -->
            	  </tr>
            	</table>
                </td>
	</tr>

	<tr>
		<!-- IF S_TOPIC_ICONS -->
			<th colspan="3">&nbsp;{L_TOPICS}&nbsp;</th>
		<!-- ELSE -->
			<th colspan="2">&nbsp;{L_TOPICS}&nbsp;</th>
		<!-- ENDIF -->
		<!-- IF latest_news.SWITCH_RECENT_NEWS eq 2 -->
		<th class="thTop" height="28" align="left">
            	<table width="100%" cellpadding="0" cellspacing="0" border="0">
            	  <tr>
			<th align="right">
                    	{latest_news.PREV_URL}&nbsp;&nbsp;{latest_news.NEXT_URL}&nbsp;&nbsp;
                	</th>
            	  </tr>
            	</table>
        	</th>
		<!-- ENDIF -->
		<th>&nbsp;{L_AUTHOR}&nbsp;</th>
		<th>&nbsp;{L_REPLIES}&nbsp;</th>
		<th>&nbsp;{L_VIEWS}&nbsp;</th>
		<th>&nbsp;{L_LAST_POST}&nbsp;</th>
	</tr>
    <!-- ENDIF -->
			<!-- IF latest_news.S_TOPIC_TYPE_SWITCH eq 1 -->
				<tr>
					<td class="row3" colspan="<!-- IF S_TOPIC_ICONS -->7<!-- ELSE -->6<!-- ENDIF -->"><b class="gensmall">{L_ANNOUNCEMENTS}</b></td>
				</tr>
			<!-- ELSEIF latest_news.S_TOPIC_TYPE_SWITCH eq 0 -->
				<tr>
					<td class="row3" colspan="<!-- IF S_TOPIC_ICONS -->7<!-- ELSE -->6<!-- ENDIF -->"><b class="gensmall">{L_TOPICS}</b></td>
				</tr>
			<!-- ENDIF -->

			<tr>
				<td class="row1" width="25" align="center">{latest_news.NEWEST_POST_IMG}</td>
				<!-- IF S_TOPIC_ICONS -->
					<td class="row1" width="25" align="center"><!-- IF latest_news.TOPIC_ICON_IMG --><img src="{T_ICONS_PATH}{latest_news.TOPIC_ICON_IMG}" width="{latest_news.TOPIC_ICON_IMG_WIDTH}" height="{latest_news.TOPIC_ICON_IMG_HEIGHT}" alt="" title="" /><!-- ENDIF --></td>
				<!-- ENDIF -->
				<td class="row1">
					<!-- IF latest_news.S_UNREAD_TOPIC --><a href="{latest_news.U_NEWEST_POST}">{NEWEST_POST_IMG}</a><!-- ENDIF -->
					{latest_news.ATTACH_ICON_IMG} <!-- IF latest_news.S_HAS_POLL or latest_news.S_TOPIC_MOVED --><b>{latest_news.TOPIC_TYPE}</b> <!-- ENDIF --><a title="{L_POSTED}: {latest_news.FIRST_POST_TIME}" href="{latest_news.U_VIEW_TOPIC}" class="topictitle">{latest_news.TOPIC_TITLE}</a>
					<!-- IF latest_news.S_TOPIC_UNAPPROVED or latest_news.S_POSTS_UNAPPROVED -->
						<a href="{latest_news.U_MCP_QUEUE}">{latest_news.UNAPPROVED_IMG}</a>&nbsp;
					<!-- ENDIF -->
					<!-- IF latest_news.S_TOPIC_REPORTED -->
						<a href="{latest_news.U_MCP_REPORT}">{REPORTED_IMG}</a>&nbsp;
					<!-- ENDIF -->
					<!-- IF latest_news.PAGINATION -->
						<p class="gensmall"> [ {GOTO_PAGE_IMG}{L_GOTO_PAGE}: {latest_news.PAGINATION} ] </p>
					<!-- ENDIF -->
				</td>
				<td class="row2" width="130" align="center"><p class="topicauthor">{latest_news.TOPIC_AUTHOR_FULL}</p></td>
				<td class="row1" width="50" align="center"><p class="topicdetails">{latest_news.TOPIC_REPLIES}</p></td>
				<td class="row2" width="50" align="center"><p class="topicdetails">{latest_news.TOPIC_VIEWS}</p></td>
				<td class="row1" width="140" align="center">
					<p class="topicdetails" style="white-space: nowrap;">{latest_news.LAST_POST_TIME}</p>
					<p class="topicdetails">{latest_news.LAST_POSTER_FULL}
						<a href="{latest_news.U_LAST_POST}">{LAST_POST_IMG}</a>
					</p>
				</td>
			</tr>

		<!-- BEGINELSE -->

			<tr>
				<!-- IF S_TOPIC_ICONS -->
					<td class="row1" colspan="7" height="30" align="center" valign="middle"><span class="gen"><!-- IF not S_SORT_DAYS -->{L_NO_TOPICS}<!-- ELSE -->{L_NO_TOPICS_TIME_FRAME}<!-- ENDIF --></span></td>
				<!-- ELSE -->
					<td class="row1" colspan="6" height="30" align="center" valign="middle"><span class="gen"><!-- IF not S_SORT_DAYS -->{L_NO_TOPICS}<!-- ELSE -->{L_NO_TOPICS_TIME_FRAME}<!-- ENDIF --></span></td>
				<!-- ENDIF -->
			</tr>
    <!-- IF latest_news.S_LAST_ROW -->
	<tr align="center">
		<td class="cat" colspan="<!-- IF S_TOPIC_ICONS -->7<!-- ELSE -->6<!-- ENDIF -->">&nbsp;</td>
	</tr>
	</table>
	
    <!-- ENDIF -->
<!-- END latest_news -->
<br clear="all" />
<!-- BEGIN latest_topics -->
     <!-- IF latest_topics.S_FIRST_ROW -->
	<table class="tablebg" width="100%" cellspacing="1">
	<tr>
		<td class="cat" colspan="<!-- IF latest_topics.SWITCH_RECENT_POSTS eq 2 -->7<!-- ELSE -->6<!-- ENDIF -->">
		<table width="100%" cellpadding="0" cellspacing="0" border="0">
            	  <tr>
			<td align="left">
                    	<span class="nav">{L_RECENT_POSTS_HEAGING}</span>
                	</td>
			<!-- IF latest_topics.SWITCH_RECENT_POSTS eq 1 -->
			<td align="right">
                    	{latest_topics.PREV_URL}&nbsp;&nbsp;{latest_topics.NEXT_URL}&nbsp;&nbsp;
                	</td>
			<!-- ENDIF -->
            	  </tr>
            	</table>
                </td>
	</tr>

	<tr>
		<!-- IF S_TOPIC_ICONS -->
			<th colspan="3">&nbsp;{L_TOPICS}&nbsp;</th>
		<!-- ELSE -->
			<th colspan="2">&nbsp;{L_TOPICS}&nbsp;</th>
		<!-- ENDIF -->
		<!-- IF latest_topics.SWITCH_RECENT_POSTS eq 2 -->
		<th class="thTop" height="28" align="left">
            	<table width="100%" cellpadding="0" cellspacing="0" border="0">
            	  <tr>
			<th align="right">
                    	{latest_topics.PREV_URL}&nbsp;&nbsp;{latest_topics.NEXT_URL}&nbsp;&nbsp;
                	</th>
            	  </tr>
            	</table>
        	</th>
		<!-- ENDIF -->
		<th>&nbsp;{L_AUTHOR}&nbsp;</th>
		<th>&nbsp;{L_REPLIES}&nbsp;</th>
		<th>&nbsp;{L_VIEWS}&nbsp;</th>
		<th>&nbsp;{L_LAST_POST}&nbsp;</th>
	</tr>
    <!-- ENDIF -->
			<!-- IF latest_topics.S_TOPIC_TYPE_SWITCH eq 1 -->
				<tr>
					<td class="row3" colspan="<!-- IF S_TOPIC_ICONS -->7<!-- ELSE -->6<!-- ENDIF -->"><b class="gensmall">{L_ANNOUNCEMENTS}</b></td>
				</tr>
			<!-- ELSEIF latest_topics.S_TOPIC_TYPE_SWITCH eq 0 -->
				<tr>
					<td class="row3" colspan="<!-- IF S_TOPIC_ICONS -->7<!-- ELSE -->6<!-- ENDIF -->"><b class="gensmall">{L_TOPICS}</b></td>
				</tr>
			<!-- ENDIF -->

			<tr>
				<td class="row1" width="25" align="center">{latest_topics.NEWEST_POST_IMG}</td>
				<!-- IF S_TOPIC_ICONS -->
					<td class="row1" width="25" align="center"><!-- IF latest_topics.TOPIC_ICON_IMG --><img src="{T_ICONS_PATH}{latest_topics.TOPIC_ICON_IMG}" width="{latest_topics.TOPIC_ICON_IMG_WIDTH}" height="{latest_topics.TOPIC_ICON_IMG_HEIGHT}" alt="" title="" /><!-- ENDIF --></td>
				<!-- ENDIF -->
				<td class="row1">
					<!-- IF latest_topics.S_UNREAD_TOPIC --><a href="{latest_topics.U_NEWEST_POST}">{NEWEST_POST_IMG}</a><!-- ENDIF -->
					{latest_topics.ATTACH_ICON_IMG} <!-- IF latest_topics.S_HAS_POLL or latest_topics.S_TOPIC_MOVED --><b>{latest_topics.TOPIC_TYPE}</b> <!-- ENDIF --><a title="{L_POSTED}: {latest_topics.FIRST_POST_TIME}" href="{latest_topics.U_VIEW_TOPIC}" class="topictitle">{latest_topics.TOPIC_TITLE}</a>
					<!-- IF latest_topics.S_TOPIC_UNAPPROVED or latest_topics.S_POSTS_UNAPPROVED -->
						<a href="{latest_topics.U_MCP_QUEUE}">{latest_topics.UNAPPROVED_IMG}</a>&nbsp;
					<!-- ENDIF -->
					<!-- IF latest_topics.S_TOPIC_REPORTED -->
						<a href="{latest_topics.U_MCP_REPORT}">{REPORTED_IMG}</a>&nbsp;
					<!-- ENDIF -->
					<!-- IF latest_topics.PAGINATION -->
						<p class="gensmall"> [ {GOTO_PAGE_IMG}{L_GOTO_PAGE}: {latest_topics.PAGINATION} ] </p>
					<!-- ENDIF -->
				</td>
				<td class="row2" width="130" align="center"><p class="topicauthor">{latest_topics.TOPIC_AUTHOR_FULL}</p></td>
				<td class="row1" width="50" align="center"><p class="topicdetails">{latest_topics.TOPIC_REPLIES}</p></td>
				<td class="row2" width="50" align="center"><p class="topicdetails">{latest_topics.TOPIC_VIEWS}</p></td>
				<td class="row1" width="140" align="center">
					<p class="topicdetails" style="white-space: nowrap;">{latest_topics.LAST_POST_TIME}</p>
					<p class="topicdetails">{latest_topics.LAST_POSTER_FULL}
						<a href="{latest_topics.U_LAST_POST}">{LAST_POST_IMG}</a>
					</p>
				</td>
			</tr>	

		<!-- BEGINELSE -->

			<tr>
				<!-- IF S_TOPIC_ICONS -->
					<td class="row1" colspan="7" height="30" align="center" valign="middle"><span class="gen"><!-- IF not S_SORT_DAYS -->{L_NO_TOPICS}<!-- ELSE -->{L_NO_TOPICS_TIME_FRAME}<!-- ENDIF --></span></td>
				<!-- ELSE -->
					<td class="row1" colspan="6" height="30" align="center" valign="middle"><span class="gen"><!-- IF not S_SORT_DAYS -->{L_NO_TOPICS}<!-- ELSE -->{L_NO_TOPICS_TIME_FRAME}<!-- ENDIF --></span></td>
				<!-- ENDIF -->
			</tr>
    <!-- IF latest_news.S_LAST_ROW -->
	<tr align="center">
		<td class="cat" colspan="<!-- IF S_TOPIC_ICONS -->7<!-- ELSE -->6<!-- ENDIF -->">&nbsp;</td>
	</tr>
	</table>
    <!-- ENDIF -->
<!-- END latest_topics -->
<br clear="all" />
5- Limpe o cache do Fórum e acesse o endereço http://digitalrip.com.br/animes.php para ver o resultado.

OBS: No começo do 1º novo arquivo PHP, na linha $recent_news_forum_id = '3';, o número "3" deve ser substituído pelo número que corresponderá ao id do fórum "Animes".

Abraço. Imagem
[DICA] Antes de abrir um Novo Tópico, procure saber se a sua dúvida já foi respondida. Pesquise no Google por palavras(em inglês também) relacionadas à ela, somado à palavra "phpbb".
Krunsher
Novato
Novato
Mensagens: 121
Registrado em: 02 Fev 2012, 20:58

Re: Dificuldade na listagem de topicos em página externa

Mensagem por Krunsher »

Eu ia tentar aqui, mas parece que o link do [ABD] Last News and Messages tá OFF robra. Você teria ele?
Obrigado man!
Avatar do usuário
robra
Membro Sênior
Membro Sênior
Mensagens: 6065
Registrado em: 02 Dez 2010, 22:29

Re: Dificuldade na listagem de topicos em página externa

Mensagem por robra »

Krunsher escreveu:Eu ia tentar aqui, mas parece que o link do [ABD] Last News and Messages tá OFF robra. Você teria ele?
Obrigado man!
Segue o link : http://www.4shared.com/zip/KkYvoWGY/Las ... sages.html

Abraço. Imagem
[DICA] Antes de abrir um Novo Tópico, procure saber se a sua dúvida já foi respondida. Pesquise no Google por palavras(em inglês também) relacionadas à ela, somado à palavra "phpbb".
Avatar do usuário
robra
Membro Sênior
Membro Sênior
Mensagens: 6065
Registrado em: 02 Dez 2010, 22:29

Re: Dificuldade na listagem de topicos em página externa

Mensagem por robra »

Editei o conteúdo do item 2 da mensagem viewtopic.php?f=147&t=45937&p=275552#p275552 para facilitar mais a configuração e para aparecer os ícones na página.

Abraço. Imagem
[DICA] Antes de abrir um Novo Tópico, procure saber se a sua dúvida já foi respondida. Pesquise no Google por palavras(em inglês também) relacionadas à ela, somado à palavra "phpbb".
Krunsher
Novato
Novato
Mensagens: 121
Registrado em: 02 Fev 2012, 20:58

Re: Dificuldade na listagem de topicos em página externa

Mensagem por Krunsher »

Opa robra.. Fiz como você falou , mas ta dando um erro, dá uma olhada:

http://digitalrip.com.br/animes.php

Primeiro aparece a tela de login com as letras enormes e depois q a pessoa se loga, dá o erro.. :S
Trancado