Current time: 22-09-2021, 02:18 AM
Hello There, Guest!
Login 
  • Search
  • frederickoguntoye
    Junior Member

    Status: Offline
    2 posts
    0 topics
    1 likes
    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: 22-09-2021 at 02:18 AM
    Total Posts:  2
    (0.1 posts per day | 2.3 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.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.
    It Worked, Thanks legend.