• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

[SOLVED] UserTagger in Addon

#1
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
 

Chris D

XenForo developer
Staff member
#2
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.
 
#3
OK, this really was an easy one... :rolleyes::cool:

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