Answering myself:pacop2 wrote:ps. and the name of the last user that have replied? howto?
Write {$topics[$i]['topic_last_poster_name']} instead of {$post['username']}
Thanks for the mod. With this slightly changes it appear to works perfect
Answering myself:pacop2 wrote:ps. and the name of the last user that have replied? howto?
Code: Select all
<?php
// Mod Title: Topic Extraction [PHPBB3]
// Version: 0.2.3
// There is a readme file, please read it! Please also signup on the forums http://www.altercoder.com !
if (!defined('IN_PHPBB'))
{
exit;
}
$forum = '3';
$limit = '5';
$title_char = '70';
$post_char = '1000';
$show = 'full';
$date_time = 'short';
$topic_link_type = 'phpbb';
$comment = 'topic';
$phpbb_root_path = './forums/';
$phpbb_folder = '/forums/';
$smilies_path = "{$phpbb_root_path}images/smilies";
?>
Code: Select all
<<?php
// Mod Title: Topic Extraction [PHPBB3]
// Version: 0.2.3
// There is a readme file, please read it! Please also signup on the forums http://www.altercoder.com !
if (!defined('IN_PHPBB'))
{
exit;
}
// Display just the title
//if ($show != 'full' && !($show_topic))
//{
// echo "<h1><a href='{$topic_link}'>{$topics[$i]['topic_title']}</a></h1><br />";
//}
// Display many topics - for news, shoutbox etc
if ($show == 'full')
{
echo "<h1><a href='{$topic_link}'>{$topics[$i]['topic_title']}</a></h1>
<p>{$post['post_text']}
<br />
<br />
{$topics[$i]['topic_replies']} Replies :: <a href=\"{$comment_link}\">Reply</a></p>";
}
// Display the topic for when used with just display the title
//if ($show_topic)
//{
// echo "<strong>{$topics[$i]['topic_title']}</strong> by <strong>{$post['username']}</strong> at <strong>{$topics[$i]['topic_time']}</strong><br />
// <br />
// {$post['post_text']}
// <br />
// <br />
// <a href=\"{$comment_link}\">Comments {$topics[$i]['topic_replies']}</a>";
//}
?>
Code: Select all
<?php include('forums/topicGV_top.php'); ?>
<?php include('forums/topic_top.php'); ?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
Test news below<br />
<?php include('forums/topicGV_bottom.php'); ?>
<?php include('forums/topic_bottom.php'); ?>
</body>
</html>
Code: Select all
Fatal error: Cannot redeclare deregister_globals() (previously declared in /usr/home/riots/domains/graffintheno.com/public_html/forums/common.php:32) in /usr/home/riots/domains/graffintheno.com/public_html/forums/common.php on line 94
i think you are supposed to change the settings in the topic.config.php file.riots wrote:Ok im trying to put 2 topics on my index.html page i already got it working atm for 1 topic. here is my tetest.php for trying to get both topics to workand I can get both to work only 1 at a time though when ever i try both I getCode: Select all
<?php include('forums/topicGV_top.php'); ?> <?php include('forums/topic_top.php'); ?> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> Test news below<br /> <?php include('forums/topicGV_bottom.php'); ?> <?php include('forums/topic_bottom.php'); ?> </body> </html>
I seen on the altercode.com the forums a fix for this but the link for the tetest.php is broken.. well maybe someone can help me.Code: Select all
Fatal error: Cannot redeclare deregister_globals() (previously declared in /usr/home/riots/domains/graffintheno.com/public_html/forums/common.php:32) in /usr/home/riots/domains/graffintheno.com/public_html/forums/common.php on line 94
Code: Select all
$forum = '#';
Code: Select all
$forum = '#,#';
so you are just trying to take posts from two different threads on ur forum correct?riots wrote:no that dose not work
Code: Select all
$forum - This is the forum ID where you wish to take Topics from.
This can be a number, a few numbers seperated by commas or the word 'all' to use all forums.
Code: Select all
[phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /home/peppermi/public_html/index.php:7)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /home/peppermi/public_html/index.php:7)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /home/peppermi/public_html/index.php:7)
I have the EXACT same problem (my website: http://www.dsfans.net).emoJRo wrote: On another note. I dont know if this was already covered but i ran into the header problem. It posts my news on the homepage but on top of all of that i would see this...When I go straight to my homepage the errors are there. When I visit my forum first then go to my homepage they are gone...Code: Select all
[phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /home/peppermi/public_html/index.php:7) [phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /home/peppermi/public_html/index.php:7) [phpBB Debug] PHP Notice: in file /includes/session.php on line 885: Cannot modify header information - headers already sent by (output started at /home/peppermi/public_html/index.php:7)
Any ideas?
http://www.peppermillcrew.com is my website so you can see what im talking about.
Code: Select all
header('Set-Cookie: ' . $name_data . '; expires=' . $expire . '; path=' . $config['cookie_path'] . $domain . ((!$config['cookie_secure']) ? '' : '; secure') . '; HttpOnly', false);
Code: Select all
$forum = '13,14';
emoJRo wrote:Well i went into the sessions.php file and deleted this...
BOOM NO more errorzCode: Select all
header('Set-Cookie: ' . $name_data . '; expires=' . $expire . '; path=' . $config['cookie_path'] . $domain . ((!$config['cookie_secure']) ? '' : '; secure') . '; HttpOnly', false);
Code: Select all
header('Set-Cookie: ' . $name_data . '; expires=' . $expire . '; path=' . $config['cookie_path'] . $domain . ((!$config['cookie_secure']) ? '' : '; secure') . '; HttpOnly', false);