Page 1 of 2

phpbb Displaying topics from external pages

Posted: Sun Apr 11, 2010 11:17 am
by Mary17
Hey there,

So I followed wht's on your article here: http://www.cricketmx.com/articles/read/ ... in-phpbb3/

I use frontpage to edit the my webpages and then pass it to php, and it worked fine.

But then I wanted to display the topics on a different layer, and it gives me the following error, as you can see here: http://7cr9.com/home.php

What should I do?

I hope I had made myself clear.

Thanks in advance,
Mary

Re: phpbb Displaying topics from external pages

Posted: Sun Apr 11, 2010 12:39 pm
by battye
You are talking about these errors I take it? "phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started a..."

This is normally quite an easy sort of thing to fix (usually just requires moving a few pieces of code around). Are you able to paste the code for that whole page here (or at least the areas related to the php)? What I think has happened is Frontpage has interfered a little bit - don't worry though, as I said it should be easy to fix.

Re: phpbb Displaying topics from external pages

Posted: Sun Apr 11, 2010 2:48 pm
by Mary17
Ok, now it doenst give me that error anymore...

I was trying to fix it by myself, so I added this code on the top of my page:

<?
define('IN_PHPBB', true);
$phpbb_root_path = './forum/'; // Path to phpbb folder
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);

// Start session management
$user->session_begin();
$auth->acl($user->data);

// Grab user preferences
$user->setup();
?>

------------------------------------------------
And this code where I want the topics to appear:
<?
/*** phpBB3 - Last Active Topics System ***/
//Show last x topics
define('TOPICS_LIMIT',10);

// Create arrays
$topics = array();

// Get forums that current user has read rights to.
$forums = array_unique(array_keys($auth->acl_getf('f_read', true)));

// Get active topics.
$sql="SELECT *
FROM " . TOPICS_TABLE . "
WHERE topic_approved = '1' AND " . $db->sql_in_set('forum_id', $forums) . "
ORDER BY topic_last_post_time DESC";
$result = $db->sql_query_limit($sql,TOPICS_LIMIT);
while ($r = $db->sql_fetchrow($result))
{
$topics[] = $r;
}
$db->sql_freeresult($result);
?>
<div>
<?

foreach($topics as $t)
{
// Get folder img, topic status/type related information
$topic_tracking_info = get_complete_topic_tracking($t['forum_id'], $t['topic_id']);
$unread_topic = (isset($topic_tracking_info[$t['topic_id']]) && $t['topic_last_post_time'] > $topic_tracking_info[$t['topic_id']]) ? true : false;
$folder_img = $folder_alt = $topic_type = '';
topic_status($t, $t['topic_replies'], $unread_topic, $folder_img, $folder_alt, $topic_type);

// output the link
?>
<img style="vertical-align: text-bottom" src="<?=$user->img($folder_img, $folder_alt, false, '', 'src');?>" title="<?=$user->lang[$folder_alt];?>" alt="<?=$user->lang[$folder_alt];?>" />
<a href="<?=$phpbb_root_path . 'viewtopic.php?f=' . $t['forum_id'] . '&t=' . $t['topic_id'] . '&p=' . $t['topic_last_post_id'] . '#p' . $t['topic_last_post_id'];?>"><?=html_entity_decode($t['topic_title']);?></a><br />
<?
}
?>
</div>

-------------------------------------------------------------------

I use Frontpage to edit my webpages, so a created a home.php page from scratch, without nothing elese but thhis code, and it functioned perfectly, you can check it here: http://7cr9.com/home.php

But then I tries to include it on my actual Home page, but it is written in HTML, and then almost all teh stuff disappeared, but the link to the forum remains (below the chatbox) you can check it here: http://7cr9.com/exp1.php

My question is how can I integrate this code on a separate layer on frontpage without getting teh error I got here: http://7cr9.com/exp1.php ?

I read in some forum about using ssi to convert php to html or something like that...?

I'm very confused as you may have noticed, hope you have understood.

thanks for your time,
Mary

Re: phpbb Displaying topics from external pages

Posted: Sun Apr 11, 2010 3:26 pm
by battye
I actually get errors on both of those pages you linked to, so I don't think it is functioning perfectly on either?

Is this the first few lines of the file:

Code: Select all

<?
define('IN_PHPBB', true);
$phpbb_root_path = './forum/'; // Path to phpbb folder
$phpEx = substr(strrchr(__FILE__, '.'), 1);
ie. there is absolutely nothing above that?

Re: phpbb Displaying topics from external pages

Posted: Sun Apr 11, 2010 3:54 pm
by Mary17
Here is the full html code from home.php

Code: Select all

<html>
<?
    define('IN_PHPBB', true);
    $phpbb_root_path = './forum/'; // Path to phpbb folder
    $phpEx = substr(strrchr(__FILE__, '.'), 1);
    include($phpbb_root_path . 'common.' . $phpEx);
    include($phpbb_root_path . 'includes/functions_display.' . $phpEx);

    // Start session management
    $user->session_begin();
    $auth->acl($user->data);

    // Grab user preferences
    $user->setup();
?>
 
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Nova pagina 1</title>
</head>

<body>

<div style="position: absolute; width: 302px; height: 309px; z-index: 1; left: 536px; top: 195px" id="camada1">
&nbsp;<?  
    /*** phpBB3 - Last Active Topics System ***/
    //Show last x topics
    define('TOPICS_LIMIT',10);

    // Create arrays
    $topics = array();
    
    // Get forums that current user has read rights to.
    $forums = array_unique(array_keys($auth->acl_getf('f_read', true)));
    
    // Get active topics.
    $sql="SELECT *
    FROM " . TOPICS_TABLE . "
    WHERE topic_approved = '1' AND " . $db->sql_in_set('forum_id', $forums) . "
    ORDER BY topic_last_post_time DESC";
    $result = $db->sql_query_limit($sql,TOPICS_LIMIT);
    while ($r = $db->sql_fetchrow($result))
    {
        $topics[] = $r;
    }
   $db->sql_freeresult($result);
