Current time: 29-03-2024, 06:20 AM
Hello There, Guest!
Login 
  • Search
  • Thank you/like system


    MyBB Group Developer
    #7
    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.
    1 user Likes Laird'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
    RE: Thank you/like system - by Aaron101 - 29-03-2022, 07:28 PM
    RE: Thank you/like system - by Laird - 30-03-2022, 07:58 AM
    RE: Thank you/like system - by judas1337 - 21-07-2022, 09:50 PM
    RE: Thank you/like system - by nodamerah - 16-08-2022, 08:33 AM
    RE: Thank you/like system - by Laird - 17-09-2022, 07:52 PM
    RE: Thank you/like system - by richardu - 17-09-2022, 05:08 PM
    RE: Thank you/like system - by Laird - 17-09-2022, 07:53 PM
    RE: Thank you/like system - by richardu - 19-09-2022, 01:08 PM
    RE: Thank you/like system - by theamericangu - 20-03-2023, 04:01 PM