[SOLVED] UserTagger in Addon

Bugfix

Member
Hello!

I use the Standard-Editor in my Addon (XenForo_ViewPublic_Helper_Editor).
I can tag users - seems to be built in in the editor - nice :)

But: When I view my page then the tagged users aren't linked to the profile.
Is there a docu or do you have a code-snipped for me how to do that?

Thank you!
Harald
 
As ever the best code snippet is already in the code.

Take a look at how XenForo already does it for posts. It's basically the same thing you have to do in your own code.
 
OK, this really was an easy one... :rolleyes::cool:

for others:
PHP:
$taggingModel = $this->getModelFromCache('XenForo_Model_UserTagging');
        $taggingModel->getTaggedUsersInMessage($message, $message);
 
Top Bottom