?>
<div>
<?
        
    foreach($topics as $t)
    {
        // Get folder img, topic status/type related information
        $topic_tracking_info = get_complete_topic_tracking($t['forum_id'], $t['topic_id']);
        $unread_topic = (isset($topic_tracking_info[$t['topic_id']]) && $t['topic_last_post_time'] > $topic_tracking_info[$t['topic_id']]) ? true : false;
        $folder_img = $folder_alt = $topic_type = '';
        topic_status($t, $t['topic_replies'], $unread_topic, $folder_img, $folder_alt, $topic_type);
        
        // output the link
        ?>
            <img style="vertical-align: text-bottom" src="<?=$user->img($folder_img, $folder_alt, false, '', 'src');?>" title="<?=$user->lang[$folder_alt];?>" alt="<?=$user->lang[$folder_alt];?>" />
            <a href="<?=$phpbb_root_path . 'viewtopic.php?f=' . $t['forum_id'] . '&t=' . $t['topic_id'] . '&p=' . $t['topic_last_post_id'] . '#p' . $t['topic_last_post_id'];?>"><?=html_entity_decode($t['topic_title']);?></a><br />
    <?
    }
    ?>
</div> </div>

</body>

</html>
-------------------------------------------

and teh code for exp1.php

Code: Select all

<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns="http://www.w3.org/TR/REC-html40">
<?
    define('IN_PHPBB', true);
    $phpbb_root_path = './forum/'; // Path to phpbb folder
    $phpEx = substr(strrchr(__FILE__, '.'), 1);
    include($phpbb_root_path . 'common.' . $phpEx);
    include($phpbb_root_path . 'includes/functions_display.' . $phpEx);

    // Start session management
    $user->session_begin();
    $auth->acl($user->data);

    // Grab user preferences
    $user->setup();
?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="verify-v1" content="rIWTFpQLuOArySY8IOB8fkfbi9xD7kCgfKc43/tC2xE=" />
<title>7CR9, site fãs de Cristiano Ronaldo CR9 /7 (Cristiano Ronaldo fansite)</title>
<script language="JavaScript">
<!--
// --><script type="text/javascript" src="http://www.haloscan.com/load/mariamsr"> </script>
</script>
<style>
<!--
.ms-simple1-main { border-left-style: none; border-right-style: none; 
               border-top: 1.5pt solid green; border-bottom: 1.5pt solid green }
.ms-simple1-tl { border-left-style: none; border-right-style: none; border-top-style: none; 
               border-bottom: .75pt solid green }
.ms-simple1-left { border-style: none }
.ms-simple1-top { border-left-style: none; border-right-style: none; border-top-style: none; 
               border-bottom: .75pt solid green }
.ms-simple1-even { border-style: none }
-->
</style>
</head>
<meta name="verify-v1" content="eFju5IN4adFN1ySnXJW/xJuer91o13rkr2qn3VmL7wY=" />
<body>

<div style="border:3px double #000000; position: absolute; width: 943px; height: 23px; z-index: 4; left: 25px; top: 577px; visibility:visible; background-color:#000000" id="camada4">
	<div style="position: absolute; width: 227px; height: 964px; z-index: 1; left: 782px; top: 94px; background-color:#FFFFFF; background-image:url('../7cr9/Coluna%20Direita.jpeg')" id="camada17">
		<div style="position: absolute; width: 111px; height: 100px; z-index: 9; left: 129px; top: -72px" id="camada51">
			<div style="position: absolute; width: 100px; height: 99px; z-index: 1; left: -126px; top: 1458px" id="camada52">
&nbsp;<?  
    /*** phpBB3 - Last Active Topics System ***/
    //Show last x topics
    define('TOPICS_LIMIT',10);

    // Create arrays
    $topics = array();
    
    // Get forums that current user has read rights to.
    $forums = array_unique(array_keys($auth->acl_getf('f_read', true)));
    
    // Get active topics.
    $sql="SELECT *
    FROM " . TOPICS_TABLE . "
    WHERE topic_approved = '1' AND " . $db->sql_in_set('forum_id', $forums) . "
    ORDER BY topic_last_post_time DESC";
    $result = $db->sql_query_limit($sql,TOPICS_LIMIT);
    while ($r = $db->sql_fetchrow($result))
    {
        $topics[] = $r;
    }
   $db->sql_freeresult($result);
?>
<div>
<?
        
    foreach($topics as $t)
    {
        // Get folder img, topic status/type related information
        $topic_tracking_info = get_complete_topic_tracking($t['forum_id'], $t['topic_id']);
        $unread_topic = (isset($topic_tracking_info[$t['topic_id']]) && $t['topic_last_post_time'] > $topic_tracking_info[$t['topic_id']]) ? true : false;
        $folder_img = $folder_alt = $topic_type = '';
        topic_status($t, $t['topic_replies'], $unread_topic, $folder_img, $folder_alt, $topic_type);
        
        // output the link
        ?>
            <img style="vertical-align: text-bottom" src="<?=$user->img($folder_img, $folder_alt, false, '', 'src');?>" title="<?=$user->lang[$folder_alt];?>" alt="<?=$user->lang[$folder_alt];?>" />
            <a href="<?=$phpbb_root_path . 'viewtopic.php?f=' . $t['forum_id'] . '&t=' . $t['topic_id'] . '&p=' . $t['topic_last_post_id'] . '#p' . $t['topic_last_post_id'];?>"><?=html_entity_decode($t['topic_title']);?></a><br />
    <?
    }
    ?>
