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

XF 1.1 Template if url is

Discussion in 'XenForo Questions and Support' started by account8226, Jul 12, 2012.

  1. account8226

    account8226 Guest

    Hello XenForo, I would like to know the conditional if that would show a message on only one page on my forum.

    (I would like to show a FAQ only on my profile).

    Thanks :)

    Best regards.
     
  2. Vincent

    Vincent Well-Known Member

    account8226 likes this.
  3. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Luxus and account8226 like this.
  4. account8226

    account8226 Guest

  5. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    This will allow you to check the requestUri:

    Code:
    <xen:if is="{$requestPaths.requestUri} == '/members/admin.1/'">
    
    </xen:if>
    
    If your forum is in a subdirectory then you need to include that:

    Code:
    <xen:if is="{$requestPaths.requestUri} == '/community/members/admin.1/'">
    
    </xen:if>
    
     
    erich likes this.
  6. account8226

    account8226 Guest

    Hey,

    How could I disallow signatures in private messages ?

    <xen:if is="{$requestPaths.requestUri} == '/conversations'">

    </xen:if> isn't working.
     
  7. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    account8226 likes this.

Share This Page