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

XF 1.1 Usergroup specific content in post permalink

Discussion in 'Styling and Customization Questions' started by Ingenious, Sep 2, 2014.

  1. Ingenious

    Ingenious Well-Known Member

    I'm trying without success to add some text between the post author permalink and the time stamp, but only if the post author is a member of usergroup X.

    It's the part under a post (in the post template):

    Screen Shot 2014-09-02 at 21.18.12.png

    I'm editing the template to add the conditional as follows, this bit shown is the author then my bit:

    <xen:username user="$post" class="author" />, <xen:if is="{xen:helper ismemberof, $user, 6}">Message for post authors in group 6</xen:if>
    Nothing shows for post authors in usergroup 6. I am assuming then $user is not available to use in this template? That being the case, is there any other way to add a usergroup 6 specific message only to this part of posts made by members in that usergroup?

Share This Page