</div></div>
			<b><font color="#FF6600" face="Arial" size="2">Em reconstrução</font></b></div>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		<b><i>
		<font face="Arial" size="2" color="#FFFFFF">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font></i></b>
		</p>
		<div style="position: absolute; width: 197px; height: 259px; z-index: 1; left: 18px; top: 50px" id="camada34">
		<p style="margin-top: 0; margin-bottom: 0">
		<b><span style="background-color: #000000"><i>
		<font face="Arial" size="2" color="#FFFFFF">Vídeos </font></i></span>
		<font face="Arial" color="#FFFFFF" size="2">
		<span style="background-color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		</span> </font></b></p>
		<p style="margin-top: 0; margin-bottom: 0">
		<b><font face="Arial" color="#800000">- </font>
		<font face="Arial" size="2">Making of anúncio BES "I Gotta Feeling" TVI</font></b></p>
		<p style="margin-top: 0; margin-bottom: 0">
		<b><font face="Arial" color="#800000">- </font>
		<font face="Arial" size="2">Entrevista exclusiva TVI 9/4/10</font></b></p>
		<p style="margin-top: 0; margin-bottom: 0">
		<b><font face="Arial" color="#800000">- </font>
		<font face="Arial" size="2">Novo anúncio BES 9/4/10</font></b></p>
		<p style="margin-top: 0; margin-bottom: 0">
		<b><font face="Arial" color="#800000">- </font>
		<font face="Arial" size="2">Conf.imprensa 8/4/10</font></b></p>
		<p style="margin-top: 0; margin-bottom: 0">
		<b><font face="Arial" color="#800000">- </font>
		<font size="2" face="Arial">Racing Santander vs CR</font></b></p>
		<p style="margin-top: 0; margin-bottom: 0">
		<b><font face="Arial" color="#800000">- </font>
		<font face="Arial" size="2">CR vs Atlético Madrid</font></b></p>
		<p style="margin-top: 0; margin-bottom: 0">
		<b><font face="Arial" color="#800000">- </font>
		<font face="Arial" size="2">Getafe vs CR</font></b></p>
		<p style="margin-top: 0; margin-bottom: 0">
		<b><font face="Arial" color="#800000">- </font>
		<font face="Arial" size="2">CR vs Sporting Gijón</font></b></p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
			<p>&nbsp;</div>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<div style="position: absolute; width: 199px; height: 235px; z-index: 2; left: 16px; top: 277px" id="camada35">
			<p style="margin-top: 0; margin-bottom: 0">
		<span style="background-color: #000000"><b><i>
		<font face="Arial" size="2" color="#FFFFFF">Galeria&nbsp; </font></i>
		</b></span><b><span style="background-color: #000000"><i>
		<font face="Arial" size="2" color="#FFFFFF">&nbsp;</font></i></span><font face="Arial" color="#FFFFFF" size="2"><span style="background-color: #000000">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
		&nbsp;&nbsp;&nbsp; </span></font></b></p>
			<p style="margin-top: 0; margin-bottom: 0">
		<b><font face="Arial" size="2" color="#800000"><i>- </i></font>
		<font face="Arial" size="2">Real Madrid 1-0 Lyon </font></b>
		<font face="Arial" size="2">(jogos Real Madrid 09/10)</font></p>
			<p style="margin-top: 0; margin-bottom: 0">
		<b><i><font face="Arial" size="2" color="#800000">- </font></i>
		<font face="Arial" size="2">Treino 8, 9 e 12 Março </font></b>
		<font face="Arial" size="2">(treinos Real Madrid 09/10)</font></p>
			<p style="margin-top: 0; margin-bottom: 0">
		<b><font face="Arial" size="2" color="#800000"><i>- </i></font>
		<font face="Arial" size="2">Conf.imprensa 8-3-10 </font></b>
		<font face="Arial" size="2">(conf.imprensa)</font></p>
			<p style="margin-top: 0; margin-bottom: 0">
		<b><i><font face="Arial" size="2" color="#800000">- </font></i>
		<font face="Arial" size="2">Apresentação Bilhetes Final Champions League
		</font></b><font face="Arial" size="2">(variados)</font></p>
			<p style="margin-top: 0; margin-bottom: 0">
		<b><i><font face="Arial" size="2" color="#800000">- </font></i>
		<font face="Arial" size="2">Portugal 2-0 China </font></b>
		<font face="Arial" size="2">(jogos Selecção Nacional Qualificação 
		Mundial2010)</font></p>
			<p style="margin-top: 0; margin-bottom: 0">
		<b><font face="Arial" size="2" color="#800000"><i>- </i></font>
		<font face="Arial" size="2">Treino 2 Março (</font></b><font face="Arial" size="2">treinos 
		Selecção Nacional qualificação Mundial2010)</font></p>
			<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
			<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
			<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
			<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
			<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
			<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
			<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
			<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
			<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
			<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
			<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
			<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
			<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
			<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
			<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
			<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
			<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
			<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
			<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
			<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
			<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
			<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
			<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
			<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
			<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
			<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
			<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
			<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
			<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
			<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0">
		&nbsp;</p>
		</div>
		<div style="position: absolute; width: 194px; height: 100px; z-index: 4; left: 22px; top: 548px" id="camada37">
<table border="1" width="98%" id="table3">
	<tr>
		<td width="65" align="center">&nbsp;</td>
		<td width="20" align="center"><b>
		<font face="Arial" size="2">J</font></b></td>
		<td width="22" align="center"><b>
		<font face="Arial" size="2">G</font></b></td>
		<td align="center" width="22"><b>
		<font face="Arial" size="2">A</font></b></td>
		<td align="center"><b><font size="2" face="Arial">Total 
		G</font></b></td>
	</tr>
	<tr>
		<td width="65" align="left"><b>
		<font face="Arial" size="2">La Liga</font></b></td>
		<td width="20" align="center"><b><font face="Arial" size="2">21</font></b></td>
		<td width="22" align="center"><b><font face="Arial" size="2">18</font></b></td>
		<td align="center" width="22"><b><font face="Arial" size="2">4</font></b></td>
		<td align="center"><b><font face="Arial" size="2">18</font></b></td>
	</tr>
	<tr>
		<td width="65" align="left"><b><font face="Arial" size="2">Champions 
		League</font></b></td>
		<td width="20" align="center"><b><font face="Arial" size="2">6</font></b></td>
		<td width="22" align="center"><b><font face="Arial" size="2">7</font></b></td>
		<td align="center" width="22"><font face="Arial" size="2"><b>0</b></font></td>
		<td align="center"><b><font face="Arial" size="2">7</font></b></td>
	</tr>
	<tr>
		<td width="65" align="left">
		<b><font face="Arial" size="2">Copa del Rey</font></b></td>
		<td width="20" align="center"><b>´0</b></td>
		<td width="22" align="center"><b>0</b></td>
		<td align="center" width="22"><b>0</b></td>
		<td align="center"><b>0</b></td>
	</tr>
	<tr>
		<td width="65" align="left"><b>
		<font face="Arial" size="2">Portugal</font></b></td>
		<td width="20" align="center"><b>4</b></td>
		<td width="22" align="center"><b>0</b></td>
		<td align="center" width="22"><b>2</b></td>
		<td align="center"><b>0</b></td>
	</tr>
	<tr>
		<td width="65" align="left"><b>
		<font face="Arial" size="2">Pré-época RealMadrid</font></b></td>
		<td width="20" align="center"><b><font face="Arial" size="2">9</font></b></td>
		<td width="22" align="center"><b><font face="Arial" size="2">3</font></b></td>
		<td align="center" width="22"><b>
		<font face="Arial" size="2">0</font></b></td>
		<td align="center"><b><font face="Arial" size="2">3</font></b></td>
	</tr>
	</table>
		<p style="margin-top: 0; margin-bottom: 0">&nbsp;</p>
		</div>
		<p style="margin-top: 0; margin-bottom: 0">&nbsp;</p>
		<p style="margin-top: 0; margin-bottom: 0"><b>
		<font face="Arial" size="2" color="#FFFFFF">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		</font></b></p>
		<div style="position: absolute; width: 197px; height: 100px; z-index: 3; left: 18px; top: 793px" id="camada36">
