Junior Member
frederickoguntoye's Most Liked Post | ||
Post Subject | Post Date/Time | Numbers of Likes |
RE: Thank you/like system | 02-09-2021, 01:04 PM | 1 |
Thread Subject | Forum Name | |
Thank you/like system |
MyBB Extends
![]() |
|
Post Message | ||
Laird Wrote: (02-09-2021, 12:12 PM) -- I think this is currently possible only with core edits to `portal.php`. Change line #513 from: Code: -- SELECT p.pid, p.message, p.tid, p.smilieoff, t.attachmentcount -- to: Code: -- SELECT p.pid, p.message, p.tid, p.smilieoff, p.tyl_pnumtyls, t.attachmentcount -- Then, insert at line #580: PHP Code: -- $announcement['tyl_pnumtyls'] = $posts[$announcement['tid']]['tyl_pnumtyls']; -- Now, you can use the variable `{$announcement['tyl_pnumtyls']}` in the `portal_announcement` template. [hr] Line numbers assume MyBB version 1.8.27. -- It Worked, Thanks legend. |
frederickoguntoye's Received and Given Likes | ||
Likes Received | Likes Given | |
Last week | 0 | 0 |
Last month | 0 | 0 |
Last 3 months | 0 | 0 |
Last 6 months | 0 | 0 |
Last 12 months | 0 | 0 |
All Time | 1 | 2 |
Most liked by | ||
Laird | 1 | 100% |
Most liked | ||
Eldenroot | 1 | 50% |
Laird | 1 | 50% |