The following warnings occurred: | ||||||||||||||||||
Warning [2] Undefined array key "sourceeditor" - Line: 718 - File: inc/plugins/rineditor.php PHP 8.3.25 (Linux)
|
name
,title
,description
,disporder
,isdefault
) VALUES ('g33k_thankyoulike_settings','Thank You/Like System','Settings to customize the Thank You/Like System plugin.',65536,0)
portal.php
. 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
$announcement['tyl_pnumtyls'] = $posts[$announcement['tid']]['tyl_pnumtyls'];
{$announcement['tyl_pnumtyls']}
in the portal_announcement
template.(02-09-2021, 12:12 PM)Laird Wrote: I think this is currently possible only with core edits toIt Worked, Thanks legend.portal.php
.
Change line #513 from:
to:SELECT p.pid, p.message, p.tid, p.smilieoff, t.attachmentcount
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 theportal_announcement
template.
Line numbers assume MyBB version 1.8.27.