<table border="1" width="89%" id="table2">
	<tr>
		<td width="104" align="center">&nbsp;</td>
		<td width="18" align="center"><b>
		<font face="Arial" size="2">J</font></b></td>
		<td width="27" align="center"><b>
		<font face="Arial" size="2">Pts</font></b></td>
	</tr>
	<tr>
		<td width="104" align="left"><font face="Arial" size="2"><b>1.</b></font><b><font face="Arial" size="2">REALMADRID</font></b></td>
		<td width="18" align="center"><font size="2"><b>29</b></font></td>
		<td width="27" align="center"><b><font face="Arial" size="2">74</font></b></td>
	</tr>
	<tr>
		<td width="104" align="left" height="22"><b><font face="Arial" size="2">
		2.BarcelonaFC</font></b></td>
		<td width="18" align="center" height="22">
		<font size="2"><b>29</b></font></td>
		<td width="27" align="center" height="22">
		<font size="2"><b>74</b></font></td>
	</tr>
	<tr>
		<td width="104" align="left"><b><font face="Arial" size="2">3. Valencia 
		CF</font></b></td>
		<td width="18" align="center"><font size="2"><b>29</b></font></td>
		<td width="27" align="center"><font size="2"><b>53</b></font></td>
	</tr>
	<tr>
		<td width="104" align="left"><b><font face="Arial" size="2">4. 
		RCD Mallorca</font></b></td>
		<td width="18" align="center"><b><font face="Arial" size="2">29</font></b></td>
		<td width="27" align="center"><b><font face="Arial" size="2">47</font></b></td>
	</tr>
	</table>
		</div>
		</div>
	<marquee bgcolor="#FFFFFF" style="font-family: Arial">Prox Jogo: 10 Abril Real Madrid vs Barcelona FC (21:00 hora Portugal) -- Racing Santander 0-2 Real Madrid (1 golo de Ronaldo!) ---Videos para download: Making of anúncio BES "I Gotta Feeling" TVI; Entrevista exclusiva TVI 9/4/10; Novo anúncio BES 9/4/10; Conf.imprensa 8/4/10; Racing Santander vs CR: Getafe vs CR</marquee></div>

<div style="border-style:outset; border-color:#C0C0C0; position: absolute; width: 230px; height: 408px; z-index: 9; left: 811px; top: 1641px" id="camada19">
<!-- BEGIN CBOX - http://www.cbox.ws - v001 -->
<div id="cboxdiv" style="text-align: center; line-height: 0">
<div><iframe frameborder="0" width="200" height="305" src="http://www6.cbox.ws/box/?boxid=403066&boxtag=ylw2vt&sec=main" marginheight="2" marginwidth="2" scrolling="auto" allowtransparency="yes" name="cboxmain" style="border:#DBE2ED 1px solid;" id="cboxmain"></iframe></div>
<div><iframe frameborder="0" width="200" height="75" src="http://www6.cbox.ws/box/?boxid=403066&boxtag=ylw2vt&sec=form" marginheight="2" marginwidth="2" scrolling="no" allowtransparency="yes" name="cboxform" style="border:#DBE2ED 1px solid;border-top:0px" id="cboxform"></iframe></div>
</div>
<!-- END CBOX --></div></div>

<p align="center">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</p>

<div style="position: absolute; width: 845px; height: 100px; z-index: 11; left: 95px; top: 18px" id="camada23">
	<img border="0" src="../7cr9/Principal.jpeg" width="851" height="546"></div>

<div style="position: absolute; width: 203px; height: 1416px; z-index: 2; left: 2px; top: 674px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px; background-color: #FFFFFF; visibility:visible; background-image:url('../7cr9/Barra%20Esquerda.jpeg')" id="camada2">
<p style="margin-top: 0; margin-bottom: 0" align="center">
<i><u>
<font face="Arial">&nbsp;</font></u></i></p>
<div style="position: absolute; width: 608px; height: 12715px; z-index: 3; left: 191px; top: 1417px; border-left-style: solid; border-left-width: 1px; border-right-style: outset; border-right-width: 1px; border-bottom-style: outset; border-bottom-width: 1px; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px" id="camada50">
&nbsp;</div>
<div style="position: absolute; width: 601px; height: 14129px; z-index: 4; left: 197px; top: -1px; visibility:visible" id="camada26">
	<div style="position: absolute; width: 1085px; height: 58px; z-index: 2; left: -191px; top: -72px" id="camada27">
		<a href="http://7cr9.com/Home.php">
		<img border="0" src="../7cr9/Home%20menu.jpeg" width="128" height="66"></a><a href="Sobre%20ele.htm"><img border="0" src="../7cr9/Sobre%20Ele%20menu.jpeg" width="125" height="64"></a><a href="Noticias.htm"><img border="0" src="../7cr9/Noticias%20menu.jpeg" width="128" height="67"></a><a href="Videos.htm"><img border="0" src="../7cr9/Videos%20menu.jpeg" width="134" height="69"></a><a href="http://7cr9gallery.co.cc/Gallery/index.php"><img border="0" src="../7cr9/Galeria%20menu.jpeg" width="139" height="72"></a><a href="Chat.htm"><img border="0" src="../7cr9/Chat%20menu.jpeg" width="137" height="73"></a><a href="Sobreosite.htm"><img border="0" src="../7cr9/Sobre%20o%20site.jpeg" width="128" height="71"></a><a href="http://7cr9.com/forum/"><img border="0" src="../7cr9/Forum.menu.jpeg" width="123" height="69"></a></div>
	<p align="center">
	<img border="0" src="../7cr9/Ultimas%20Noticias.JPG" width="328" height="68"><p align="center">
	<font face="Arial">&nbsp;<?PHP
