Current time: 28-10-2021, 04:57 AM
Hello There, Guest!
Login 
  • Search
  • Thank you/like system


    Junior Member
    #8
    (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.
    1 user Likes frederickoguntoye's post
    Like Reply

    Messages In This Thread

    Thank you/like system - by Eldenroot - 13-05-2019, 07:29 PM
    RE: Thank you/like system - by junior41180 - 26-10-2019, 07:01 PM
    RE: Thank you/like system - by bumstead - 13-09-2020, 08:10 PM
    RE: Thank you/like system - by Serious - 19-11-2020, 01:39 PM
    RE: Thank you/like system - by effone - 23-11-2020, 07:37 AM
    RE: Thank you/like system - by frederickoguntoye - 02-09-2021, 11:20 AM
    RE: Thank you/like system - by Laird - 02-09-2021, 12:12 PM
    RE: Thank you/like system - by frederickoguntoye - 02-09-2021, 01:04 PM