Current time: 24-02-2024, 07:13 PM
Hello There, Guest!
  • Search
  • frederickoguntoye
    Junior Member

    Status: Offline
    2 posts
    0 topics
    2 liked

    frederickoguntoye's Forum Info

    Registration Date: 02-09-2021
    Last Visit: 03-09-2021, 08:46 PM
    Date of Birth: Not Specified
    Local Time: 24-02-2024 at 07:13 PM
    Total Posts:  2
    (0 posts per day | 1.85 percent of total posts)
    (Find All Posts)
    Total Threads:  0
    (0 threads per day | 0 percent of total threads)
    Time Spent Online: 33 Minutes, 16 Seconds

    frederickoguntoye's Most Liked Post

    Post Subject Numbers of Likes RE: Thank you/like system 1
    Thread Subject Forum Name
    Thank you/like system Adopted
    Post Message
    (02-09-2021, 12:12 PM)Laird Wrote: I think this is currently possible only with core edits to portal.php.

    Change line #513 from:
            SELECT, p.message, p.tid, p.smilieoff, t.attachmentcount
            SELECT, 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.
    It Worked, Thanks legend.