$number=12;
$only_active=TRUE;
include("/home/crcom/public_html/cutenews/show_news.php");
?></font><div style="position: absolute; width: 522px; height: 100px; z-index: 3; left: 43px; top: 14163px" id="camada32" align="center">
		<font face="Arial" size="2"><font color="#666666"><u>7</u></font><a href="http://www.7cr9.com"><font color="#666666">CristianoRonaldo9 
		- 7cr9.com</font></a><font color="#666666"> © 2009 - Webhost:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
		- </font><a href="mailto:mary17.7cr9@gmail.com"><font color="#666666">
		Contactar 7CR9</font></a></font><div style="position: absolute; width: 91px; height: 47px; z-index: 1; left: 310px; top: -15px" id="camada33">
			&nbsp;</div>
		<p align="center"><font face="Arial" size="2" color="#666666">7CR9 não é 
		o site oficial do Cristiano Ronaldo, e não tenho qualquer contacto com o 
		jogador, familiares ou amigos. </font> </div>
	</div>
<p style="margin-top: 0; margin-bottom: 0">
<font size="5" face="Pristina">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font>
</p>
<p style="margin-top: 0; margin-bottom: 0">
&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0">
&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0">
&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0">
&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0">
&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0">
<font face="Pristina" size="2">&nbsp;</font></p>
<p style="margin-top: 0; margin-bottom: 0" align="center">
<b>
<i><u>
<font face="Arial">XMaryX17X&nbsp;</font></u></i></b></p>
<p style="margin-top: 0; margin-bottom: 0">
&nbsp;&nbsp; ______________________</p>
<p style="margin-top: 0; margin-bottom: 0">
<font face="Arial" size="2"><b>&nbsp;&nbsp;&nbsp;&nbsp; </b> </font></p>
<div style="position: absolute; width: 101px; height: 23px; z-index: 12; left: 13px; top: 207px" id="camada49">
	<b><font face="Arial" size="2">7CR9 promo!</font></b></div>
<div style="position: absolute; width: 100px; height: 100px; z-index: 5; left: 28px; top: 383px" id="camada38">
<object width="155" height="125"><param name="movie" value="http://www.youtube.com/v/v7hS3ryG4ak&hl=pt-br&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/v7hS3ryG4ak&hl=pt-br&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="155" height="125"></embed></object>
</div>
<p style="margin-top: 0; margin-bottom: 0">
&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0">
&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0">
&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0">
&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0">
<font face="Arial" size="2">&nbsp;&nbsp; </font></p>
<p style="margin-top: 0; margin-bottom: 0">
&nbsp;</p>
<div style="position: absolute; width: 101px; height: 23px; z-index: 12; left: 31px; top: 369px" id="camada47">
	<b><font face="Arial" size="2">Everything</font></b></div>
<div style="position: absolute; width: 180px; height: 141px; z-index: 13; left: 5px; top: 223px" id="camada48">
<object width="183" height="145"><param name="movie" value="http://www.youtube.com/v/5-TjVYXfiRI&hl=pt-br&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/5-TjVYXfiRI&hl=pt-br&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="183" height="145"></embed></object></div>
<p style="margin-top: 0; margin-bottom: 0">
&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0">
&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0">
&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0">
<font face="Arial" size="2"><b>&nbsp;&nbsp;&nbsp;</b></font></p>
<div style="position: absolute; width: 140px; height: 113px; z-index: 5; left: 28px; top: 522px" id="camada39">
<object width="155" height="125"><param name="movie" value="http://www.youtube.com/v/9dbWcSxIPxA&hl=en&fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/9dbWcSxIPxA&hl=en&fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="155" height="125"></embed></object>
</div>
<div style="position: absolute; width: 100px; height: 19px; z-index: 11; left: 30px; top: 508px" id="camada46">
	<b><font face="Arial" size="2">Best of 2008</font></b></div>
