Hi pgarvin76,
thank you for helping me!
pgarvin76 wrote:In my common.php I have the following lines:
Code: Select all
// Report all errors, except notices
error_reporting(E_ALL ^ E_NOTICE);
I have exactly the same. Maybe it's because I have debug mode enabled in config.php?
I manually added the fields in phpbb_config and now the ACP part of your MOD works. I have these settings now:
Enable topic preview: yes
Enable topic preview in UCP: yes
Enable topic preview for guests: no
Display which post by default: first
Set the character limit of topic previews: 250
But there's still an error left: When I visit a forum (viewforum.php), I get these errors:
Already fixed: http://www.phpbb.com/community/viewtopi ... 5#p6260595
[phpBB Debug] PHP Notice: in file /viewforum.php on line 380: Undefined index:
[phpBB Debug] PHP Notice: in file /viewforum.php on line 477: Undefined index:
[phpBB Debug] PHP Notice: in file /viewforum.php on line 477: Undefined index:
[phpBB Debug] PHP Notice: in file /viewforum.php on line 477: Undefined index:
[phpBB Debug] PHP Notice: in file /viewforum.php on line 477: Undefined index:
[phpBB Debug] PHP Notice: in file /viewforum.php on line 477: Undefined index:
[phpBB Debug] PHP Notice: in file /viewforum.php on line 477: Undefined index:
[phpBB Debug] PHP Notice: in file /viewforum.php on line 477: Undefined index:
[phpBB Debug] PHP Notice: in file /viewforum.php on line 477: Undefined index:
[phpBB Debug] PHP Notice: in file /viewforum.php on line 477: Undefined index:
[phpBB Debug] PHP Notice: in file /viewforum.php on line 477: Undefined index:
[phpBB Debug] PHP Notice: in file /viewforum.php on line 477: Undefined index:
[phpBB Debug] PHP Notice: in file /viewforum.php on line 477: Undefined index:
[phpBB Debug] PHP Notice: in file /viewforum.php on line 477: Undefined index:
[phpBB Debug] PHP Notice: in file /viewforum.php on line 477: Undefined index:
[phpBB Debug] PHP Notice: in file /viewforum.php on line 477: Undefined index:
[phpBB Debug] PHP Notice: in file /viewforum.php on line 477: Undefined index:
The lines 374-393 are:
Code: Select all
while ($row = $db->sql_fetchrow($result))
{
$rowset[$row['topic_id']] = $row;
$announcement_list[] = $row['topic_id'];
// mod: Topic Preview
$preview_post_ids[] = $row[$topic_preview->first_last];
// end: Topic Preview
if ($row['topic_type'] == POST_GLOBAL)
{
$global_announce_list[$row['topic_id']] = true;
}
else
{
$topics_count--;
}
}
$db->sql_freeresult($result);
}
When I then activate topic preview in UCP, these errors vanish and your MOD works! But as soon as I turn off topic preview again, the mentioned errors come back when I visit a forum.
Guests (--> MOD disabled according to my settings in ACP) get the same errors.
I hope we will be able to solve the problem because I really like this MOD!
Regards
Wolfgang
EDIT: When I disable the MOD in ACP, I
always get the undefined index errors when I visit a forum.