02-09-2021, 12:12 PM
I think this is currently possible only with core edits to
Change line #513 from:
Then, insert at line #580:
Now, you can use the variable
Line numbers assume MyBB version 1.8.27.
portal.php
.Change line #513 from:
SELECT p.pid, p.message, p.tid, p.smilieoff, t.attachmentcount
to: SELECT p.pid, p.message, p.tid, p.smilieoff, p.tyl_pnumtyls, t.attachmentcount
Then, insert at line #580:
$announcement['tyl_pnumtyls'] = $posts[$announcement['tid']]['tyl_pnumtyls'];
Now, you can use the variable
{$announcement['tyl_pnumtyls']}
in the portal_announcement
template.Line numbers assume MyBB version 1.8.27.