<p style="margin-top: 0; margin-bottom: 0">
&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0">
&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0">
&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0">
&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0">
&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0">
&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0">
&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0">
&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0">
&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0">
&nbsp;</p>
<p class="MsoNormal" style="margin-top: 3px; margin-bottom: 3px">
&nbsp;</p>
<p class="MsoNormal" style="margin-top: 3px; margin-bottom: 3px">
&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0" align="justify">
&nbsp;</p>
<p class="MsoNormal" style="margin-top: 3px; margin-bottom: 3px">
<span style="font-weight: 700" lang="en-gb">
<font face="Arial" size="2">&nbsp;&nbsp;&nbsp;&nbsp; </font>
</span></p>
<p class="MsoNormal" style="margin-top: 3px; margin-bottom: 3px">
<span style="font-weight: 700" lang="en-gb">
<font face="Arial" color="#800000">&nbsp;&nbsp; </font></span></p>
<div style="position: absolute; width: 181px; height: 100px; z-index: 10; left: 14px; top: 676px" id="camada45">
<span style="font-weight: 700" lang="en-gb">
<font face="Arial" color="#800000">-</font><font face="Arial" size="2"> </font>
<a href="mailto:mary17.7cristianoronaldo7@gmail.com">
<font face="Arial" size="2" color="#000000">mary17.7cr9@gmail.com</font></a></span></div>
<p class="MsoNormal" style="margin-top: 3px; margin-bottom: 3px">
&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0" align="justify">
&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0" align="justify">
&nbsp;&nbsp;&nbsp; </p>
<p style="margin-top: 0; margin-bottom: 0" align="justify">
<b><font face="Arial">&nbsp; </font></b></p>
<div style="position: absolute; width: 152px; height: 100px; z-index: 9; left: 16px; top: 765px" id="camada44">
<p style="margin-top: 0; margin-bottom: 0" align="justify">
<b><font face="Arial">&nbsp;</font></b><span style="font-weight: 700" lang="en-gb"><font face="Arial" color="#800000">- </font>
</span><b><font size="2" face="Arial">
<a href="http://7cristianoronaldo9.hi5.com"><font color="#000000">Hi5&nbsp;&nbsp;</font></a></font></b><font size="2">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</font></p>
<p style="margin-top: 0; margin-bottom: 0" align="justify">
<font size="2">&nbsp;</font><span style="font-weight: 700" lang="en-gb"><font face="Arial" color="#800000">- </font>
</span><b>
<a href="http://www.facebook.com/home.php#/profile.php?id=100000146352936&ref=profile">
<font size="2" color="#000000" face="Arial">Facebook</font></a></b></p>
<p style="margin-top: 0; margin-bottom: 0" align="justify">
<span style="font-weight: 700">
<font size="2" face="Arial">&nbsp;</font></span><span style="font-weight: 700" lang="en-gb"><font face="Arial" color="#800000">- </font>
</span><b><a href="http://twitter.com/7cronaldo9">
<font size="2" color="#000000" face="Arial">Twitter</font></a></b></p>
<p style="margin-top: 0; margin-bottom: 0" align="left">
<font size="2">&nbsp;</font><span style="font-weight: 700" lang="en-gb"><font face="Arial" color="#800000">- </font>
</span><b>
<a href="http://www.orkut.com/Main#Profile.aspx?uid=7975519524822680467">
<font size="2" color="#000000" face="Arial">Orkut</font></a></b></p>
<p style="margin-top: 0; margin-bottom: 0" align="justify">
<font size="2">&nbsp;</font><span style="font-weight: 700" lang="en-gb"><font face="Arial" color="#800000">- </font>
</span><b><a href="http://www.myspace.com/492095675">
<font size="2" color="#000000" face="Arial">Myspace</font></a></b></p>
<p style="margin-top: 0; margin-bottom: 0" align="justify">
<font size="2">&nbsp;</font><span style="font-weight: 700" lang="en-gb"><font face="Arial" color="#800000">- </font>
</span><b><a href="http://www.tagged.com/7cristianoronaldo9">
<font size="2" color="#000000" face="Arial">Tagged</font></a></b></p>
	<p>&nbsp;</div>
<p style="margin-top: 0; margin-bottom: 0" align="justify">
&nbsp; </p>
<p style="margin-top: 0; margin-bottom: 0" align="justify">
&nbsp; </p>
<p style="margin-top: 0; margin-bottom: 0" align="justify">&nbsp;</p>
<p style="margin-top: 0; margin-bottom: 0" align="justify">
</p>
<div style="position: absolute; width: 176px; height: 100px; z-index: 8; left: 16px; top: 938px" id="camada43">
<p align="left" style="margin-top: 0px; margin-bottom: 0px">
<span style="font-weight: 700" lang="en-gb">
<font face="Arial" color="#800000">- </font>
</span><b><font face="Arial" size="2" color="#FFFFFF">
<a href="http://cristianoronaldo7-17.blogspot.com/"><font color="#000000">
Cristiano Ronaldo7-17 Blog</font></a></font></b></p>
<p align="left" style="margin-top: 0px; margin-bottom: 0px">
<span style="font-weight: 700" lang="en-gb">
<font face="Arial" color="#800000">- </font>
</span><b><font face="Arial" size="2" color="#FFFFFF">
<a href="http://www.xmaryx17cristianoronaldovideos.blogspot.com/">
<font color="#000000">XMaryX17 Vídeos</font></a></font></b></p>
<p align="left" style="margin-top: 0px; margin-bottom: 0px">
<span style="font-weight: 700" lang="en-gb">
<font face="Arial" color="#800000">- </font>
</span><b><font color="#FFFFFF" size="2" face="Arial">
<a href="http://br.youtube.com/profile?user=XxXMaryX17XxX">
<font color="#000000">My channel on Youtube</font></a></font></b></p>
<p align="left" style="margin-top: 0px; margin-bottom: 0px">
<b><font face="Arial" size="2">-
<a href="http://www.facebook.com/Cristiano?v=wall"><font color="#000000">
Facebook C.Ronaldo</font></a></font></b></p>
<p align="left" style="margin-top: 0px; margin-bottom: 0px">
<font face="Arial" color="#800000">
<span style="font-weight: 700" lang="en-gb">
-</span></font><span lang="en-gb"> </span><b>
<font face="Arial" size="2" color="#FFFFFF">
<a href="http://www.gestifute.com/gestifute/index_mundial.html">
<font color="#000000">Gestifute</font></a></font></b></p>
<p align="left" style="margin-top: 0px; margin-bottom: 0px">
<span style="font-weight: 700" lang="en-gb">
<font face="Arial" color="#800000">- </font>
</span><b><font face="Arial" size="2" color="#FFFFFF">
<a href="http://www.fpf.pt/portal/page/portal/PORTAL_FUTEBOL">
<font color="#000000">FPF</font></a></font></b></p>
<p align="left" style="margin-top: 0px; margin-bottom: 0px">
<span style="font-weight: 700" lang="en-gb">
<font face="Arial" color="#800000">- </font>
</span><b><u>
<font face="Arial" size="2">
<a href="http://www.realmadrid.com/cs/Satellite/es/Home.htm">
<font color="#000000">Real MadridFC Official Site</font></a></font></u></b></p>
	<p>&nbsp;</div>
