1. Pinn

    Pinn - Mar 1, 2016 Active Member

    Credit
    Point
    How do I get to it so?

    dsfsdf
     
    Loading...
  2. Lisa Nguyen

    Lisa Nguyen - Mar 1, 2016 Brivium Tester Staff Member VIP Member

    Credit
    Point
    Hello,

    You can open library/Brivium/CommentEachPost/EventListeners/Listener.php, find below code:
    Code:
    case 'post_public_controls' :
                    if (! empty( $hookParams['post']['post_id']))
                    {
                        $params = $template->getParams();
                        $params += $hookParams;
                        $newTemplate = $template->create( 'BRCEP_' . $hookName, $params);
                        $contents .= $newTemplate->render();
                    }
                    break;
    
    and edit

    Code:
    case 'post_private_controls' :
                    if (! empty( $hookParams['post']['post_id']))
                    {
                        $params = $template->getParams();
                        $params += $hookParams;
                        $newTemplate = $template->create( 'BRCEP_post_public_controls', $params);
                        $contents .= $newTemplate->render();
                    }
                    break;
    
    Regards,
     
    Pinn likes this.
    #2
  3. Pinn

    Pinn - Mar 1, 2016 Active Member

    Credit
    Point
    Thanks it works!
     
    #3