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

XF 1.5 My Resources easy link?

Discussion in 'XenForo Questions and Support' started by Okenyon, Mar 14, 2016.

  1. Okenyon

    Okenyon Active Member

    Is there an easy way/link to show a specific usernames resources? For example i would click it and see all my resources.
     
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Like this: https://xenforo.com/community/resources/authors/brogan.521/

    In a template, you can use:
    HTML:
    <a href="{xen:link resources/authors, $visitor}">{xen:phrase your_resources}</a>

    To check for a valid visitor and resource count, use:
    HTML:
    <xen:if is="{$visitor.user_id} && {$visitor.resource_count}">
        <a href="{xen:link resources/authors, $visitor}">{xen:phrase your_resources}</a>
    </xen:if>
     
  3. Okenyon

    Okenyon Active Member

    Id basically like to put a link on all users UI that takes them to THIER resources if they have any.
     
  4. Brogan

    Brogan XenForo Moderator Staff Member

    See my edit above.
     

Share This Page