<p align="left" style="margin-top: 0px; margin-bottom: 0px">
<font face="Arial" size="2">&nbsp;&nbsp; </font></p>
<p align="left" style="margin-top: 0px; margin-bottom: 0px">
&nbsp;</p>
<p align="left" style="margin-top: 0px; margin-bottom: 0px">
&nbsp;</p>
<p align="left" style="margin-top: 0; margin-bottom: 0">
<font color="#000000" face="Arial" size="2">&nbsp;&nbsp; </font></p>
<p align="left" style="margin-top: 0; margin-bottom: 0">
<span style="font-weight: 700" lang="en-gb">
<font face="Arial" color="#800000">&nbsp;&nbsp;</font></span></p>
<div style="position: absolute; width: 176px; height: 100px; z-index: 7; left: 13px; top: 1121px" id="camada42">
<p align="left" style="margin-top: 0; margin-bottom: 0">
<span style="font-weight: 700" lang="en-gb">
<font face="Arial" color="#800000">&nbsp;- </font>
</span><font face="Arial" size="2" color="#FFFFFF">
<b><a href="http://www.ronaldofan.com/"><font color="#000000">Ronaldo Você É Bonito</font></a></b></font></p>
<p align="left" style="margin-top: 0; margin-bottom: 0">
<b>
<font color="#000000" size="2" face="Arial">&nbsp;</font><font color="#800000" face="Arial">- </font>
<font color="#000000" size="2" face="Arial">
<a href="http://cristiano-ronaldo.us/"><font color="#000000">CristianoRonaldo.us</font></a></font></b></p>
<p align="left" style="margin-top: 0; margin-bottom: 0">
<span style="font-weight: 700" lang="en-gb">
<font face="Arial" color="#800000">&nbsp;- </font>
<a href="http://www.cr9brasil.blogspot.com/">
<font color="#000000" size="2" face="Arial">CR9 Brasil</font><font color="#000000" face="Arial">&nbsp;</font></a></span></p>
<p align="left" style="margin-top: 0; margin-bottom: 0">
<span style="font-weight: 700" lang="en-gb"><font face="Arial">
<font color="#800000">&nbsp;-</font> <font size="2">
<a href="http://everythingcr7.netne.net/"><font color="#000000">EverythingCR7</font></a></font></font></span></p>
<p align="left" style="margin-top: 0; margin-bottom: 0">
<span style="font-weight: 700" lang="en-gb">
<font face="Arial" color="#800000">&nbsp;- </font>
</span><b><font face="Arial" color="#FFFFFF">
<u>
<a href="http://davidluiz-23.blogspot.com/"><font color="#000000" size="2">David 
Luiz 23*</font></a></u></font></b></p>
<p align="left" style="margin-top: 0; margin-bottom: 0">
<b>
<font color="#000000" size="2" face="Arial">&nbsp;</font></b><span style="font-weight: 700" lang="en-gb"><font face="Arial" color="#800000">- </font>
</span><b><font color="#FFFFFF" face="Arial">
<a href="http://lucascr7futebolmundial.blogspot.com/">
<font color="#000000" size="2">Futebol Mundial</font></a></font></b></p>
	<p>&nbsp;</div>
<p align="left" style="margin-top: 0; margin-bottom: 0">
&nbsp;</p>
<p align="left" style="margin-top: 0; margin-bottom: 0">
&nbsp;<font color="#FFFFFF"><p align="left" style="margin-top: 0; margin-bottom: 0">
&nbsp;<p align="left" style="margin-top: 0; margin-bottom: 0">
&nbsp;<!-- INICIO DO CODIGO DO CONTADOR DE VISITAS 2W.COM.BR -->
<div style="position: absolute; width: 176px; height: 100px; z-index: 6; left: 9px; top: 1279px" id="camada41">
<div align=center>
	<p style="margin-top: -4px; margin-bottom: -4px">
	<a href="http://www.2w.com.br/contador-de-visitas-acessos-gratis.html">
	<font color="#000000"><img src="http://contador.2w.com.br/imgcontador.php?p=ec637389" alt="" border=0></font></a></div>
<div align=center>
	<p style="margin-top: -4px; margin-bottom: -4px">
	<font face="Arial" size="2" color="#800000">
	Obrigada pela visita!</font></div>
<p align="center" style="margin-top: -4px; margin-bottom: -4px"><!-- INICIO CONTADOR -->
<a href='http://cifradasweb.net/' id='lnolt_' target='_blank' style='font-family:Arial;font-size:11px;font-weight:bold;text-decoration:none;'>
<font color="#000000">
<script language='JavaScript' src='http://blogutils.net/olct/online.php?site=www.7cristiano-ronaldo7.co.cc&interval=600'></script>
</font></a>
<a href='http://www.blogutils.net/' target='_blank' style='font-family:Arial;font-size:11px;font-weight:bold;text-decoration:none;'> 
<font color="#000000">online</font></a>
<!-- FIM CONTADOR -->
&nbsp;<p>&nbsp;</div>
<p align="left" style="margin-top: -3px; margin-bottom: -3px">&nbsp;<div align=center>
	<p style="margin-top: -4px; margin-bottom: -4px">
	&nbsp;</div>
<p align="left">&nbsp;</div>


<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-5774876-1");
pageTracker._trackPageview();
</script>
</font>
</body>

</html>
----------------------------------------------------------

Is there something wrong?

Thanks ,
Mary

Re: phpbb Displaying topics from external pages

Posted: Mon Apr 12, 2010 3:05 pm
by battye
I looked at your site again and the errors are not there any more. Did you fix it?

Re: phpbb Displaying topics from external pages

Posted: Mon Apr 12, 2010 7:07 pm
by Mary17
No, I didn't do anything... But do you know hoe to integrate this code into frontpage?

Because I get error, like it is seen on www.7cr9.com/exp1.php

Thanks,
mary

Re: phpbb Displaying topics from external pages

Posted: Wed Apr 14, 2010 4:17 pm
by Mary17
Can you help me? please?

Re: phpbb Displaying topics from external pages

Posted: Wed Apr 14, 2010 4:56 pm
by battye
I still can't see any errors on http://www.7cr9.com/exp1.php. Can you tell me what the error is that you see on http://www.7cr9.com/exp1.php :?: :)

Re: phpbb Displaying topics from external pages

Posted: Mon Apr 19, 2010 8:58 pm
by frozensun
sorry to hijack this topic, but I have a similar problem and didn't want to create an unnecessary topic.

