This topic was marked solved by Nao, on October 18th, 2014, 08:20 PM
PrintPage parsebbc doesnt know postid

CerealGuy

  • Posts: 343
PrintPage parsebbc doesnt know postid
« on October 16th, 2014, 10:43 AM »
In PrintPage parsebbc gets no info about the processed post id.
$context['posts'] = array();
while ($row wesql::fetch_assoc($request))
{
// Censor the subject and message.
censorText($row['subject']);
censorText($row['body']);

$context['posts'][] = array(
'subject' => $row['subject'],
'member' => $row['poster_name'],
'on_time' => on_timeformat($row['poster_time'], false),
'timestamp' => $row['poster_time'],
'body' => parse_bbc($row['body'], 'post', array('print' => true)),
);

if (!isset($context['topic_subject']))
$context['topic_subject'] = $row['subject'];
}
Add id_msg to selected fields in query and
'body' => parse_bbc($row['body'], 'post', array('print' => true'cache' => $row['id_msg'])),

Nao

  • Dadman with a boy
  • Posts: 16,078
Re: PrintPage parsebbc doesnt know postid
« Reply #1, on October 18th, 2014, 08:18 PM »
It's a free call, so I'm adding it.
Why don't you simply do pull requests..? That way, implementing would be faster, as long as it follows my guidelines, which it does in this case of course... :^^;:

CerealGuy

  • Posts: 343

Nao

  • Dadman with a boy
  • Posts: 16,078