Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Badges

Try Vanilla Forums Cloud product

Ready to contribute?

Amazing! Sign our contributors' agreement and then join us on GitHub.

Update for critical security issue in PHPMailer included in release Vanilla 2.3.1

migswd New

About

Username
migswd
Joined
Visits
0
Last Active
Roles
Member
Points
9
Badges
2
  • Re: How to display profileextender plugin fields ?

    I found this way.

        /**
         * Add 'Flag' link for discussions.
         */
        public function discussionController_afterDiscussionMeta_handler($Sender, $Args) {
    
            // Get user-specific data
            $ProfileFields = Gdn::userModel()->getMeta($Sender->Discussion->InsertUserID, 'Profile.%', 'Profile.');
            // TEST : echo $Sender->Discussion->InsertUserID;
    
            //echo ' <dt class="ProfileExtend Profile'.'societe'.'">'.'Société : '.'</dt> ';
            //echo ' <dd class="ProfileExtend Profile'.'societe'.'">'.$ProfileFields['societe'].'</dd>'.'<br>';
            echo '<span class="ProfileExtend Profilesociete">'.$ProfileFields['societe'].'</span>';
            echo '<span class="ProfileExtend Profileregion">'.$ProfileFields['region'].'</span>';
            echo '<span class="ProfileExtend ProfileMandats">'.$ProfileFields['Mandats'].'</span>';
            echo '<span class="ProfileExtend Profilspecialites">'.$ProfileFields['specialites'].'</span>';
        }
    

    Now I just need the same but for the comments in the discussion.
    I need to find the userid for a comment.

    What is the handler I should use ? This one ?
    public function discussionController_insideCommentMeta_handler($Sender, $Args) {

    R_Jvrijvlinder