I managed to follow your installation without error, but when it came to modifying the page I kept getting the error :

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4284: Cannot modify header information - headers already sent by (output started at /home/content/c/h/u/churchofmud/html/newsfeed.php:7)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4285: Cannot modify header information - headers already sent by (output started at /home/content/c/h/u/churchofmud/html/newsfeed.php:7)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4286: Cannot modify header information - headers already sent by (output started at /home/content/c/h/u/churchofmud/html/newsfeed.php:7)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4287: Cannot modify header information - headers already sent by (output started at /home/content/c/h/u/churchofmud/html/newsfeed.php:7)
The line 7 of newsfeed.php is

Code: Select all

<style type="text/css">
And the lines 4284-4287 are

Code: Select all

header('Content-type: text/html; charset=UTF-8');
	header('Cache-Control: private, no-cache="set-cookie"');
	header('Expires: 0');
	header('Pragma: no-cache');
And Here's the page I've been trying to create

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-style-type" content="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>First Church - News</title>
<style type="text/css">
<!--
div.dwheader{
	width: 907px;
	height: 726px;
	position: absolute;
	margin-left: -456px;
	left: 50%;
	top: 0px 
!important;
	top:150px;
}
body table {margin-top:735px;}
body td table, 
body div table {margin-top:0;}

A IMG{ 
border-style:none; 
}



body {
	background-image: url(http://img383.imageshack.us/img383/2919/firstchurchofmudlayoutblj2.gif);
	background-position: center center;
	background-attachment: fixed;
	background-color:#000000;
	text-align: center;
}
#logo {
	background-image: url(/Pictures/Logo.jpg);
	width: auto;
	height: 534px;
	background-repeat: no-repeat;
	background-position: center top;
	background-attachment: scroll;
	overflow: auto;
}
body {
	margin: 0px;
	padding: 0px;
	text-align: center;
	border-top-width: 0px;
	border-right-width: 0px;
	border-bottom-width: 0px;
	border-left-width: 0px;
	border-top-style: none;
	border-right-style: none;
	border-bottom-style: none;
	border-left-style: none;
	top: 0px;
	font-size: large;
	color: #F00;
}
.nav {
	font-size: small;
	color: #003;
}

-->
</style></head>

<body>
<div id="logo">
</div>
<?php
define('IN_PHPBB', true);
$phpbb_root_path = './Forum/'; // path to phpbbfolder
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/bbcode.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('viewforum');
$search_limit = 5;
$posts_ary = array(
        'SELECT'    => 'p.*, t.*, u.username, u.user_colour',    
        'FROM'      => array(
            POSTS_TABLE     => 'p',
        ),    
        'LEFT_JOIN' => array(
            array(
                'FROM'  => array(USERS_TABLE => 'u'),
                'ON'    => 'u.user_id = p.poster_id'
            ),
            array(
                'FROM'  => array(TOPICS_TABLE => 't'),
                'ON'    => 'p.topic_id = t.topic_id'
            ),
        ),
        'WHERE'     => $db->sql_in_set('t.forum_id', array_keys($auth->acl_getf('f_read', true))) . '
                        AND t.topic_status <> ' . ITEM_MOVED . '
                         AND t.topic_approved = 1',
        'ORDER_BY'  => 'p.post_id DESC',
    );
	$posts = $db->sql_build_query('SELECT', $posts_ary);
	$posts_result = $db->sql_query_limit($posts, $search_limit);
      while( $posts_row = $db->sql_fetchrow($posts_result) )
      {
         $topic_title       = $posts_row['topic_title'];
         $post_author       = get_username_string('full', $posts_row['poster_id'], $posts_row['username'], $posts_row['user_colour']);
         $post_date          = $user->format_date($posts_row['post_time']);
         $post_link       = append_sid("{$phpbb_root_path}viewtopic.$phpEx", "p=" . $posts_row['post_id'] . "#p" . $posts_row['post_id']);
         $post_text = nl2br($posts_row['post_text']);
         $bbcode = new bbcode(base64_encode($bbcode_bitfield));         
         $bbcode->bbcode_second_pass($post_text, $posts_row['bbcode_uid'], $posts_row['bbcode_bitfield']);
         $post_text = smiley_text($post_text);
         $template->assign_block_vars('announcements', array(
         'TOPIC_TITLE'       => censor_text($topic_title),
         'POST_AUTHOR'       => $post_author,
         'POST_DATE'       => $post_date,
         'POST_LINK'       => $post_link,
         'POST_TEXT'         => censor_text($post_text),
         ));
      }
page_header('../newsfeed.html');
    $template->set_filenames(array(
        'body' => 'Newspage.html'
    ));
    page_footer();
?>
Any help would be greatly appreciated

Re: phpbb Displaying topics from external pages

Posted: Wed Apr 21, 2010 9:41 am
by frozensun
bump

Re: phpbb Displaying topics from external pages

Posted: Wed Apr 21, 2010 12:48 pm
by battye
Try removing "page_header('../newsfeed.html');" and also page_footer(); - at the moment you are trying to include both your own HTML as well as the phpBB header :)

Re: phpbb Displaying topics from external pages

Posted: Fri Apr 23, 2010 6:31 pm
by frozensun
thank you very much. that ended that code error, but another popped up. apparently sessions.php has this code in it that's also ***** with the header.

Code: Select all

		header('Set-Cookie: ' . $name_data . (($cookietime) ? '; expires=' . $expire : '') . '; path=' . $config['cookie_path'] . $domain . ((!$config['cookie_secure']) ? '' : '; secure') . '; HttpOnly', false);
what should I do about that?

Re: phpbb Displaying topics from external pages

Posted: Sat Apr 24, 2010 4:55 am
by battye
Can you copy and paste the error message here?

Thanks

Re: phpbb Displaying topics from external pages

Posted: Sat Apr 24, 2010 8:12 pm
by frozensun

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /home/content/c/h/u/churchofmud/html/newsfeed.php:7)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /home/content/c/h/u/churchofmud/html/newsfeed.php:7)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /home/content/c/h/u/churchofmud/html/newsfeed.php:7)